Networking NVIDIA NVOS User Manual for InfiniBand Switches

Remote Logging Commands

nv show system syslog


nv show system syslog

Shows the syslog configuration: the log format, the remote servers, and the selectors.

Syntax Description

N/A


Default

N/A

History

25.02.2002 
25.02.5002 Updated output

Example

admin@nvos:~$ nv show system syslog
        operational  applied
------  -----------  --------
format  standard     standard

server
=======
Servers               Vrf      Protocol  Port  Priority  Selector-Id
--------------------  -------  --------  ----  --------  -----------
192.0.2.1             mgmt     tcp       9080
fe80::202:ff:fe00:2e  mgmt     udp       514   10        selector-2
                                               20        selector-3
syslog.example.com    default  tcp       9080  1         selector-3

selector
===========
Selectors   Severity  Program-Name  Facility  Burst  Interval  Filter  Match               Action
----------  --------  ------------  --------  -----  --------  ------  ------------------  -------
selector-1  debug     switchd       daemon    200    5         1       my_important_id.+$  include
selector-2  info      ifreload      user      10     10        2       ^jobsfailed.+$      exclude
selector-3  notice                  daemon    200    5         1       test                exclude
                                                               2       restart             include

REST API

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

Related Commands

nv show system log rotation

Notes


nv show system syslog format


nv show system syslog format

Shows the syslog format.

Syntax Description

N/A


Default

N/A

History

25.02.2002 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system syslog format
        operational  applied
------  -----------  --------
format  standard     standard

REST API

GET https://<ip>/nvue_v1/system/syslog/format

Related Commands

nv show system log rotation

Notes


nv show system syslog server


nv show system syslog server

Shows the remote syslog servers.

Syntax Description

N/A


Default

N/A

History

25.02.2002 
25.02.5002 Updated output

Example

admin@nvos:~$ nv show system syslog server
Servers      Vrf      Protocol  Port  Priority  Selector-Id
-----------  -------  --------  ----  --------  ---------------
192.0.2.10   default  tcp       9080  10        my-new-selector
                                      20        my-selector
192.0.2.20   default  tcp       514
192.0.2.120  mgmt     udp       514
192.0.2.1    red      tcp       9080  10        my-new-selector
                                      20        my-selector

REST API

GET https://<ip>/nvue_v1/system/syslog/server

Related Commands


Notes


nv show system syslog server id


nv show system syslog server <server-id>

Shows the configuration of a remote syslog server.

Syntax Description

server-id

The IPv4 address, IPv6 address, or hostname of the remote syslog server.

Default

N/A

History

25.02.2002 
25.02.3000 Updated command output
25.02.5002 Updated output

Example

admin@nvos:~$ nv show system syslog server 192.0.2.10
          operational  applied
--------  -----------  -------
port      9080         9080
protocol  tcp          tcp
vrf       default      default

selector
===========
Priority  Selector-Id
--------  ---------------
10        my-new-selector
20        my-selector

REST API

GET https://<ip>/nvue_v1/system/syslog/server/<server-id>

Related Commands


Notes


nv show system syslog selector


nv show system syslog selector

Shows all syslog selectors with their severity, filters, and rate limits.

Syntax Description

N/A


Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system syslog selector

Selectors   Severity  Program-Name  Facility  Burst  Interval  Filter  Match               Action
----------  --------  ------------  --------  -----  --------  ------  ------------------  -------
selector-1  debug     switchd       daemon    200    5         1       my_important_id.+$  include
selector-2  info      ifreload      user      10     10        2       ^jobsfailed.+$      exclude
selector-3  notice                  daemon    200    5         1       test                exclude
                                                               2       restart             include

REST API

GET https://<ip>/nvue_v1/system/syslog/selector

Related Commands


Notes


nv show system syslog selector id


nv show system syslog selector <selector-id>

Shows the configuration of a specific selector, including the severity, facility, and rate limits.

Syntax Description

selector-id

The selector name.

Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system syslog selector selector-3

              operational  applied
