czfcentos |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 2 | czfcentos | #!/bin/bash |
2 | echo Content-type: text/plain |
||
3 | echo |
||
4 | echo "ospfd routeru `hostname`" |
||
5 | echo |
||
6 | password=heslo |
||
7 | (echo $password; \ |
||
8 | echo enable; \ |
||
9 | echo $password; \ |
||
10 | echo show ru; \ |
||
11 | echo show ip ospf neighbor; \ |
||
12 | echo show ip ospf route; \ |
||
13 | echo show ip ospf database; \ |
||
14 | echo show ip ospf database router; \ |
||
15 | echo show ip ospf database external; \ |
||
16 | echo exit) | nc localhost 2604 | grep -v assword |
||
17 | |