perl script to read 3750 stack

Unanswered Question
Mar 22nd, 2010
User Badges:

Hi Folks,


          I am aware that much of the discussion is LMS specific here but just wanted to get some inputs with regards to a perl script that i am working with. The basic idea of the script is to get the serial numbers of the individual switches in the stack and report. To just test this I tried it on a single stack switch, i used the oid                          1.3.6.1.2.1.47.1.1.1.1.11.X( X for the index)(entPhysicalSerialNum). But its just returning an empty string.  I did try some of the other fields in the same container and some seem to return results like say the description is returning C37XX switch stack. So, I belive that the script is not broken. Please let me know if the oid is correct or  an aliter to the same oid.


thanks,

Prakadeesh

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Mon, 03/22/2010 - 13:14
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This OID is correct.  You need to get the value of entPhysicalSerialNum for entities which correspond to chassis elements.  For example, walk the values for entPhysicalClass.  For each entPhysicalIndex which is chassis(3), get the value of entPhysicalSerialNum.  You should have non-empty values.

Actions

This Discussion