85
enable log updown
Use
enable log updown
to enable an interface to generate link up or link down logs when the
interface state changes.
Use
undo enable log updown
to disable an interface from generating link up or link down logs
when the interface state changes.
Syntax
enable log updown
undo enable log updown
Default
All interfaces are allowed to generate link up and link down logs.
Views
Interface view
Predefined user roles
network-admin
Examples
# Disable port FortyGigE 1/0/1 from generating link up or link down logs.
<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] undo enable log updown
info-center diagnostic-logfile enable
Use
info-center diagnostic-logfile enable
to enable saving diagnostic logs to the diagnostic log
file.
Use
undo info-center diagnostic-logfile enable
to disable saving diagnostic logs to the diagnostic
log file.
Syntax
info-center diagnostic-logfile enable
undo info-center diagnostic-logfile enable
Default
Saving diagnostic logs to the diagnostic log file is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command enables the system to save generated diagnostic logs to the diagnostic log file for
centralized management. This facilitates users in monitoring device activities and debugging
problems by viewing the diagnostic logs.
Examples
# Enable saving diagnostic logs to the diagnostic log file.