Networking NVIDIA NVOS User Manual for InfiniBand Switches

Statistics Commands

nv show system stats


nv show system stats

Shows the system statistics collection settings.

Syntax Description

N/A

Default

N/A

History

25.02.2002 | 25.02.3000 Updated command output | 25.03.20xx Updated command output

Example

admin@nvos:~$ nv show system stats
            operational  applied         pending       
----------  -----------  --------------  --------------
state       enabled      enabled         enabled       
[category]               cpu           
[category]               disk          
[category]               fan           
[category]               interface     
[category]               mgmt-interface
[category]               peer-port     
[category]               temperature   
[category]               transceivers  
[category]               voltage

REST API

GET https://<ip>/nvue_v1/system/stats

Related Commands

nv set/unset system stats state

Notes


nv show system stats category


nv show system stats category [<category-id>]

Shows the statistics categories, or the settings of a specific category.

Syntax Description

category-id

The category name; for example, fan.

Default

N/A

History

25.02.2002 | 25.02.3000 Updated command output | 25.03.20xx Updated command output

Example

admin@nvos:~$ nv show system stats category
                History Duration (days)  Interval (minutes)  State  
--------------  -----------------------  ------------------  -------
cpu             365                      5                   enabled
disk            365                      30                  enabled
fan             365                      5                   enabled
interface       7                        5                   enabled
mgmt-interface  365                      5                   enabled
peer-port       7                        5                   enabled
temperature     365                      1                   enabled
transceivers    7                        5                   enabled
voltage         365                      5                   enabled
admin@nvos:~$ nv show system stats category fan
                  operational  applied
----------------  -----------  -------
state             enabled      enabled
interval          5            5
history-duration  365          365

REST API

GET https://<ip>/nvue_v1/system/stats/category
GET https://<ip>/nvue_v1/system/stats/category/<category-id>

Related Commands

nv set/unset system stats category

Notes


nv show system stats files


nv show system stats files [<file-name>]

Shows the statistics report files, or the content of a specific CSV report file.

Syntax Description

file-name

The report file name.

Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv show system stats files
Statistic report file                       File path
------------------------------------------  ------------------------------------------------------
stats_fan_x_20250223_134744.csv             /host/stats/stats_fan_x_20250223_134744.csv
admin@nvos:~$ nv show system stats files stats_fan_x_20250223_134744.csv

REST API

GET https://<ip>/nvue_v1/system/stats/files
GET https://<ip>/nvue_v1/system/stats/files/<file-name>

Related Commands

nv action generate system stats category

Notes

Autocomplete also lists the generated tar file (if one exists), but you can display only CSV files.

nv set/unset system stats state


nv set system stats state [enabled | disabled]
nv unset system stats state

Enables or disables system statistics collection.
The unset form of the command restores the default state (enabled).

Syntax Description

N/A

 

Default

enabled

History


25.02.2002 


Example

admin@nvos:~$ nv set system stats state disabled
admin@nvos:~$ nv unset system stats state

REST API

PATCH https://<ip>/nvue_v1/system/stats

Related Commands

nv show system stats

Notes


nv set/unset system stats category state


nv set system stats category <category-id> state [enabled | disabled]
nv unset system stats category <category-id> state

Enables or disables statistics collection for a category.
The unset form of the command restores the default state (enabled).

Syntax Description

category-id

The category name; for example, fan.

Default

enabled

History


25.02.2002 


Example

admin@nvos:~$ nv set system stats category fan state disabled
admin@nvos:~$ nv unset system stats category fan state

REST API

PATCH https://<ip>/nvue_v1/system/stats/category/<category-id>

Related Commands

nv show system stats category

Notes


nv set/unset system stats category interval


nv set system stats category <category-id> interval <minutes>
nv unset system stats category <category-id> interval

Sets the sampling interval of a category in minutes: 1–1440.
The unset form of the command restores the default interval.

Syntax Description

category-id

The category name; for example, fan.

Default

5 (30 for disk category)

History


25.02.2002 


Example

admin@nvos:~$ nv set system stats category fan interval 60
admin@nvos:~$ nv unset system stats category fan interval

REST API

PATCH https://<ip>/nvue_v1/system/stats/category/<category-id>

Related Commands

nv show system stats category

Notes

Sampling interval is in minutes.

nv set/unset system stats category history-duration


nv set system stats category <category-id> history-duration <days>
nv unset system stats category <category-id> history-duration

Sets how many days of samples a category keeps.
The unset form of the command restores the default duration (365 days).

Syntax Description

category-id

The category name; for example, fan.

days

The number of days: 1–365 (1–7 for the interface, peer-port, and transceivers categories).

Default

365 (7 for the interface, peer-port, and transceivers categories)

History


25.02.2002 


Example

admin@nvos:~$ nv set system stats category fan history-duration 31
admin@nvos:~$ nv unset system stats category fan history-duration

REST API

PATCH https://<ip>/nvue_v1/system/stats/category/<category-id>

Related Commands

nv show system stats category

Notes

History duration is in days.

nv action clear system stats category


nv action clear system stats category <category-id>

Clears the sampled data of a category.

Syntax Description

category-id

The category name; for example, fan.

Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv action clear system stats category fan

REST API

POST https://<ip>/nvue_v1/system/stats/category/<category-id>

Related Commands

nv action generate system stats category

Notes


nv action clear system stats category


nv action clear system stats category <category-id>

Clears the sampled data of a category.

Syntax Description

category-id

The category name; for example, fan.

Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv action clear system stats category fan

REST API

POST https://<ip>/nvue_v1/system/stats/category/<category-id>

Related Commands

nv action generate system stats category

Notes


nv action generate system stats category


nv action generate system stats category <category-id>

Generates a CSV report file for a category.

Syntax Description

category-id

The category name; for example, fan.

Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv action generate system stats category fan

REST API

POST https://<ip>/nvue_v1/system/stats/category/<category-id>

Related Commands

nv show system stats files

Notes


nv action generate system stats


nv action generate system stats

Generates a tar file with the reports of all categories.

Syntax Description

N/A


Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv action generate system stats

REST API

POST https://<ip>/nvue_v1/system/stats

Related Commands

nv show system stats files

Notes


nv action clear system stats


nv action clear system stats

Clears the sampled data of all categories.

Syntax Description

N/A


Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv action clear system stats

REST API

POST https://<ip>/nvue_v1/system/stats

Related Commands

nv action generate system stats

Notes


nv action delete system stats files


nv action delete system stats files <file-name>

Deletes a statistics report file.

Syntax Description

file-name

The report file name.

Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv action delete system stats files stats_fan_x_20250223_134744.csv

REST API

POST https://<ip>/nvue_v1/system/stats/files/<file-name>

Related Commands

nv action generate system stats category
nv show system stats files

Notes


nv action upload system stats files


nv action upload system stats files <file-name> <remote-url>

Uploads a statistics report file to a remote location.

Syntax Description

file-name

The report file name.

remote-url

Remote URL path to upload the file to.
Format: [protocol]://username[:password]@hostname/path/filename
Supported protocols: SCP, FTP, SFTP, and HTTPS

Default

N/A

History


25.02.2002 



25.02.4002

Added HTTPS support in remote-url


Example

admin@nvos:~$ nv action upload system stats files stats_fan_x_20250223_134744.csv scp://user@host/path/to/folder

REST API

POST https://<ip>/nvue_v1/system/stats/files/<file-name>

Related Commands

nv show system stats files

Notes


Last updated: