H3C Technologies H3C SecBlade LB Cards User Manual
Page 42

33
Password:
<Sysname>
# Display the summary of the security log file.
<LB> display security-logfile summary
Security-log is enabled.
Security-log file size quota: 1MB
Security-log file directory: flash0:/seclog
Alarm-threshold: 80%
Current usage: 0%
Writing frequency: 1 hour 0 min 0 sec
The output shows that the directory for saving the security log file is flash0:/seclog.
# Change the directory where the security log file is saved to Flash0:/securitylog.
<LB> mkdir securitylog
.
%Created dir flash0:/securitylog.
<LB> info-center security-logfile switch-directory flash0:/securitylog/
# Display the contents of the security log file buffer.
<LB> display security-logfile buffer
%@175 Nov 2 17:02:53:766 2009 LB SHELL/4/LOGOUT:
Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.2<hh3cLogOut>: logout from Console
%@176 Nov 2 17:02:53:766 2009 LB SHELL/5/SHELL_LOGOUT:Console logged out from con0.
The content of other logs is not shown.
The preceding information indicates that there is still new content in the buffer that has not been
saved into the security log file.
# Mannually save the contents of the security log file buffer into the security log file.
<LB> security-logfile save
Info: Save all the contents in the security log buffer into file
flash0:/securitylog/seclog.log successfully.
# Display the contents of the security log file.
<LB> more securitylog/seclog.log
%@157 Nov 2 16:12:01:750 2009 LB SHELL/4/LOGIN:
Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1<hh3cLogIn>: login from Console
%@158 Nov 2 16:12:01:750 2009 LB SHELL/5/SHELL_LOGIN:Console logged in from con0.
The content of other logs is not shown.