added manual ports selection in wifi capacity test

This commit is contained in:
SushantBawiskar
2021-04-14 02:22:58 +05:30
parent 61b8ea14df
commit 565a538c32
4 changed files with 148 additions and 68 deletions

View File

@@ -1,11 +1,12 @@
from paramiko import SSHClient
import paramiko
from scp import SCPClient
class lanforge_reports:
def pull_reports(self,hostname="localhost", username="lanforge", password="lanforge",report_location="/home/lanforge/html-reports/"):
ssh = SSHClient()
ssh = paramiko.SSHClient()
ssh.load_system_host_keys()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname=hostname,username=username,password=password)
with SCPClient(ssh.get_transport()) as scp: