Quagga vtysh

Post z dnia: 01/03/2007

Gdyby ktos nie wiedzial to od wersji 0.99.5 wlacznie mozna wykonac duzo polecen Quaggi w pojedynczym poleceniu shella – co jest calkiem fajne:

ZZZ:/etc# VTYSH_PAGER=/bin/cat vtysh -c 'show ip rip status' -c 'conf t' -c 'router rip' -c 'passive-interface eth0'
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in -1173105357 seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is rip_lan
Incoming update filter list for all interface is rip_lan
Default redistribution metric is 1
[etc...]

Albo na szybko zapamietanie konfiguracji ( z uzywaniem plik per protokol routingu, standardowo vtysh chce zapamietywac do jednego wspolnego – Quagga.conf ):

ZZZ:/etc# VTYSH_PAGER=/bin/cat /usr/bin/vtysh -c 'conf t' -c 'no service integrated-tysh-config' -c 'end' -c 'write'
Building Configuration...
Configuration saved to /etc/quagga/zebra.conf
Configuration saved to /etc/quagga/ripd.conf
Configuration saved to /etc/quagga/ospfd.conf
[OK]
ZZZ:/etc#

Comments are closed.