in reply to Re^2: Cisco SNMP CDP Poll
in thread Cisco SNMP CDP Poll
In my case I have found that some devices return strange output, it is in case no mgmt IP is available in sh cdp nei detail (CSS11501), older IOS or different platform.
My dirty hack for that was just check for valid hex-like inputDB<69> p $_[0] DB<70> x $_[0] 0 "\c@\c@\c@\c@"
#if (substr($hex_ip,0,1) eq ""){ if ($hex_ip !~ m/0x.*/){ $ip = "0.0.0.0"; }
In Section
Code Catacombs