Command Line (CLI) Reference > CLI Commands > SNMP

CLI: SNMP

You can use the snmp-server command to configure SNMP.

Configuring SNMP

snmp-server {community|contact|enable|host|listen|location|port|restrict|user}

To add a new SNMP community:

snmp-server community <community>

To set a value for the syscontact variable in MIB-II:

snmp-server contact <contact>

Set a value for the syslocation variable in MIB-II:

snmp-server location <location>

To enable SNMP-related functionality:

snmp-server enable          

To enable community-based authentication:

snmp-server enable communities

To enable sending of SNMP traps and informs from this system:

snmp-server enable notify

To specify the hostname or IP address to send SNMP traps to:

snmp-server host <host>

To specify the port for sending the SNMP trap:

snmp-server port <port>

To configure SNMP server interface access restrictions:

snmp-server listen {enable|interface <interface>}

To configure SNMP access on a per-user basis:

snmp-server user <username> v3 {auth|enable|encrypted|prompt}

To restrict a network object from accessing the SNMP server:

snmp-server restrict <network-object>