Version v0.1.0 [2021-11-16]
Tested with: [apstra/telegraf:1.20.3]
- Edit .env
- Edit docker-compose.yml - in "command" section add required INPUT SNMP files ie. telegraf-snmp-INPUT-SNMP_jnxOperating.conf
docker-compose start
- Run command
docker-compose start
- Try query from inside container:
docker exec -it aosom-streaming_telegraf-snmp-juniper bash
- snmpwalk command ie:
snmpwalk -v 3 -l authpriv -u user1snmpv3 -a MD5 -A "Juniper123" -x AES -X "Juniper123" <IP> .1.3.6.1.2.1.1.1
Stanza:
snmp {
contact "Jhone Doe, +1234567890";
v3 {
usm {
local-engine {
user user1snmpv3 {
authentication-md5 {
authentication-password "Juniper123";
}
privacy-aes128 {
privacy-password "Juniper123";
}
}
}
}
vacm {
security-to-group {
security-model usm {
security-name user1snmpv3 {
group GROUP1;
}
}
}
access {
group GROUP1 {
default-context-prefix {
security-model usm {
security-level authentication {
read-view all;
}
}
}
}
}
}
}
view all {
oid .1;
}
routing-instance-access;
}
SET Mode:
set snmp contact "Jhone Doe, +1234567890"
set snmp v3 usm local-engine user user1snmpv3 authentication-md5 authentication-password "Juniper123"
set snmp v3 usm local-engine user user1snmpv3 privacy-aes128 privacy-password "Juniper123"
set snmp v3 vacm security-to-group security-model usm security-name user1snmpv3 group GROUP1
set snmp v3 vacm access group GROUP1 default-context-prefix security-model usm security-level authentication read-view all
set snmp view all oid .1
set snmp routing-instance-access