czfcentos |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 2 | czfcentos | #!/bin/bash |
2 | echo Content-type: text/plain |
||
3 | echo |
||
4 | echo "bgpd routeru `hostname`" |
||
5 | echo |
||
6 | password=heslo |
||
7 | (echo $password; \ |
||
8 | echo enable; \ |
||
9 | echo $password; \ |
||
10 | echo show ru; \ |
||
11 | echo quit; \ |
||
12 | echo show ip bg ne; \ |
||
13 | echo show ip bg su; \ |
||
14 | echo show ip bg path; \ |
||
15 | echo exit) | nc localhost 2605 | grep -v assword |
||
16 | |