------------  -----------  -------
facility      daemon       daemon
severity      notice       notice

rate-limit
-----------
burst         200          200
interval      5            5

filter
=======
Priority  Action   Match
--------  -------  -------
1         exclude  test
2         include  restart

REST API

GET https://<ip>/nvue_v1/system/syslog/selector/<selector-id>

Related Commands


Notes


nv show system syslog selector id filter


nv show system syslog selector <selector-id> filter

Shows the filter rules of the selector, including the match patterns and actions.

Syntax Description

selector-id

The selector name.

Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system syslog selector selector-3 filter

Priority  Action   Match
--------  -------  -------
1         exclude  test
2         include  restart

REST API

GET https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/filter

Related Commands


Notes


nv show system syslog selector id filter id


nv show system syslog selector <selector-id> filter <filter-id>

Shows the operational and applied values of a specific filter of the selector.

Syntax Description

selector-id

The selector name.

Syntax Description

filter-id

The filter priority: 1–65535.

Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system syslog selector selector-3 filter 20

        operational  applied
------  -----------  -------
match   test         test
action  exclude      exclude

REST API

GET https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/filter/<filter-id>

Related Commands


Notes


nv show system syslog selector id rate-limit


nv show system syslog selector <selector-id> rate-limit

Shows the burst and interval rate-limit values of the selector.

Syntax Description

selector-id

The selector name.

Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system syslog selector selector-2 rate-limit

         operational  applied
--------  -----------  -------
burst     10           10
interval  10           10

REST API

GET https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/rate-limit

Related Commands


Notes


nv show system syslog server id selector


nv show system syslog server <server-id> selector

Shows the selectors attached to the syslog server, with their priorities.

Syntax Description

server-id

The IPv4 address, IPv6 address, or hostname of the remote syslog server.

Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system syslog server 192.0.2.10 selector
Priority  Selector-Id
--------  ---------------
10        my-new-selector
20        my-selector

REST API

GET https://<ip>/nvue_v1/system/syslog/server/<server-id>/selector

Related Commands


Notes


nv show system syslog server id selector id


nv show system syslog server <server-id> selector <priority-id>

Shows the selector attached to the syslog server with the specified priority.

Syntax Description

server-id

The IPv4 address, IPv6 address, or hostname of the remote syslog server.

priority-id

The selector priority: 1–65535.

Default

N/A

History

25.02.5002

Example

admin@nvos:~$ nv show system syslog server 192.0.2.10 selector 10
             operational      applied
-----------  ---------------  ---------------
selector-id  my-new-selector  my-new-selector

REST API

GET https://<ip>/nvue_v1/system/syslog/server/<server-id>/selector/<priority-id>

Related Commands


Notes


nv unset system syslog


nv unset system syslog

Removes the syslog configuration: the format, the remote servers, and the selectors.

Syntax Description

N/A


Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv unset system syslog

REST API

DELETE https://<ip>/nvue_v1/system/syslog

Related Commands

nv show system syslog

Notes


nv set/unset system syslog format


nv set system syslog format standard
nv unset system syslog format

Sets the log format to standard. To use the WebTrends Enhanced Log Format (WELF), set a WELF firewall name (nv set system syslog format welf firewall-name).
The unset form of the command restores the default format (standard).

Syntax Description

N/A


Default

standard

History

25.02.2002 
25.02.5002 Removed the welf option

Example

admin@nvos:~$ nv set system syslog format standard
admin@nvos:~$ nv unset system syslog format

REST API

PATCH https://<ip>/nvue_v1/system/syslog/format

Related Commands

nv set system syslog format welf firewall-name

Notes


nv set/unset system syslog format welf firewall-name


nv set system syslog format welf firewall-name <name>
nv unset system syslog format welf firewall-name

Sets the log format to WELF with the specified firewall name.
The unset form of the command removes the firewall name.

Syntax Description

name

The firewall name to include in WELF log messages.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog format welf firewall-name "NVOS switch 2"

admin@nvos:~$ nv unset system syslog format welf firewall-name

REST API

PATCH https://<ip>/nvue_v1/system/syslog/format/welf

