Home
last modified time | relevance | path

Searched refs:ssh (Results 1 – 25 of 48) sorted by relevance

12

/tools/test/connectivity/acts/framework/acts/controllers/
Daccess_point.py37 from acts.controllers.utils_lib.ssh import connection
38 from acts.controllers.utils_lib.ssh import settings
136 self.ssh = connection.SshConnection(self.ssh_settings)
139 self._ip_cmd = ip.LinuxIpCommand(self.ssh)
140 self._route_cmd = route.LinuxRouteCommand(self.ssh)
172 self.ssh.run('stop wpasupplicant')
176 self.ssh.run('stop hostapd')
182 self.ssh.run(WLAN_DOWN)
189 self.ssh.run(BRIDGE_DOWN)
190 self.ssh.run(BRIDGE_DEL)
[all …]
Dpacket_capture.py24 from acts.controllers.utils_lib.ssh import connection
25 from acts.controllers.utils_lib.ssh import formatter
26 from acts.controllers.utils_lib.ssh import settings
103 self.ssh = connection.SshConnection(self.ssh_settings)
110 result = self.ssh.run('ifconfig -a', ignore_status=True)
125 self.ssh.run('ifconfig wlan%s down' % iface[-1], ignore_status=True)
126 self.ssh.run('iw dev %s del' % iface, ignore_status=True)
127 self.ssh.run('iw phy%s interface add %s type %s'
129 self.ssh.run('ip link set %s up' % iface, ignore_status=True)
130 result = self.ssh.run('iw dev %s info' % iface, ignore_status=True)
[all …]
/tools/acloud/internal/lib/
Dssh_test.py28 from acloud.internal.lib import ssh
36 FAKE_IP = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
58 ssh.ShellCmdWithRetry,
63 ssh_object = ssh.Ssh(ip=self.FAKE_IP,
73 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
86 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
99 ssh_object = ssh.Ssh(self.FAKE_IP,
117 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
130 ssh_object = ssh.Ssh(self.FAKE_IP,
148 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
[all …]
Dcvd_compute_client_multi_stage.py52 from acloud.internal.lib.ssh import Ssh
143 def InitRemoteHost(self, ssh, ip, user): argument
155 self._ssh = ssh
/tools/acloud/pull/
Dpull.py28 from acloud.internal.lib.ssh import Ssh
29 from acloud.internal.lib.ssh import IP
59 ssh = Ssh(ip=IP(ip=instance.ip),
63 log_files = SelectLogFileToPull(ssh, file_name)
65 PullLogs(ssh, log_files, download_folder)
67 DisplayLog(ssh, log_files[0], no_prompts)
71 def PullLogs(ssh, log_files, download_folder): argument
81 ssh.ScpPullFile(log_file, target_file)
85 def DisplayLog(ssh, log_file, no_prompts=False): argument
97 ssh.Run("tail -f -n +1 %s" % log_file, show_output=True)
[all …]
Dpull_test.py24 from acloud.internal.lib import ssh
68 @mock.patch.object(ssh.Ssh, "Run")
71 fake_ip = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
72 _ssh = ssh.Ssh(ip=fake_ip,
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dbridge_interface.py56 self.ssh = ap.ssh
68 self.ssh.run(CREATE_BRIDGE)
77 self.ssh.run(ENABLE_4ADDR)
86 self.ssh.run(ADD_INTERFACE)
94 self.ssh.run(SET_BRIDGE_IP)
108 self.ssh.run(BRING_DOWN_BRIDGE)
110 self.ssh.run(DELETE_BRIDGE)
114 self.ssh.run(BRING_DOWN_WLAN)
117 self.ssh.run(DISABLE_4ADDR)
Dap_get_interface.py39 self.ssh = ap.ssh
47 output = self.ssh.run(GET_ALL_INTERFACE)
58 output = self.ssh.run(GET_VIRTUAL_INTERFACE)
85 output = self.ssh.run(BRCTL_SHOW)
109 output = self.ssh.run(IW_LIST_FREQ)
142 output = self.ssh.run('ifconfig')
163 output = self.ssh.run(LAN_CHECK)
179 self.ssh.run(PING)
Dap_iwconfig.py38 self.ssh = ap.ssh
48 output = self.ssh.run(iwconfig_command)
/tools/acloud/public/actions/
Dremote_instance_fvp_device_factory.py22 from acloud.internal.lib import ssh
64 ssh.ShellCmdWithRetry(cmd)
71 ssh.ShellCmdWithRetry(cmd)
78 ssh.ShellCmdWithRetry(cmd)
95 ssh.ShellCmdWithRetry(cmd)
Dremote_instance_cf_device_factory_test.py33 from acloud.internal.lib import ssh
246 @mock.patch.object(ssh, "ShellCmdWithRetry")
247 @mock.patch.object(ssh.Ssh, "Run")
253 fake_ip = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
266 factory._ssh = ssh.Ssh(ip=fake_ip,
Dremote_instance_fvp_device_factory_test.py33 from acloud.internal.lib import ssh
50 @mock.patch.object(ssh, "ShellCmdWithRetry")
59 fake_ip = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
71 factory._ssh = ssh.Ssh(ip=fake_ip,
Dremote_instance_cf_device_factory.py29 from acloud.internal.lib import ssh
118 ip = ssh.IP(ip=self._avd_spec.remote_host)
119 self._ssh = ssh.Ssh(
271 ssh.ShellCmdWithRetry(cmd)
/tools/acloud/internal/script/
Dcreate_extradisk.sh23 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mkfs.…
24 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mount…
25 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "ls /mnt"
26 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo umoun…
/tools/acloud/public/
Ddevice_driver_test.py29 from acloud.internal.lib import ssh
80 fake_ip = ssh.IP(external="140.1.1.1", internal="10.1.1.1")
135 fake_ip = ssh.IP(external="140.1.1.1", internal="10.1.1.1")
/tools/acloud/reconnect/
Dreconnect.py32 from acloud.internal.lib import ssh as ssh_object
65 ssh = ssh_object.Ssh(ip=ssh_object.IP(ip=instance.ip), user=host_user,
70 raw_data = ssh.GetCmdOutput("cat " + remote_cuttlefish_config)
/tools/acloud/delete/
Ddelete.py32 from acloud.internal.lib import ssh as ssh_object
200 ssh = ssh_object.Ssh(
206 compute_client.InitRemoteHost(ssh, remote_host, host_user)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dota_sniffer.py26 from acts.controllers.utils_lib import ssh
240 self._sniffer_server = ssh.connection.SshConnection(
241 ssh.settings.from_config(self.ssh_config))
DWifiBaseTest.py472 pids = ap.ssh.run('pidof %s' % daemon, ignore_status=True)
474 ap.ssh.run('kill %s' % pids.stdout, ignore_status=True)
476 pids = ap.ssh.run('pidof %s' % daemon, ignore_status=True)
/tools/test/connectivity/acts/tests/google/wifi/
DWifiThroughputStabilityTest.py29 from acts.controllers.utils_lib import ssh
110 self.remote_server = ssh.connection.SshConnection(
111 ssh.settings.from_config(self.RemoteServer[0]['ssh_config']))
DWifiRoamingPerformanceTest.py27 from acts.controllers.utils_lib import ssh
69 self.remote_server = ssh.connection.SshConnection(
70 ssh.settings.from_config(self.RemoteServer[0]['ssh_config']))
DWifiPingTest.py27 from acts.controllers.utils_lib import ssh
77 self.ping_server = ssh.connection.SshConnection(
78 ssh.settings.from_config(self.RemoteServer[0]['ssh_config']))
DWifiRvrTest.py28 from acts.controllers.utils_lib import ssh
75 self.remote_server = ssh.connection.SshConnection(
76 ssh.settings.from_config(self.RemoteServer[0]['ssh_config']))
DWifiSensitivityTest.py28 from acts.controllers.utils_lib import ssh
149 self.ping_server = ssh.connection.SshConnection(
150 ssh.settings.from_config(self.RemoteServer[0]['ssh_config']))
DWifiRssiTest.py29 from acts.controllers.utils_lib import ssh
74 self.remote_server = ssh.connection.SshConnection(
75 ssh.settings.from_config(self.RemoteServer[0]['ssh_config']))

12