hotsanic |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/bin/bash
#do cronu
#* * * * * /opt/HotSaNIC/modules/bgp/bgpd_bg 2>/dev/null > /tmp/bgpnew.txt ; mv -f /tmp/bgpnew.txt /tmp/bgp.txt
password=ahoj
(echo $password; \
# echo show ru; \
# echo quit; \
# echo show ip bg ne; \
# echo show ip bg su; \
echo show ip bg; \
echo exit) | nc localhost 2605 | grep -v assword | grep "^\*" | cut -b 4-20,62-