Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ispcolohost opened this issue Apr 19, 2018 · 1 comment
Open

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

ispcolohost opened this issue Apr 19, 2018 · 1 comment

Comments

@ispcolohost
Copy link

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

@Prototype-X
Copy link
Owner

Prototype-X commented Apr 20, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants