MIB examples

SNMP examples

Using snmpset

You can also set notifications or assign values to certain R/W OIDs.

1.This command enables a Login notification when a user logs in:

snmpset -v 2c -c private -m all -Os 192.168.1.1 adminAccessLoginNotificationEnabled.0

i:enable

2.This is the same command as #1, but uses the value "1" to represent enable:

snmpset -v 2c -c private -m all -Os 192.168.1.1 adminAccessLoginNotificationEnabled.0

i:1

3.This command disables the Login Notification, using the mnemonic "disabled":

snmpset -v 2c -c private -m all -Os 192.168.1.1 adminAccessLoginNotificationEnabled.0

i:disable

4.This command disables the Login Notification, using the numeric value "2":

snmpset -v 2c -c private -m all -Os 192.168.1.1 adminAccessLoginNotificationEnabled.0

i:2

5.This command resets your MSM hardware to factory default settings. Use this command with caution.

snmpset -v 2c -m all -Os -c private 192.168.1.1 configurationFactoryDefaults.0 i: 1

2-6