[rancid] Script with cisco-reload.exp

Christophe Terpreau cterpreau at gmail.com
Fri Apr 20 12:11:49 UTC 2007


hello,

i'm using a script found in this mailing list to execute some commands
on devices listed in routers.db:

clogin -x yourscript ` find . -name router.db |   xargs awk -F: '$3 ==
"up" && $2 == "cisco" && $1 !~ /^#/ {print $1}'`

I would like to schedule a reboot with "clogin  -Ereload_arg='at
07:15' -s cisco-reload.exp" on the same devices list in router.db but
"xargs awk -F: '$3 == "up" && $2 == "cisco" && $1 !~ /^#/ {print $1}'`
" seems not working.

Thx if you can help me on this.

Bye.



More information about the Rancid-discuss mailing list