Related Commands


Notes


nv unset system syslog server


nv unset system syslog server

Removes all remote syslog servers.

Syntax Description

N/A


Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv unset system syslog server

REST API

DELETE https://<ip>/nvue_v1/system/syslog/server

Related Commands


Notes


nv set/unset system syslog server id


nv set system syslog server <server-id>
nv unset system syslog server <server-id>

Adds a remote syslog server.
The unset form of the command removes the server.

Syntax Description

server-id

The IPv4 address, IPv6 address, or hostname of the remote syslog server.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog server 10.20.30.40

admin@nvos:~$ nv unset system syslog server 10.20.30.40

REST API

PATCH https://<ip>/nvue_v1/system/syslog/server/<server-id>
DELETE https://<ip>/nvue_v1/system/syslog/server/<server-id>

Related Commands


Notes


nv set/unset system syslog server id port


nv set system syslog server <server-id> port <port-number>
nv unset system syslog server <server-id> port

Sets the port for communication with the remote syslog server.
The unset form of the command restores the default port (514).

Syntax Description

server-id

The IPv4 address, IPv6 address, or hostname of the remote syslog server.

port-number

Port number of the remote syslog server: 1–65535

Default

514

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog server 10.20.30.40 port 1234

admin@nvos:~$ nv unset system syslog server 10.20.30.40 port

REST API

PATCH https://<ip>/nvue_v1/system/syslog/server/<server-id>

Related Commands


Notes


nv set/unset system syslog server id protocol


nv set system syslog server <server-id> protocol [tcp | udp]
nv unset system syslog server <server-id> protocol

Sets the protocol for communication with the remote syslog server: tcp or udp.
The unset form of the command restores the default protocol (udp).

Syntax Description

server-id

The IPv4 address, IPv6 address, or hostname of the remote syslog server.

Default

udp

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog server 10.20.30.40 protocol tcp
admin@nvos:~$ nv unset system syslog server 10.20.30.40 protocol

REST API

PATCH https://<ip>/nvue_v1/system/syslog/server/<server-id>

Related Commands


Notes


nv set/unset system syslog server id vrf


nv set system syslog server <server-id> vrf [default | mgmt]
nv unset system syslog server <server-id> vrf

Sets the VRF for communication with the remote syslog server.
The unset form of the command restores the default VRF (default).

Syntax Description

server-id

The IPv4 address, IPv6 address, or hostname of the remote syslog server.

Default

default

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog server 10.20.30.40 vrf mgmt

admin@nvos:~$ nv unset system syslog server 10.20.30.40 vrf

REST API

PATCH https://<ip>/nvue_v1/system/syslog/server/<server-id>

Related Commands


Notes


nv unset system syslog selector


nv unset system syslog selector

Removes all syslog selectors.

Syntax Description

N/A


Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv unset system syslog selector

REST API

DELETE https://<ip>/nvue_v1/system/syslog/selector

Related Commands


Notes


nv set/unset system syslog selector id


nv set system syslog selector <selector-id>
nv unset system syslog selector <selector-id>

Creates a syslog selector.
The unset form of the command removes the selector.

Syntax Description

selector-id

The selector name.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector Selector-1

admin@nvos:~$ nv unset system syslog selector Selector-2

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>
DELETE https://<ip>/nvue_v1/system/syslog/selector/<selector-id>

Related Commands


Notes


nv set/unset system syslog selector id severity


nv set system syslog selector <selector-id> severity <level>
nv unset system syslog selector <selector-id> severity

Sets the minimum severity level of the log messages that the selector sends.
The unset form of the command removes the setting.

Syntax Description

selector-id

The selector name.

level

The minimum severity level: debug, info, notice, warn, error, or critical.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector selector-1 severity info
admin@nvos:~$ nv unset system syslog selector selector-1 severity

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/severity

Related Commands


Notes


nv set/unset system syslog selector id program-name


nv set system syslog selector <selector-id> program-name <value>
nv unset system syslog selector <selector-id> program-name

