Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch

Rev 2.10
Mellanox Technologies
184
Mellanox Technologies Confidential
4.5 Logging
4.5.1 Monitor
To print logging events to the terminal:
Set the modules or events you wish to print to
the terminal. For example, run:
switch (config) # logging monitor events notice
switch (config) # logging monitor sx-sdk warning
These commands print system events in severity “notice” and sx-sdk module notifications in severity
“warning” to the screen. For example, in case of interface-down event, the following gets printed to
the screen.
switch (config) #
Wed Jul 10 11:30:42 2013: Interface IB1/17 changed state to DOWN
Wed Jul 10 11:30:43 2013: Interface IB1/18 changed state to DOWN
switch (config) #
To see a list of the events, refer to Table 22, “Supported Event Notifications and MIB Mapping,” on
page 218.
4.5.2 Remote Logging
To configure remote syslog to send syslog messages to a remote syslog server:
Step 1. Enter Config mode. Run:
Step 2. Set remote syslog server. Run
Step 3. Set the minimum severity of the log level to
info
. Run:
Step 4. Override the log levels on a per-class basis. Run:
switch >
switch > enable
switch # configure terminal
switch (config) # logging <IP address>
switch (config) # logging <IP address> trap info
switch (config) # logging <IP address> trap override class <class name>