Switch log collection
Anyone with experience with CISCO switches?
My goal is to have a macro in which it will log into n number of switches and run "show tech" command on switch and collect log files.
Code snippet:
logopen LOG_SAMP 0 0 sendln 'telnet 192.168.1.1' wait 'Username:' sendln SwUser
wait 'Password:' sendln SwPass
wait '#' sendln 'show tech' wait '$' sendln 'exit' logclose
Anyone with experience with CISCO switches?
My goal is to have a macro in which it will log into n number of switches and run "show tech" command on switch and collect log files.
Code snippet:
logopen LOG_SAMP 0 0 sendln 'telnet 192.168.1.1' wait 'Username:' sendln SwUser
wait 'Password:' sendln SwPass
wait '#' sendln 'show tech' wait '$' sendln 'exit' logclose