1 ./ips | xargs -i ./dell-switch.pl {} "show bridge address"
3 ./ips | xargs -i ./dell-switch.pl {} "show interfaces status"
5 ./ips | xargs -i ./dell-switch.pl {} "show running-config"
7 This will save all commands executed to git repository under log/
9 However, somethimes you just need to execute few commands but don't want
10 log output (if configuring switches in batch, for example). You can do
11 that by setting NO_LOG enviroment variable like this:
13 grep -A 1 sw-lib /etc/munin/munin.conf | grep 10.20 | awk '{ print $2 }' \
14 | NO_LOG=1 xargs -i ./dell-switch.pl 'snmp-server community public-or-not ro view Default' 'exit' 'copy running-config startup-config'
17 To use fans script first pull show system from all switches:
19 ./ips | xargs -i ./dell-switch.pl {} "show system"
22 Backup switch configuration to tftp server:
24 ./ips 1,2 | awk '{ print "./dell-switch.pl "$1" \"copy startup-config tftp://10.20.0.253/backups/"$2".config\"" }' | NO_LOG=1 sh -x
27 To use snmp* utils, create snmp.conf with:
29 COMMUNITY=my-comminity-or-public