S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
-SM-102
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
logging event
logging event
To log interface events, use the
logging event
command. To disable logging of interface events, use the
no
form of this command.
logging event
{
link-status
|
trunk-status
} {
default
|
enable
}
no logging event
{
link-status
|
trunk-status
} {
default
|
enable
}
Syntax Description
Command Default
None
Command Modes
Global configuration mode
Switch profile configuration mode
Command History
Examples
This example shows how to log interface events:
switch#
configure terminal
switch(config)#
logging event link-status default
switch(config)#
This example shows how to log TRUNK interface events in a switch profile:
switch#
configure sync
Enter configuration commands, one per line. End with CNTL/Z.
switch(config-sync)#
switch-profile s5010
Switch-Profile started, Profile ID is 1
switch(config-sync-sp)#
logging event trunk-status default
switch(config-sync-sp)#
Related Commands
link-status
Specifies to log all UP/DOWN and CHANGE messages.
trunk-status
Specifies to log all TRUNK status messages.
default
Specifies to the default logging configuration is used by interfaces not
explicitly configured.
enable
Enables the logging to override the port level configuration.
Release
Modification
5.0(3)U1(1)
This command was introduced.
5.0(3)U2(1)
Support to log interface events was added in switch profiles.
Command
Description
show logging
Displays the logging status.
show switch-profile
Displays information about the switch profile and the configuration revision.
switch-profile
Creates or configures a switch profile.