mini snmpd package - negan07/ancistrus GitHub Wiki
opkg update && opkg install mini-snmpd
Dependencies: ancistrus-core
( >= 1.5.0 )
Binaries included: mini_snmpd
GUI section: General
Usage:
rc_snmp < start restart startforced restartforced stop fwup remoteup fwdown remotedown > (<debug>)
minisnmpd_enable = 0|1 (0)
minisnmpd_remote_enable = 0|1 (0)
minisnmpd_remote_port = 1-65534 (161)
minisnmpd_ip6 = 0|1 (0)
minisnmpd_auth = 0|1 (1)
minisnmpd_timeout = 1-999 (1)
minisnmpd_description (router)
minisnmpd_vendor (.1.3.6.1.4.1)
minisnmpd_location (here)
minisnmpd_contact (mynum)
minisnmpd_community = public|private (public)
Unix: net-snmp
Windows: net-snmp
.
To Enable service type:
nvram set minisnmpd_enable=1
Then restart daemon typing:
rc snmp start
To Disable service type:
nvram set minisnmpd_enable=0
rc snmp stop
To enable ipv6 protocol version (disabling ipv4) type:
nvram set minisnmpd_ip6=1
Then restart daemon typing:
rc snmp start
Note that ipv6 protocol option cannot be available if ipv6 protocol is globally disabled.
To disable ipv6 protocol version (enabling ipv4) type:
nvram set minisnmpd_ip6=0
Then restart daemon typing:
rc snmp start
To Enable authentication type:
nvram set minisnmpd_auth=1
Then restart daemon typing:
rc snmp start
To Disable authentication type:
nvram set minisnmpd_auth=0
rc snmp start
Timeout for MIB updates.
Setup the MIB poll timeout typing:
nvram set minisnmpd_timeout=<1 - 999>
Then restart daemon typing:
rc snmp start
Select community typing:
nvram set minisnmpd_community=<name>
Then restart daemon typing:
rc snmp start
Write a description typing:
nvram set minisnmpd_description=<description>
Then restart daemon typing:
rc snmp start
Vendors are IANA assigned code identifiers. For more information: https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers
If no particular purposes occur, mantain the default string code.
Otherwise, setup the vendor code string typing:
nvram set minisnmpd_vendor=<vendorcodestr>
Then restart daemon typing:
rc snmp start
Write the location typing:
nvram set minisnmpd_location=<locationname>
Then restart daemon typing:
rc snmp start
Write contact informations (email) typing:
nvram set minisnmpd_contact=<emailcontact>
Then restart daemon typing:
rc snmp start
To remotely access the snmp service, first go to the web interface Remote Management page (GUI Click: Select Remote Access Type) and choose one of the Allow Remote Access By selection modes: single ip range ip list ip (fill the empty fields) or choose Everyone (default). Then Apply.
There's no need to activate the https remote service too.
Then, activate snmp remote access typing:
nvram set minisnmpd_remote_enable=1
To Disable remote service type:
nvram set minisnmpd_remote_enable=0
Select remote protocol typing:
nvram set minisnmpd_prot=<udp|tcp>
Select remote port typing:
nvram set minisnmpd_remote_port=<1 - 65534>
Then restart daemon typing:
rc snmp start