353
Examples
# Manually save the security logs in the security log file buffer to the security log file.
<Sysname> security-logfile save
The contents in the security log file buffer have been saved to the file
flash:/seclog/seclog.log.
Related commands
info-center security-logfile directory
authorization-attribute (Security Command Reference)
snmp-agent trap enable syslog
Use snmp-agent trap enable syslog to enable SNMP notifications for log messages.
Use undo snmp-agent trap enable syslog to disable SNMP notifications for log messages.
Syntax
snmp-agent trap enable syslog
undo snmp-agent trap enable syslog
Default
The device does not send SNMP notifications for log messages.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command enables the device to send an SNMP notification for each log message it outputs.
The device encapsulates logs in SNMP notifications and then sends them to the SNMP module and
the log trap buffer.
For the SNMP module to send the received SNMP notifications correctly, you must also configure
SNMP on the device. For more information about SNMP configuration, see the network
management and monitoring configuration guide for the device.
To view the traps in the log trap buffer, access the MIB corresponding to the log trap buffer. The log
trap buffer size can be set by using the info-center syslog trap buffersize command.
Examples
# Enable the device to send SNMP notifications for log messages.
<Sysname> system-view
[Sysname] snmp-agent trap enable syslog
Related commands
info-center syslog trap buffersize
terminal debugging
Use terminal debugging to enable display of debug information on the current terminal.
Use undo terminal debugging to disable display of debug information on the current terminal.