If I SSH to the device directly, I can upgrade using upgrade command and url below. However using paramiko it will not have any results! Any ideas why?
import paramiko
import time
import sys
host= '10.0.0.5'
username="user"
password="pwsd"
session= paramiko.SSHClient()
session.set_missing_host_key_policy(paramiko.AutoAddPolicy())
session.connect(hostname=host,username=username,password=password)
upgradeURLacLR= "https://dl.ui.com/unifi/firmware/U7PG2/4.3.13.11253/BZ.qca956x.v4.3.13.11253.200430.1420.bin"
stdin, stdout, stderr = session.exec_command("upgrade "+str(upgradeURLacLR))