CLI: SNMP

You can use the snmp-server command to configure SNMPSimple Network Management Protocol.

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 MIBManagement Information Base-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 IPInternet protocol address to send SNMP traps to:

snmp-server host <host>

  • host <host> - Hostname or IP address. IPv4 or IPv6 addresses can be used.

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>}

  • listen interface <interface> - Add the named interface to the SNMP server access restriction list

To configure SNMP access on a per-user basis:

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

  • v3 - Configure SNMP v3 users
  • auth {md5|sha} <password> [priv <privacy-type>] - Configure SNMP v3 security parameters

To restrict a network objecta logical definition created and stored in the Exinda lilbrary, can represent any network component from accessing the SNMP server:

snmp-server restrict <network-object>