Switches, Hubs, and Modems
1753854 Members
7702 Online
108808 Solutions
New Discussion

[HP Switch 2610-24] SNMP Problem

 
AlexVATC
Occasional Contributor

[HP Switch 2610-24] SNMP Problem

Good day,


I am having some problems doing some SNMP Commands on my HP Switch.

Using:
snmpget -v1 -cf -c public 10.17.4.2 ifOperStatus.n
(n = 1-28)

I get the responses if a port is up or down. (Client connected or not)

Now if a client is connected, I want to fetch his MAC Address or his IP Address, problem is how do I do that?
Querying for ifOperStatus.n only gives me:

IF-MIB::ifOperStatus.2 = INTEGER: down(2)
or
IF-MIB::ifOperStatus.3 = INTEGER: up(1)

My question is how do I fetch the MAC/IP Address of a connected Client to Port n?



ipNetToMediaPhysAddress.101.10.17.3.5.n
doesn't help much here. Because I don't know the IP "10.17.3.5" (which could be anything) and so I cannot query this value (?)


thx for your help
best regards!
1 REPLY 1
Pieter 't Hart
Honored Contributor

Re: [HP Switch 2610-24] SNMP Problem