Zabbix-Template-Juniper-MX-BGP4-ipv4-ipv6 icon indicating copy to clipboard operation
Zabbix-Template-Juniper-MX-BGP4-ipv4-ipv6 copied to clipboard

Could I see an example output of the LLD.py?

Open ispcolohost opened this issue 7 years ago • 1 comments
trafficstars

Hello, trying to adapt this script to a Cisco platform since this is the only Zabbix template I've found that properly handles v6 peers. I was curious if you could post some sanitized output from a live router so I can see the format of what the script outputs when working properly? Cisco doesn't have indexes on the peers, they use the remote ip address in the OID, so it's going to take some big changes, but I'd love to just map it all back into the item and trigger discovery so no time wasted recreating all of that.

Thanks

ispcolohost avatar Apr 19 '18 19:04 ispcolohost

Hi, ./LLD.py -h 1.1.1.1 -c public -mi "{#PEERADDR}" -m "{#PREFXTBL}" "{#ADDRTYPE}" "{#ASNUM}" { "data": [ { "{#ADDRTYPE}": "2", "{#ASNUM}": "64000", "{#PEERADDR}": "2020:2121:7:5:5::2001", "{#PREFXTBL}": "37", "{#SNMPINDEX}": "0.2.32.32.33.33.0.7.0.5.0.5.0.0.0.0.32.01.2.32.32.33.33.0.7.0.5.0.5.0.0.0.0.32.02" }, { "{#ADDRTYPE}": "1", "{#ASNUM}": "64100", "{#PEERADDR}": "10.2.2.2", "{#PREFXTBL}": "5", "{#SNMPINDEX}": "0.1.10.2.2.2.1.10.2.2.1" } ] } https://pastebin.com/zHaMWBsm

"{#SNMPINDEX}": "0.1.10.2.2.2.1.10.2.2.1" 0 - i don't know what is this 1 - addr type 1-ipv4, 2-ipv6 10.2.2.2 - peer addr 1 - addr type 1-ipv4, 2-ipv6 10.2.2.1 - local-addr

For ipv6 SNMPINDEX similar ipv4 "{#PEERADDR}": "2020:2121:7:5:5::2001" 32.32.33.33.0.7.0.5.0.5.0.0.0.0.32.01

Prototype-X avatar Apr 20 '18 07:04 Prototype-X