-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
executable file
·26 lines (21 loc) · 896 Bytes
/
test.py
File metadata and controls
executable file
·26 lines (21 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
import logging
import argparse
from actiontecssl import ActiontecSSL
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('host', type=str, help='The host name or IP address'
' of the remote computer to '
'which you are connecting.')
parser.add_argument('port', type=int, help='The port number or '
'service name.')
parser.add_argument('password', type=str, help='Password for the router')
args = parser.parse_args()
logging.basicConfig(level=logging.WARNING)
a = ActiontecSSL(host=args.host, port=args.port, password=args.password)
a.connect()
print (a.interfaces())
print (a.processes())
print (a.ifstats())
print (a.meminfo())
print (a.cpus())