02-01-2021 10:03 AM
Hello!
Can anyone suggest the correct syntax and is this possible?
I have a lot of switches (over 500), and I am trying on each switch to execute the "show int status" command and save the output on tftp server with the name of the switch on which the command was executed.
The file is saved:
"show interfaces status | redirect tftp://a.b.c.d/hostname.txt"
but hostname.txt - is static name that i write myself
what can i write here that woulde be dynamic ?
02-01-2021 10:11 AM
- This is not possible.
M.
02-01-2021 10:13 AM
high level that should work, but depends on model and IOS running, each way is here.
Get CATTOOLS it automatically download or email all the details of each device.
https://www.solarwinds.com/kiwi-cattools
you can add devices using CVS format. it automatically generate required output.
02-01-2021 12:34 PM
The possible approaches come to mind.
First, have an EEM script run on the host that constructs the filename. (Assume switches supports EEM.)
Second, have an external program access the device, either via scripted console (VTY) access or SNMP (although for this you'll need to construct OID variable into something readable.
Third, (unsure this is possible on a command line) determine if a banner variable might be used.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide