251 
 
Username:seclog 
Password: 
<Sysname> 
# Display the summary of the security log file. 
<Sysname> display security-logfile summary 
  Security-log is enabled. 
  Security-log file size quota: 1MB 
  Security-log file directory: flash:/seclog 
  Alarm-threshold: 80% 
  Current usage: 0% 
  Writing frequency: 1 hour 0 min 0 sec 
The command output indicates that the directory for saving the security log file is flash:/seclog. 
# Change the directory where the security log file is saved to Flash:/securitylog. 
<Sysname> mkdir securitylog 
. 
%Created dir flash:/securitylog. 
<Sysname> info-center security-logfile switch-directory flash:/securitylog/ 
# Display contents of the security log file buffer. 
<Sysname> display security-logfile buffer 
%@175 Nov  2 17:02:53:766 2009 Sysname SHELL/4/LOGOUT: 
 Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.2: logout from Console 
%@176 Nov  2 17:02:53:766 2009 Sysname SHELL/5/SHELL_LOGOUT:Console logged out from 
aux0. 
Contents of other logs are omitted here. 
The command output indicates that the new content in the buffer has not been saved into the security 
log file yet. 
# Save the contents of the security log file buffer into the security log file manually. 
<Sysname> security-logfile save 
Info: Save all contents in the security log buffer into file 
flash:/securitylog/seclog.log successfully. 
# Display the contents of the security log file. 
<Sysname> more securitylog/seclog.log 
%@157 Nov  2 16:12:01:750 2009 Sysname SHELL/4/LOGIN: 
 Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1: login from Console 
%@158 Nov  2 16:12:01:750 2009 Sysname SHELL/5/SHELL_LOGIN:Console logged in from 
aux0. 
Contents of other logs are omitted here. 
# Back up the security log file onto FTP server 192.168.1.2. 
<Sysname> ftp 192.168.1.2 
Trying 192.168.1.2 ... 
Press CTRL+K to abort 
Connected to 192.168.1.2. 
220- 
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user