logging (user and privi exec modes)

Modifies message logging settings
Note

Note

This command and its syntax is common to both the User Executable and Privilege Executable configuration modes.

Supported in the following platforms:

Syntax

logging monitor {<0-7>|alerts|critical|debugging|emergencies|errors|informational|
notifications|warnings}

Parameters

logging monitor {<0-7>|alerts|critical|debugging|emergencies|errors|informational|
notifications|warnings}
monitor Sets the terminal lines logging levels. The logging severity levels can be set from 0 - 7. The system configures default settings, if no logging severity level is specified.
  • <0-7> – Optional. Specify the logging severity level from 0-7. The various levels and their implications are as follows:
  • alerts – Optional. Immediate action needed (severity=1)
  • critical – Optional. Critical conditions (severity=2)
  • debugging – Optional. Debugging messages (severity=7)
  • emergencies – Optional. System is unusable (severity=0)
  • errors – Optional. Error conditions (severity=3)
  • informational – Optional. Informational messages (severity=6)
  • notifications – Optional. Normal but significant conditions (severity=5)
  • warnings – Optional. Warning conditions (severity=4)
Note: Before configuring the message logging level, ensure logging module is enabled. To enable message logging, in the device‘s configuration mode, execute the logging > on command. Message logging can also be enabled on a profile. All devices using the profile will have message logging enabled.

Examples

nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#logging on
nx9500-6C8809>logging monitor debugging
nx9500-6C8809>show logging

Logging module: enabled
    Aggregation time: disabled
    Console logging: level debugging
    Monitor logging: level debugging
    Buffered logging: level warnings
    Syslog logging: level warnings
        Facility: local7

Log Buffer (2208029 bytes):


Sep 18 06:48:40 2019: nx9500-6C8809 : %NSM-4-IFUP: Interface ge1 is up
Sep 18 06:48:39 2019: nx9500-6C8809 : %NSM-4-IFUP: Interface ge1 is up
Sep 18 06:48:37 2019: nx9500-6C8809 : %NSM-4-IFDOWN: Interface ge1 is down
Sep 18 06:48:36 2019: nx9500-6C8809 : %NSM-4-IFUP: Interface ge1 is up
Sep 17 03:41:56 2019: nx9500-6C8809 : %NSM-4-IFUP: Interface ge3 is up
Sep 17 03:41:55 2019: nx9500-6C8809 : %NSM-4-IFUP: Interface ge3 is up
Sep 17 03:41:53 2019: nx9500-6C8809 : %NSM-4-IFDOWN: Interface ge3 is down
--More--
nx9500-6C8809>

Related Commands

no (user-exec-mode)

no (priv-exec-mode)

Resets terminal lines logging levels