366
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
mdc-admin
Examples
# Disable port GigabitEthernet 1/0/1 from generating link up or link down logs.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/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
mdc-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.
<Sysname> system-view
[Sysname] info-center diagnostic-logfile enable
info-center diagnostic-logfile frequency
Use
info-center diagnostic-logfile frequency
to configure the interval at which the system saves
diagnostic logs from the diagnostic log file buffer to the diagnostic log file.