05-18-2009 07:08 AM
I am trying to get serial number via SNMPGET/SNMPWALK for a Cisco WLC but didn't get any. here the result I get " snmp -c public wlc123" the output is "End of MIB" nothing else. how I can get this information. thanks in Advance.
05-18-2009 08:21 AM
Hi!
On our WLC (type 4402 with software 5.1.151.0) the OID for the serial number is
1.3.6.1.2.1.47.1.1.1.1.11
It is the object "entPhysicalSerialNum".
Under 1.3.6.1.2.1.47.1.1.1.1. you will find a lot of information about the wlc like type or software.
05-18-2009 08:21 AM
The WLC does not enable SNMPv1 by default. You might try with the following (assuming net-snmp):
snmpwalk -v 2c -c wlc123 ...
05-18-2009 11:26 AM
Thanks, yes one of the issue was snmp version, my script used v-1. now I am using "snmpget -v 2c -c public -t 2 wlc123 mib-2.47.1.1.1.1.11.1 " I didn't get all information I want, I am looking the following information. which mib/mibs I need. WLC model is 4.1.185.0
$IP = '';
$name = '';
$cpu = '';
$model = '';
$OS = '';
$RAM = '';
$phylocation = '';
$firmware = '';
$serialno = '0';
05-19-2009 12:55 AM
As Joe wrote you can do a snmpget -v 2c on the whole WLC.
You will get all available snmp parameters of the WLC where you can pick your needed mibs.
05-19-2009 06:18 AM
thank for your response,yes the version issue has been resolved my problem is now. I want pull the firmware information from WLC and added this line on my perl script -"$firmwareresults = `/opt/OV/bin/snmpget -c public -t 2 $IP cisco.local.lsystem.sysConfigName.0 2>&1`;"
with this I am able pull firmware information from half of my wlc however other half respond with this error "wlc123 cisco.local.lsystem.sysConfigName.0 : VARBIND EXCEPTION: No Such Object" is there any better way specifically get firmware info. thanks again for your help!!!
05-19-2009 07:21 AM
Did you try the OID .1.3.6.1.2.1.47.1.1.1.1.10 ?
05-19-2009 07:35 AM
yes and I got error, entityMIB.entityMIBObjects.entityPhysical.entPhysicalTable.entPhysicalEntry.entPhysicalSoftwareRev : VARBIND EXCEPTION: No Such Instance" here is my WLC information "System Information
Manufacturer's Name.............................. Cisco Systems Inc.
Product Name..................................... Cisco Controller
Product Version.................................. 4.1.185.0
RTOS Version..................................... 4.1.185.0
Bootloader Version............................... 4.0.217.0
Build Type....................................... DATA + WPS
System ObjectID.................................. 1.3.6.1.4.1.14179.1.1.4.3
Primary Boot Image............................... Code 4.1.185.0 (active)
Backup Boot Image................................ Code 4.0.217.0
so the strange thing is I have 30 all the same model/ however 20 out of 30 is fine with "cisco.local.lsystem.sysConfigName.0" rest 10 of them just keep syaing "No Such Object"
05-19-2009 07:40 AM
All your WLCs use the same software version and 10 of the 30 don't work?
Very strange!
Did you try to do a snmpget for all mibs on a not working device?
Perhaps the OID for software version has changed between two releases....I don't know....
05-19-2009 08:17 AM
yes it is strange, I did get other snmpget result from these WLC except the firmware information. ex.
snmpget -v 2c -c public -t 2 wlc123 1.3.6.1.2.1.1.6.0
system.sysLocation.0 : DISPLAY STRING- (ascii): 1st floor
snmpget -v 2c -c public -t 2 wlc123 1.3.6.1.2.1.1.5.0
system.sysName.0 : DISPLAY STRING- (ascii): wlc123
only the firmware re-quest returned with error.Thanks so much for your time!!!
05-19-2009 11:35 PM
Is it possible to attach a full snmpget of a working WLC and of a not working WLC?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide