Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Cisco SNMP CDP Poll

by Anonymous Monk
on Oct 31, 2010 at 21:56 UTC ( #868642=note: print w/ replies, xml ) Need Help??


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.

DB<69> p $_[0] DB<70> x $_[0] 0 "\c@\c@\c@\c@"
My dirty hack for that was just check for valid hex-like input
#if (substr($hex_ip,0,1) eq ""){ if ($hex_ip !~ m/0x.*/){ $ip = "0.0.0.0"; }


Comment on Re^3: Cisco SNMP CDP Poll
Select or Download Code
Re^4: Cisco SNMP CDP Poll
by Anonymous Monk on Feb 11, 2011 at 02:33 UTC
    is there a way to modify this script so that it will cycle through a list of choices to use for comminuty string on each device it is polling? Sorry I have no experience at coding, but this script is EXACTLY what I need. I am doing a discovery, I have a list of possible community strings though so i am stuck.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://868642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-12-25 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls