Networking NVIDIA NVOS User Manual for InfiniBand Switches

SNMP Commands

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 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system snmp-server
                       operational                       applied                           pending
---------------------  --------------------------------  --------------------------------  --------------------------------
[listening-address]    all                               all                               all
[readonly-community]   efa1f375d76194fa51a3556a97e641e6  efa1f375d76194fa51a3556a97e641e6  efa1f375d76194fa51a3556a97e641e6
auto-refresh-interval  10                                10                                10
state                  enabled                           enabled                           enabled

REST API

GET https://<ip>/nvue_v1/system/snmp-server

Related Commands

nv show system snmp-server listening-address
nv show system snmp-server readonly-community

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 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system snmp-server listening-address
    port  vrf
---  ----  ---
all  161

admin@nvos:~$ nv show system snmp-server listening-address all
   operational  applied  pending
----  -----------  -------  -------
port  161          161      161

REST API

GET https://<ip>/nvue_v1/system/snmp-server/listening-address
GET https://<ip>/nvue_v1/system/snmp-server/listening-address/<addr>

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 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system snmp-server readonly-community
                               
--------------------------------
efa1f375d76194fa51a3556a97e641e6

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

admin@nvos:~$ nv set system snmp-server state enabled

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.
You can also use a keyword: all (0.0.0.0), localhost (127.0.0.1), all-v6 (::), or localhost-v6 (::1).

port

Optional. The port for the listening address: 1–65535. The default is 161.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system snmp-server listening-address 192.168.0.10 port 44444

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

admin@nvos:~$ nv set system snmp-server readonly-community community1

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.
The same communities apply to IPv4 and IPv6.

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

admin@nvos:~$ nv set system snmp-server auto-refresh-interval 5

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

admin@nvos:~$ nv set system snmp-server system-contact "John Doe"

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

admin@nvos:~$ nv set system snmp-server system-location "2nd floor cabinet"

REST API

PATCH https://<ip>/nvue_v1/system/snmp-server

Related Commands


Notes


Last updated: