Firstly, I'd like to thank you for the excellent work on the SCRT scripts for Cisco devices which I use quite frequently.
I've tried to update the cdp to csv template script to allow to include the hostname of the device the script was run on as the first column in the CSV file it creates but I have been unsuccessful.
At line 1 I added: *Value Filldown HOST (.)
And after the Start line, I added ^${HOST}#show\scdp\sneighbors\sdetail**.
It appears the hostname is not captured when the command is run and so I am totally lost on how to include it.
Are you able to help with this tweak?
When I merge all the CDP.CSV outputs per site into a single CSV, I am unable to easily identify each entry to the hostname it was generated on. To merge all into one file I simply perform a dos command copy *.csv Merged-CDP-All.csv.
Hi Jamie,
Firstly, I'd like to thank you for the excellent work on the SCRT scripts for Cisco devices which I use quite frequently.
I've tried to update the cdp to csv template script to allow to include the hostname of the device the script was run on as the first column in the CSV file it creates but I have been unsuccessful.
At line 1 I added: *Value Filldown HOST (.) And after the Start line, I added ^${HOST}#show\scdp\sneighbors\sdetail**.
It appears the hostname is not captured when the command is run and so I am totally lost on how to include it.
Are you able to help with this tweak?
When I merge all the CDP.CSV outputs per site into a single CSV, I am unable to easily identify each entry to the hostname it was generated on. To merge all into one file I simply perform a dos command copy *.csv Merged-CDP-All.csv.
I look forward to your help on this.
Thanks Raj