forked from tmshlvck/rat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
52 lines (36 loc) · 1.22 KB
/
README
File metadata and controls
52 lines (36 loc) · 1.22 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Router Administration Toolkit
Simple toolkit for connecting and issuing commands or interacting with
various network devices over SSH or any other text interface.
There are two distinct interfaces:
* Python object interface
* Command line interface
Supported devices so far:
* Cisco IOS (tested: 12.2, 15.0, 15.2)
* Cisco NX-OS (tested: 6.0)
* HP ProCurve switches (tested: 2610 + 2810 series)
* Brocade Ironware (tested: 7.x + 8.x)
Interactions:
* Python interface:
TODO
* Bash:
TODO
List all enabled hosts:
while read shortname hostname type enab username pass enabpass; do
# whaterver you need
echo "Hit host: $hostname"
done <<EOF
$(./rat-list -p)
EOF
Connect to the host and run command:
./rat-com -c "show version" shortname
./rat-com -c "show version" hostname.domain.tld
Connect to the host and start interactive session:
./rat-com shortname
./rat-com hostname.domain.tld
Of course you can provide you own host defition (username, passwords, ...) on
the command line. Please see ./rat-com --help for details.
Examples + applications:
Directory example contains various examples that uses rat toolkit
for network administration and operation automation.
Author(s):
Tomas Hlavacek ([email protected])