Sets the program name filter of the selector: the selector sends only log messages from this application or program.
The unset form of the command removes the filter.

Syntax Description

selector-id

The selector name.


value

The application or program name; for example, switchd.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector selector-1 program-name switchd
admin@nvos:~$ nv unset system syslog selector selector-1 program-name

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/program-name

Related Commands


Notes


nv set/unset system syslog selector id facility


nv set system syslog selector <selector-id> facility <name>
nv unset system syslog selector <selector-id> facility

Sets the syslog facility (log source category) of the selector.
The unset form of the command removes the setting.

Syntax Description

selector-id

The selector name.


name

The log source category: auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, security, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6, or local7.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector selector-1 facility daemon
admin@nvos:~$ nv unset system syslog selector selector-1 facility

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/facility

Related Commands


Notes


nv unset system syslog selector id filter


nv unset system syslog selector <selector-id> filter

Removes all filters of the selector.

Syntax Description

selector-id

The selector name.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv unset system syslog selector Selector-2 filter

REST API

DELETE https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/filter

Related Commands


Notes


nv set system syslog selector id filter id


nv set system syslog selector <selector-id> filter <filter-id>
nv unset system syslog selector <selector-id> filter <filter-id>

Creates a filter with the specified priority in the selector. The selector applies the filters in priority order.
The unset form of the command removes the filter.

Syntax Description

selector-id

The selector name.


filter-id

The filter priority: 1–65535.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector Selector-1 filter 1
admin@nvos:~$ nv unset system syslog selector Selector-2 filter 1

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/filter/<filter-id>
DELETE https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/filter/<filter-id>

Related Commands


Notes

You must set both the match condition and the action of the filter.

nv set system syslog selector id filter id match


nv set system syslog selector <selector-id> filter <filter-id> match <match-string>

Sets the match condition of a filter.

Syntax Description

selector-id

The selector name.


filter-id

The filter priority: 1–65535.


match-string

The string or regular expression to match in log messages.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector Selector-1 filter 1 match my_important_id.+$

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/filter/<filter-id>/match

Related Commands


Notes


nv set system syslog selector id filter id action


nv set system syslog selector <selector-id> filter <filter-id> action <value>


Sets the action of a filter: include or exclude the log messages that match.

Syntax Description

selector-id

The selector name.


filter-id

The filter priority: 1–65535.


value

The action: include or exclude.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector Selector-1 filter 1 action include

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/filter/<filter-id>/action

Related Commands


Notes


nv unset system syslog selector id rate-limit


nv unset system syslog selector <selector-id> rate-limit

Removes the rate-limit settings of the selector.

Syntax Description

selector-id

The selector name.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv unset system syslog selector Selector-1 rate-limit

REST API

DELETE https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/rate-limit

Related Commands


Notes


nv set/unset system syslog selector id rate-limit burst


nv set system syslog selector <selector-id> rate-limit burst <value>
nv unset system syslog selector <selector-id> rate-limit burst

Sets the maximum number of log messages that the selector sends within the rate-limit interval.
The unset form of the command removes the setting.

Syntax Description

selector-id

The selector name.


value

The maximum number of log messages: 1–65535.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector Selector-1 rate-limit burst 1

admin@nvos:~$ nv unset system syslog selector Selector-2 rate-limit burst

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/rate-limit/burst

Related Commands


Notes


nv set/unset system syslog selector id rate-limit interval


nv set system syslog selector <selector-id> rate-limit interval <value>
nv unset system syslog selector <selector-id> rate-limit interval

Sets the rate-limit interval in seconds: the period in which the burst limit applies.
The unset form of the command removes the setting.

Syntax Description

selector-id

The selector name.


value

The interval in seconds: 1–65535.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv set system syslog selector Selector-1 rate-limit interval 1

admin@nvos:~$ nv unset system syslog selector Selector-2 rate-limit interval

REST API

PATCH https://<ip>/nvue_v1/system/syslog/selector/<selector-id>/rate-limit/interval

Related Commands


Notes



Last updated: