Enable SNMP
To monitor the health of the Nozomi Networks Operating System (N2OS) sensor, you need to enable the simple network management protocol (SNMP) daemon.
About this task
The current simple network management protocol (SNMP) daemon supports versions v1, v2c and v3. This feature is not available with a container installation.
Procedure
- Log into the console, either directly or through secure shell (SSH).
- 
                To go to privileged mode, enter this command:
                enable-meYou can now perform system changes.
- 
                Edit these variables as necessary:
                - location
- contact
- community
 Important:For community, it is important to use a strong password.
- 
                Change the value of other variables as necessary.
                Note:For SNMP v3 User-Based Security Model (USM), uncomment the following sections in /etc/snmpd.conf to create a user bsnmp and set privacy and encryption options to SHA message digests and AES encryption for this user:engine := 0x80:0x10:0x08:0x10:0x80:0x25 snmpEngineID = $(engine)user1 := "bsnmp" user1passwd := 0x22:0x98:0x1a:0x6e:0x39:0x93:0x16: ... :0x05:0x16:0x33:0x38:0x60begemotSnmpdModulePath."usm" = "/usr/lib/snmp_usm.so"%usmusmUserStatus.$(engine).$(user1) = 5 usmUserAuthProtocol.$(engine).$(user1) = $(HMACSHAAuthProtocol) usmUserAuthKeyChange.$(engine).$(user1) = $(user1passwd) usmUserPrivProtocol.$(engine).$(user1) = $(AesCfb128Protocol) usmUserPrivKeyChange.$(engine).$(user1) = $(user1passwd) usmUserStatus.$(engine).$(user1) = 1
- 
                Edit the /etc/rc.conf file with this line:
                bsnmpd_enable="YES"
- 
                To start the service, enter this command:
                service bsnmpd start
- 
                If you enabled the User-Based Security Model (USM) in step 3, replace the default
                    value for the user1passwdvariable.
- 
                To save all of the settings, enter this command:
                n2os-save
- 
                To check the functionality, run a test command from an external system (the
                        <sensor_ip>has to be reachable). For example, for the USM case, with the default values in the /etc/snmpd.conf file, use a command similar to this:snmpstatus -v3 -u bsnmp -a SHA -A <password> -x AES -X <password> -l authPriv <sensor_ip>