nv show system snmp-server
|
|
nv show system snmp-server Shows the SNMP server configuration. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/system/snmp-server |
|
|
Related Commands |
nv show system snmp-server listening-address
|
|
|
Notes |
|
|
nv show system snmp-server listening-address
|
|
nv show system snmp-server listening-address [<addr>] Shows the SNMP server listening addresses. |
|
|
Syntax Description |
addr |
Optional. The listening address to show. If you omit it, the command shows all listening addresses. |
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/system/snmp-server/listening-address
|
|
|
Related Commands |
|
|
|
Notes |
|
|
nv show system snmp-server readonly-community
|
|
nv show system snmp-server readonly-community Shows the SNMP server read-only communities. |
|
|
Syntax Description |
N/A |
|
|
Default |
N/A |
|
|
History |
25.02.2002
|
|
|
Example |
|
|
|
REST API |
GET https://<ip>/nvue_v1/system/snmp-server/readonly-community |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv set system snmp-server state
|
|
nv set system snmp-server state <enabled | disabled> Enables or disables the SNMP server. |
|
|
Syntax Description |
N/A |
|
|
Default |
disabled |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/system/snmp-server |
|
|
Related Commands |
|
|
|
Notes |
To enable the SNMP server, configure at least one listening address and one read-only community. |
|
nv set system snmp-server listening-address
|
|
nv set system snmp-server listening-address <addr> [port <port>] Configures a listening address for the SNMP server. |
|
|
Syntax Description |
addr |
The IPv4 or IPv6 address to listen on.
|
|
port |
Optional. The port for the listening address: 1–65535. The default is 161. |
|
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/system/snmp-server/listening-address/<addr> |
|
|
Related Commands |
|
|
|
Notes |
You can configure multiple listening addresses. |
|
nv set system snmp-server readonly-community
|
|
nv set system snmp-server readonly-community <community> Configures a read-only community for the SNMP server. |
|
|
Syntax Description |
community |
The community string: up to 255 characters. The switch stores it encrypted. |
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/system/snmp-server/readonly-community/<community> |
|
|
Related Commands |
|
|
|
Notes |
You can configure up to four read-only communities.
|
|
nv set system snmp-server auto-refresh-interval
|
|
nv set system snmp-server auto-refresh-interval <interval> Sets the number of seconds between SNMP data refreshes. |
|
|
Syntax Description |
interval |
The interval in seconds: 5–300. |
|
Default |
60 |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/system/snmp-server |
|
|
Related Commands |
|
|
|
Notes |
The SNMP server refreshes its data once every interval. The exception is sysName, which reflects the system hostname: it refreshes every 12 intervals, because the hostname rarely changes. |
|
nv set system snmp-server system-contact
|
|
nv set system snmp-server system-contact <contact> Sets the sysContact value in MIB-II. |
|
|
Syntax Description |
contact |
The contact information: up to 255 characters. |
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/system/snmp-server |
|
|
Related Commands |
|
|
|
Notes |
|
|
nv set system snmp-server system-location
|
|
nv set system snmp-server system-location <location> Sets the sysLocation value in MIB-II. |
|
|
Syntax Description |
location |
The location: up to 255 characters. |
|
Default |
N/A |
|
|
History |
25.02.2002 |
|
|
Example |
|
|
|
REST API |
PATCH https://<ip>/nvue_v1/system/snmp-server |
|
|
Related Commands |
|
|
|
Notes |
|
|
Last updated: