Hi all!
I want to create template to collect info about which remote device's name is connected to a local device and specific port. I analyzed LLDP-MIB and found following interesting OIDs:
lldpLocPortId 1.0.8802.1.1.2.1.3.7.1.3
!
iso.0.8802.1.1.2.1.3.7.1.3.436207616 = STRING: "Ethernet1/1"
iso.0.8802.1.1.2.1.3.7.1.3.436208128 = STRING: "Ethernet1/2"
iso.0.8802.1.1.2.1.3.7.1.3.436208640 = STRING: "Ethernet1/3"
iso.0.8802.1.1.2.1.3.7.1.3.436209152 = STRING: "Ethernet1/4"
iso.0.8802.1.1.2.1.3.7.1.3.436209664 = STRING: "Ethernet1/5"
iso.0.8802.1.1.2.1.3.7.1.3.436210176 = STRING: "Ethernet1/6"
iso.0.8802.1.1.2.1.3.7.1.3.436210688 = STRING: "Ethernet1/7"
iso.0.8802.1.1.2.1.3.7.1.3.436211200 = STRING: "Ethernet1/8"
iso.0.8802.1.1.2.1.3.7.1.3.436211712 = STRING: "Ethernet1/9"
iso.0.8802.1.1.2.1.3.7.1.3.436212224 = STRING: "Ethernet1/10"
Nice, this is what I am going to put into my discovery rule, and index got here can be used in Item Prototypes.
Then I found how to get remote system name:
lldpRemSysName 1.0.8802.1.1.2.1.4.1.1.9
!
iso.0.8802.1.1.2.1.4.1.1.9.0.83886080.1 = STRING: "BB-5-8-20-L3SW-242"
iso.0.8802.1.1.2.1.4.1.1.9.0.436207616.2 = STRING: "BB-5-8-10-BGP-151"
iso.0.8802.1.1.2.1.4.1.1.9.0.436208128.6 = STRING: "BB-5-8-10-BGP-152"
iso.0.8802.1.1.2.1.4.1.1.9.0.436209152.37 = STRING: "LB1"
iso.0.8802.1.1.2.1.4.1.1.9.0.436212224.52 = STRING: "app66"
iso.0.8802.1.1.2.1.4.1.1.9.0.436220928.8 = STRING: "BB-5-8-9-L3SW-163"
iso.0.8802.1.1.2.1.4.1.1.9.0.436221440.7 = STRING: "BB-5-8-9-L3SW-163"
iso.0.8802.1.1.2.1.4.1.1.9.0.436231680.49 = STRING: "SA-1-1-2-L3SW-233"
iso.0.8802.1.1.2.1.4.1.1.9.0.436236800.9 = STRING: "BB-5-7-20-L3SW-160"
iso.0.8802.1.1.2.1.4.1.1.9.0.436237312.5 = STRING: "BB-5-8-20-L3SW-242"
iso.0.8802.1.1.2.1.4.1.1.9.0.436237824.4 = STRING: "BB-5-8-20-L3SW-242"
so, for example '436207616' is index that I can take from lldpLocPortId, but next to it goes '2' ('436207616.2'), so it seems like I need two indexes to create Item Prototype, but I can not get how to do it. First thing comes into my mind - discovery inside discovery, it even sounds crazy..
LLDP-MIB online for reference can be found here http://www.mibdepot.com/cgi-bin/getm...my&v=v1&t=tree
I want to create template to collect info about which remote device's name is connected to a local device and specific port. I analyzed LLDP-MIB and found following interesting OIDs:
lldpLocPortId 1.0.8802.1.1.2.1.3.7.1.3
!
iso.0.8802.1.1.2.1.3.7.1.3.436207616 = STRING: "Ethernet1/1"
iso.0.8802.1.1.2.1.3.7.1.3.436208128 = STRING: "Ethernet1/2"
iso.0.8802.1.1.2.1.3.7.1.3.436208640 = STRING: "Ethernet1/3"
iso.0.8802.1.1.2.1.3.7.1.3.436209152 = STRING: "Ethernet1/4"
iso.0.8802.1.1.2.1.3.7.1.3.436209664 = STRING: "Ethernet1/5"
iso.0.8802.1.1.2.1.3.7.1.3.436210176 = STRING: "Ethernet1/6"
iso.0.8802.1.1.2.1.3.7.1.3.436210688 = STRING: "Ethernet1/7"
iso.0.8802.1.1.2.1.3.7.1.3.436211200 = STRING: "Ethernet1/8"
iso.0.8802.1.1.2.1.3.7.1.3.436211712 = STRING: "Ethernet1/9"
iso.0.8802.1.1.2.1.3.7.1.3.436212224 = STRING: "Ethernet1/10"
Nice, this is what I am going to put into my discovery rule, and index got here can be used in Item Prototypes.
Then I found how to get remote system name:
lldpRemSysName 1.0.8802.1.1.2.1.4.1.1.9
!
iso.0.8802.1.1.2.1.4.1.1.9.0.83886080.1 = STRING: "BB-5-8-20-L3SW-242"
iso.0.8802.1.1.2.1.4.1.1.9.0.436207616.2 = STRING: "BB-5-8-10-BGP-151"
iso.0.8802.1.1.2.1.4.1.1.9.0.436208128.6 = STRING: "BB-5-8-10-BGP-152"
iso.0.8802.1.1.2.1.4.1.1.9.0.436209152.37 = STRING: "LB1"
iso.0.8802.1.1.2.1.4.1.1.9.0.436212224.52 = STRING: "app66"
iso.0.8802.1.1.2.1.4.1.1.9.0.436220928.8 = STRING: "BB-5-8-9-L3SW-163"
iso.0.8802.1.1.2.1.4.1.1.9.0.436221440.7 = STRING: "BB-5-8-9-L3SW-163"
iso.0.8802.1.1.2.1.4.1.1.9.0.436231680.49 = STRING: "SA-1-1-2-L3SW-233"
iso.0.8802.1.1.2.1.4.1.1.9.0.436236800.9 = STRING: "BB-5-7-20-L3SW-160"
iso.0.8802.1.1.2.1.4.1.1.9.0.436237312.5 = STRING: "BB-5-8-20-L3SW-242"
iso.0.8802.1.1.2.1.4.1.1.9.0.436237824.4 = STRING: "BB-5-8-20-L3SW-242"
so, for example '436207616' is index that I can take from lldpLocPortId, but next to it goes '2' ('436207616.2'), so it seems like I need two indexes to create Item Prototype, but I can not get how to do it. First thing comes into my mind - discovery inside discovery, it even sounds crazy..
LLDP-MIB online for reference can be found here http://www.mibdepot.com/cgi-bin/getm...my&v=v1&t=tree
Comment