nchekwa / aosom-streaming-snmp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aosom-streaming-snmp

Version v0.1.0 [2021-11-16]

Tested with: [apstra/telegraf:1.20.3]
Overview

Using Aosom-streaming-snmp

RUN

  1. Edit .env
  2. Edit docker-compose.yml - in "command" section add required INPUT SNMP files ie. telegraf-snmp-INPUT-SNMP_jnxOperating.conf
  3. docker-compose start

Debug

  1. Run command docker-compose start
  2. 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

Juniper SNMPv3 example configuration

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

About

License:GNU Affero General Public License v3.0


Languages

Language:Shell 63.3%Language:Dockerfile 36.7%