Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

perl script to read 3750 stack

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                 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.



Cisco Employee

Re: perl script to read 3750 stack

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.