jamiecaesar / securecrt-tools

SecureCRT scripts, written in Python, for doing various tasks when connected to Cisco equipment.
Apache License 2.0
252 stars 77 forks source link

CDP to CSV Feature Request #59

Open rajmistry1 opened 1 year ago

rajmistry1 commented 1 year ago

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