Comware Based
1829598 Members
1758 Online
109992 Solutions
New Discussion

Re: HPE Comware - SNMP Query - Oid for total switchs in IRF pile

 
SOLVED
Go to solution
Nicolas_CRB
Occasional Collector

HPE Comware - SNMP Query - Oid for total switchs in IRF pile

Hello,

After some (unsuccessful) researches, is there an appropriate MIB/oid for queyring HPE 5130 Comware type switch in order to get the exact number of switchs in an IRF pile (1 to 9 max.)

I've found an oid query for each switch in the IRF pile returning the switch S/N. This mean i've to iterate a script (loop) with condition, but getting high times to execute ...

So is there an all-in-one oid query in order to get this information in onel lign code ?

Thanks a lot, good day.

P.S.

OID for the first switch : 1.3.6.1.4.1.25506.2.6.1.2.1.1.2.2 , +1 on the last digit supposing next switch exists ...

 

 

 

2 REPLIES 2
Ivan_B
HPE Pro

Re: HPE Comware - SNMP Query - Oid for total switchs in IRF pile

Hi @Nicolas_CRB !

What about this one:

.1.3.6.1.4.1.25506.2.91.1.2
hh3cStackMemberNum OBJECT-TYPE
  -- FROM	HH3C-STACK-MIB
  SYNTAX	Integer32
  MAX-ACCESS	read-only
  STATUS	current
  DESCRIPTION	"The number of members currently in a stack."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) hh3c(25506) hh3cCommon(2) hh3cStack(91) hh3cStackGlobalConfig(1) 2 }

 

I am an HPE employee

Accept or Kudo

Nicolas_CRB
Occasional Collector
Solution

Re: HPE Comware - SNMP Query - Oid for total switchs in IRF pile

Hi @Ivan_B,

First of all, many thanks !!!

It (almost) works !

1.3.6.1.4.1.25506.2.91.1.2 returns nothing but a 'walk' from here get me to 1.3.6.1.4.1.25506.2.91.1.2.0, which gives me the solution.

Maybe something due to my MIB browser or loaded mibs at this point ...

Never the less, you've saved my life today Thanks again.