The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco Nexus 1000V commands that begin with the letter L.
To configure the range of allowed Encapsulated Remote Switch Port Analyzer (ERSPAN) flow IDs, use the limit-resource erspan-flow-id minimum command. To remove the configuration, use the no form of this command.
limit-resource erspan-flow-id minimum min-val maximum max-val
no limit-resource erspan-flow-id
None
Global configuration (config)
network-admin
This example shows how to restrict the range of allowed ERSPAN flow IDs to the range, 1 to 80:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# limit-resource erspan-flow-id minimum 1 maximum 80
This example shows how to restore the default range of ERSPAN flow IDs:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
no limit-resource erspan-flow-id
To enter console configuration mode, use the line console command. To exit console configuration mode, use the no form of this command.
line console
no line console
This command has no arguments or keywords.
None
Global configuration (config)
network-admin
This example shows how to enter console configuration mode:
n1000v#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
line console
n1000v(
config-console)#
show line console |
Displays console line configurations. |
To enter line configuration mode, use the line vty command. To exit line configuration mode, use the no form of this command.
line vty
no line vty
This command has no arguments or keywords.
None
Global configuration (config)
network-admin
This example shows how to enter line configuration mode:
n1000v#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
line vty
n1000v(
config-line)#
To enable logging messages to the console session, use the logging console command.
To disable logging messages to the console session, use the no form of this command.
logging console [severity-level]
no logging console
None
Global configuration (config)
network-admin
This example shows how to enable logging messages with a severity level of 4 (warning) or higher to the console session:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging console 4
n1000v(config)#
|
|
---|---|
show logging console |
Displays the console logging configuration. |
To log interface events, use the logging event command.
logging event {link-status | trunk-status} {enable | default}
no logging event {link-status | trunk-status} {enable | default}
None
Global configuration (config)
network-admin
This example shows how to log interface events:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging event link-status default
n1000v(config)#
|
|
---|---|
show logging |
Displays the logging configuration and contents of a logfile. |
To enable access control list (ACL) logging on all the Virtual Ethernet Modules (VEMs), use the logging ip access-list cache command. To disable ACL logging, use the no form of this command.
logging ip access-list cache {{interval seconds} | {max-deny-flows deny} | {max-permit-flows permit} | {module vem}}
no logging ip access-list cache {{interval seconds} | {max-deny-flows deny} | {max-permit-flows permit} | {module vem}}
By default, ACL logging is enabled on all VEMs.
Global configuration (config)
network-admin
This example shows how to enable ACL logging on VEM 5:
n1000v#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
logging ip access-list cache module 5
This example shows how to disable ACL logging on VEM 5:
n1000v#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
no logging ip access-list cache module 5
To enable the logging of messages from a named facility, such as license of accounting, authorization, and authentication (AAA), of a specified severity level or higher level, use the logging level command. To disable the logging of messages, use the no form of this command.
logging level facility severity-level
no logging level facility severity-level
None
Global configuration (config)
network-admin
To apply the same severity level to all facilities, use the following command:
•logging level all level_number
To list the available facilities for which messages can be logged, use the following command:
•logging level ?
This example shows how to enable logging messages from the AAA facility with a severity level of 0 through 2:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging level aaa 2
n1000v(config)#
This example shows how to enable logging messages from the license facility with a severity level of
0 through 4 and then display the license logging configuration:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging level license 4
n1000v(config)# show logging level license
Facility Default Severity Current Session Severity
-------- ---------------- ------------------------
licmgr 6 4
0(emergencies) 1(alerts) 2(critical)
3(errors) 4(warnings) 5(notifications)
6(information) 7(debugging)
n1000v(config)#
|
|
---|---|
logging level ? |
Lists the available facilities for which messages can be logged. |
show logging level |
Displays the facility logging level configuration. |
To configure the log file used to store system messages, use the logging logfile command.
To remove a configuration, use the no form of this command.
logging logfile logfile-name severity-level [size bytes]
no logging logfile [logfile-name severity-level [size bytes]]]
None
Global configuration (config)
network-admin
This example shows how to configure a log file named LogFile to store system messages and set its severity level to 4:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging logfile LogFile 4
n1000v(config)#
|
|
---|---|
show logging logfile |
Displays the contents of the log file. |
To start logging of module messages to the log file, use the logging module command. To stop module log messages, use the no form of this command.
logging module [severity-level]
no logging module [severity-level]
Disabled
If you start logging messages, and do not specify a severity, then the default is used, Notification (5).
Global configuration (config)
network-admin
This example shows how to start logging of module messages to the log file at the default severity level (severity 4):
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging module
n1000v(config)#
This example shows how to stop the logging of module messages to the log file:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(
config)#
no logging module
n1000v#
|
|
---|---|
show logging module |
Displays the current configuration for logging module messages to the log file. |
to enable the logging of messages to the monitor (terminal line), use the logging monitor command.
To disable monitor logging, use the no form of this command.
logging monitor [severity-level]
no logging monitor
None
Global configuration (config)
Network-admin
This configuration applies to telnet and Secure Shell (SSH) sessions.
This example shows how to enable monitor log messages:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging monitor
n1000v(config)#
|
|
---|---|
show logging monitor |
Displays the monitor logging configuration. |
To designate and configure a remote server for logging system messages, use the logging server command. Use the no form of this command to remove or change the configuration,
logging server host0 [i1 [use-vrf s0 [facility {auth | authpriv | cron | daemon | ftp | kernel | local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7 | lpr | mail | news | syslog | user | uucp}]]]
no logging server host0 [i1 [use-vrf s0 [facility {auth | authpriv | cron | daemon | ftp | kernel | local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7 | lpr | mail | news | syslog | user | uucp}]]]
None
Global configuration (config)
network-admin
This example shows how to configure a remote syslog server at a specified IPv4 address by using the default outgoing facility:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging server 172.28.254.253
n1000v(config)#
This example shows how to configure a remote syslog server at a specified host name with the severity level 5 or higher:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging server syslogA 5
n1000v(config)#
|
|
---|---|
show logging server |
Displays the current server configuration for logging system messages. |
To set the unit of measure for the system messages time stamp, use the logging timestamp command. To restore the default unit of measure, use the no form of this command.
logging timestamp {microseconds | milliseconds | seconds}
no logging timestamp {microseconds | milliseconds | seconds}
microseconds |
Specifies the time stamp in micro-seconds. |
milliseconds |
Specifies the time stamp in milli-seconds. |
seconds |
Specifies the time stamp in seconds (Default). |
Seconds
Global configuration (config)
network-admin
This example shows how to set microseconds as the unit of measure for the system messages time stamp:
n1000v# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
n1000v(config)# logging timestamp microseconds
n1000v(config)#
|
|
---|---|
show logging timestamp |
Displays the logging time stamp configuration. |