03-09-2010 05:18 AM
Hi.
I am trying to enable LLDP in sps224g4 switch.
console# sh ver
SW version 1.0.2 ( date 18-Nov-2008 time 12:38:16 )
Boot version 1.0.2 ( date 13-Nov-2007 time 14:11:51 )
HW version 00.03.00
While there is snmp lldp oids, and I can snmpwalk and snmpset them, no matter what I do switch neither send nor recieves LLDP TLVs, and all LLDP related fields for ports stays at 0 LLDP packets send/recieved or empty.
Thanks in advance!
03-09-2010 06:29 AM
To make long story short - I was browsing forums for any possible clue and found cisco small business snmp mibs archive! (there is no link in small business downloads)
Here it is:
https://www.myciscocommunity.com/docs/DOC-12539
and here is link
https://www.myciscocommunity.com/servlet/JiveServlet/downloadBody/12539-102-2-21519/SRW_MIB_2009.zip
and that was it! Now I was aware wnat snmp oids to set in order to enable lldp on my SPS224G4:
First:
snmpwalk -v2c -c
CISCOSB-LLDP-MIB::rlLldpEnabled.0 = INTEGER: false(2)
snmpset -v2c -c
CISCOSB-LLDP-MIB::rlLldpEnabled.0 = INTEGER: true(1)
Now, let's check port admin status:
snmpwalk -v2c -c
LLDP-MIB::lldpPortConfigAdminStatus.1 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.2 = INTEGER: txAndRx(3)
LLDP-MIB::lldpPortConfigAdminStatus.3 = INTEGER: txAndRx(3)
and let's configure switch to send come TLVs
check first:
snmpwalk -v2c -c
LLDP-MIB::lldpPortConfigTLVsTxEnable.1 = BITS: 00
LLDP-MIB::lldpPortConfigTLVsTxEnable.2 = BITS: 00
LLDP-MIB::lldpPortConfigTLVsTxEnable.3 = BITS: 00
and now set to some reasonable parameters:
snmpset -v2c -c
LLDP-MIB::lldpPortConfigTLVsTxEnable.
Now check other connected devices - they should see some LLDP neighbors!
like this:
snmpwalk -v2c -c
LLDP-MIB::lldpRemChassisIdSubtype.41429900.1.1 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisId.41429900.1.1 = Hex-STRING: 00 22 6B 22 68 49
LLDP-MIB::lldpRemPortIdSubtype.41429900.1.1 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortId.41429900.1.1 = STRING: "g2"
LLDP-MIB::lldpRemPortDesc.41429900.1.1 = STRING: Ethernet Interface
LLDP-MIB::lldpRemSysName.41429900.1.1 = STRING:
LLDP-MIB::lldpRemSysDesc.41429900.1.1 = STRING: 24-port 10/100 + 4-Port Gigabit Switch with CLI and WebView
LLDP-MIB::lldpRemSysCapSupported.41429900.1.1 = BITS: 20 00 00 00 bridge(2)
LLDP-MIB::lldpRemSysCapEnabled.41429900.1.1 = BITS: 20 00 00 00 bridge(2)
now you can use your favorite network discovery software to build automatic network topology and make auto network discovery!
03-10-2010 08:49 PM
Awesome post! Many thanks
Andrew Lissitz
03-10-2010 10:54 PM
Got interesting side effect - after setting some parameters via SNMP I can "write" configuration, but I can't "show run" it - switch coredumps and reboots, I can see this on serial console. Can this be fixed?
03-14-2010 04:27 PM
I do not know ...but this sounds like a bug.
Can you open a case?
http://www.cisco.com/en/US/support/tsd_cisco_small_business_support_center_contacts.html
You can reference this posting as well.
03-15-2010 06:07 AM
03-15-2010 06:30 AM
Thanks. Yes, lets follow the crash problems in the other posting.
05-28-2013 05:01 AM
you can get rid of the restart when config is reading by either dropping config or you can configure it once more again.
or you can go by this way :
1. firmware downgrade to 1.0.2
2. drain the configuration switch to tftp server
3. configure downgrade once more again
4. pour config on the switch
5. restart it
after all this stuff your switch will not have problems with enable lldp option
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