Christophe Terpreau
2007-04-20 12:11:49 UTC
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.
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.