Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDP Neighbors via SNMP

Status
Not open for further replies.

vaneess

IS-IT--Management
May 28, 2010
1
CH
Hello togheter

i'm searching for hours for a solution but i don't know how to do that..
i try to get the cdp neighbors via a snmp query in a php script. the OID is:
.1.3.6.1.4.1.9.9.23.1.2.1.1.6.101*.**

* = interface number
** = cached number

the problem is, that every time i plug a cable in, the cached number counts up. so i don't have a excplicit OID which i can query.

here's my php code:
print (snmpget('192.168.0.24','***','.1.3.6.1.4.1.9.9.23.1.2.1.1.6.10108.2', '300'));

hope somebody could understand my problem...
thank you and greez
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top