Network Management Interface Commands
snmp-server auto-refresh
snmp-server auto-refresh {enable | interval <time>} Configures SNMPD refresh settings. | ||
Syntax Description | enable | Enables SNMPD refresh mechanism. |
interval | Sets SNMPD refresh interval. | |
time | Range: 20-500 seconds | |
Default | Enabled | |
Configuration Mode | config | |
History | 3.2.3000 | |
Example | switch (config) # snmp-server auto-refresh interval 120 | |
Related Commands | show snmp | |
Notes |
|
snmp-server cache enable
snmp-server cache enable Enables SNMP cache if auto-refresh is disabled. | ||
Syntax Description | N/A | |
Default | Enabled | |
Configuration Mode | config | |
History | 3.7.0000 | |
Example | switch (config) # snmp-server cache enable | |
Related Commands | show snmp auto-refresh | |
Notes |
|
snmp-server community
snmp-server community <community> [ro | rw] Sets a community name for either read-only or read-write SNMP requests. | ||
Syntax Description | community | Community name |
ro | Sets the read-only community string | |
rw | Sets the read-write community string | |
Default | Read-only community: “public” | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server community private rw | |
Related Commands | show snmp | |
Notes |
|
snmp-server contact
snmp-server contact <contact-name> Sets a value for the sysContact variable in MIB-II. | ||
Syntax Description | contact-name | Contact name |
Default | “” | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server contact my-name | |
Related Commands | show snmp | |
Notes |
snmp-server enable
snmp-server [vrf <vrf-name>] enable [force] Enables SNMP-related functionality (SNMP engine, and traps). | ||
Syntax Description | vrf name—Describes VRF name for snmp-server. If "vrf" parameter is not specified, the "default" VRF will be used | |
Default | SNMP is enabled by default | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server enable | |
Related Commands | show snmp | |
Notes | SNMP server can be enabled only in one VRF at a time. |
snmp-server engineID reset
snmp-server engineID reset Resets the SNMPv3 engine ID to be node unique. | ||
Syntax Description | N/A | |
Default | Default engineID is unchanged | |
Configuration Mode | config | |
History | 3.6.6102 | |
Example | switch (config) # snmp-server engienID reset | |
Related Commands | show snmp engineID | |
Notes | Changing system profile or performing “reset factory...” causes the engine ID to change to the new node-unique one. |
snmp-server enable mult-communities
snmp-server enable mult-communities Enables multiple communities to be configured. | ||
Syntax Description | N/A | |
Default | SNMP server multi-communities are disabled by default | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server enable mult-communities | |
Related Commands | show snmp | |
Notes |
snmp-server enable notify
snmp-server enable notify Enables sending of SNMP traps and informs from this system. | ||
Syntax Description | N/A | |
Default | SNMP notifies are enabled by default | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server enable notify | |
Related Commands | show snmp | |
Notes | SNMP traps are only sent if there are trap sinks configured with the “snmp-server host...” command, and if these trap sinks are themselves enabled. |
snmp-server enable set-permission
snmp-server enable set-permission <MIB-name> Allows SNMP SET requests for items in a specified MIB. | ||
Syntax Description | N/A | |
Default | SNMP MIBs are all given permission for SET requests by default | |
Configuration Mode | config | |
History | 3.6.3004 | |
Example | switch (config) # snmp-server enable set-permission MELLANOX-SW-UPDATE | |
Related Commands | show snmp set-permission | |
Notes |
snmp-server host disable
snmp-server host <ip-address> disable Temporarily disables sending of all notifications to this host. | ||
Syntax Description | ip-address | IPv4 or IPv6 address |
Default | N/A | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server host 10.10.10.10 disable | |
Related Commands | show snmp | |
Notes |
snmp-server host informs
snmp-server host [vrf <vrf-name>] <ip-address> informs [<community> | port <port> | version 2c | version 3 {engineID <engineID> | user <name> {auth <hash-type> <auth- no snmp-server host <ip-address> informs port Send SNMP v2c informs to this host with the default trap community. | ||
Syntax Description | vrf-name—Describes the VRF name for NTP daemon. If the VRF parameter is not specified, the "default" VRF will be used implicitly. | |
IP address | IPv4 or IPv6 address. | |
community | Specifies trap community string. | |
port | Overrides default UDP port for this trap sink. | |
version | Specifies the SNMP version of traps to send to this host. | |
engineID | Specifies engine ID of this inform sink. | |
user | Specifies username for this inform sink. | |
auth | Configures SNMPv3 security parameters, specifying passwords in plaintext on the command line (passwords are always stored encrypted). | |
hash-type |
| |
auth-password | Plaintext password to use for authentication. | |
priv | Specifies SNMPv3 privacy settings for this user. | |
privacy-type |
| |
priv-password | Plaintext password to use for privacy. If not specified, then auth-password is used. | |
encrypted | Configure SNMPv3 security parameters specifying passwords in encrypted form. | |
prompt | Configure SNMPv3 security parameters specifying passwords securely in follow-up prompts rather than on the command line. | |
Default | community—public | |
Configuration Mode | config | |
History | 3.2.1050 | |
Example | switch (config) # snmp-server host 1.1.1.1 informs version 3 engineID 0x800041da04643265363932653432303135 user test auth md5 password priv aes-128 password | |
Related Commands | show snmp | |
Notes | Multiple snmp-hosts can be configured in different VRF`s at the same time. |
snmp-server host traps
snmp-server host [vrf <vrf-name>] <ip-address> traps [<community> | port <port> | version {1 | 2c} | version 3 {user <name> {auth <hash-type> <auth-password> [priv <privacy-type> [<priv-password>]] | encrypted auth ... | prompt auth ...}}] Send SNMP v2c traps to this host with the default trap community. | ||
Syntax Description | vrf-name—Describes the VRF name for NTP daemon. If the VRF parameter is not specified, the "default" VRF will be used implicitly. | |
ip-address | IPv4 or IPv6 address. | |
community | Specifies trap community string. | |
port | Overrides default UDP port for this trap sink. | |
version | Specifies the SNMP version of traps to send to this host. | |
user | Specifies username for this inform sink. | |
auth | Configures SNMPv3 security parameters, specifying passwords in plaintext on the command line (passwords are always stored encrypted). | |
hash-type |
| |
auth-password | Plaintext password to use for authentication. | |
priv | Specifies SNMPv3 privacy settings for this user. | |
privacy-type |
| |
priv-password | Plaintext password to use for privacy. If not specified, then auth-password is used. | |
encrypted | Configure SNMPv3 security parameters, specifying passwords in encrypted form. | |
prompt | Configure SNMPv3 security parameters, specifying passwords securely in follow-up prompts, rather than on the command line. | |
vrf-name—Describes VRF name for snmp-server. If "vrf" parameter is not specified, the "default" VRF will be used | ||
Default | community—public | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server host 1.1.1.1 informs version 3 user test auth md5 password priv aes-128 password | |
Related Commands | show snmp | |
Notes | Multiple snmp-hosts can be configured in different VRF`s at the same time. |
snmp-server listen
snmp-server listen {enable | interface <ifName>} Configures SNMP server interface access restrictions. | ||
Syntax Description | enable | Enables SNMP interface restrictions on access to this system |
ifName | Adds an interface to the “listen” list for SNMP server. For example: “mgmt0”, “mgmt1” | |
Default | N/A | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp listen enable | |
Related Commands | show snmp | |
Notes | If enabled, and if at least one of the interfaces listed is eligible to be a listen interface, then SNMP requests will only be accepted on those interfaces. Otherwise, SNMP requests are accepted on any interface. |
snmp-server notify
snmp-server notify {community <community> | event <event name> | port <port> | send-test} Configures SNMP notifications (traps and informs). | ||
Syntax Description | community | Sets the default community for traps sent to hosts which do not have a custom community string set |
event | Specifies which events will be sent as traps | |
port | Sets the default port to which traps are sent | |
send-test | Sends a test trap | |
Default | All informs and traps are enabled | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server community public | |
Related Commands | show snmp | |
Notes |
|
snmp-server port
snmp-server port <port> Sets the UDP listening port for the SNMP agent. | ||
Syntax Description | port | UDP port |
Default | 161 | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server port 1000 | |
Related Commands | show snmp | |
Notes |
snmp-server user
snmp-server user {admin | <username>} v3 {[encrypted] auth <hash-type> <password> [priv <privacy-type> [<password>]] | capability <cap> | enable <sets> | prompt auth <hash-type> [priv <privacy-type>] | require-privacy} Specifies an existing username, or a new one to be added. | ||
Syntax Description | v3 | Configures SNMPv3 users. |
auth | Configures SNMPv3 security parameters, specifying passwords in plaintext on the command line (note: passwords are always stored encrypted). | |
capability | Sets capability level for SET requests. | |
enable | Enables SNMPv3 access for this user. | |
encrypted | Configures SNMPv3 security parameters, specifying passwords in encrypted form. | |
prompt | Configures SNMPv3 security parameters, specifying passwords securely in follow-up prompts, rather than on the command line. | |
require-privacy | Requires privacy (encryption) for requests from this user. | |
priv | Configures SNMPv3 security parameters, specifying which protocol to use for traffic encryption. Available priv-type options: <des|3des|aes-128|aes-192|aes-256>. | |
Default | No SNMP v3 users defined | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # snmp-server user admin v3 enable | |
Related Commands | show snmp user | |
Notes |
|
show snmp
show snmp [events | host] Displays SNMP-server configuration and status. | ||
Syntax Description | events | SNMP events |
host | List of notification sinks | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.1.0000 | |
Example |
VRF name : mgmt
| |
Related Commands | show snmp | |
Notes |
show snmp auto-refresh
show snmp auto-refresh Displays SNMPD refresh mechanism status. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.1.0000 | |
Example |
| |
Related Commands | snmp-server auto-refresh | |
Notes |
show snmp engineID
show snmp engineID Displays SNMPv3 engine ID key. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.6102 | |
Example | switch (config) # show snmp engineID | |
Related Commands | snmp-server engineID | |
Notes |
show snmp set-permission
show snmp set-permission Displays SNMP SET permission settings. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.3004 | |
Example | switch (config) # show snmp set-permission | |
Related Commands | snmp-server enable set-permission | |
Notes |
show snmp user
show snmp user Displays SNMP user information. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 3.1.0000 | |
Example | switch (config) # show snmp user | |
Related Commands | show snmp | |
Notes |
json-gw enable
json-gw enable Enables the JSON API. | ||
Syntax Description | N/A | |
Default | JSON API is enabled | |
Configuration Mode | config | |
History | 3.6.3004 | |
Example | switch (config) # json-gw enable | |
Related Commands | show json-gw | |
Notes |
json-gw synchronous-request-timeout
json-gw synchronous-request-timeout <timeout-value> Defines a timeout value for synchronous JSON requests (in seconds). | ||
Syntax Description | timeout-value | Define a timeout value for synchronous JSON requests |
Default | JSON API is enabled | |
Configuration Mode | config | |
History | 3.6.3004 | |
Example | switch (config) # json-gw synchronous-request-timeout 100 | |
Related Commands | show json-gw | |
Notes |
show json-gw
show json-gw Displays the JSON API setting. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 3.6.3004 | |
Example |
| |
Related Commands | json-gw enable | |
Notes |