s_cdp_to_csv

s_cdp_to_csv.script_main(session)
SINGLE device script
Author: Jamie Caesar

This script will grab the detailed CDP information from a Cisco IOS or NX-OS device and export it to a CSV file containing the important information, such as Remote Device hostname, model and IP information, in addition to the local and remote interfaces that connect the devices.

Script Settings (found in settings/settings.ini):

  • strip_domains - A list of domain names that will be stripped away if found in the CDP remote device name.
Parameters:session (sessions.Session) – A subclass of the sessions.Session object that represents this particular script session (either SecureCRTSession or DirectSession)