beautypg.com

H3C Technologies H3C SecBlade LB Cards User Manual

Page 42

background image

33

Password:

# Display the summary of the security log file.

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.

mkdir securitylog

.

%Created dir flash0:/securitylog.

info-center security-logfile switch-directory flash0:/securitylog/

# Display the contents of the security log file buffer.

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: 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.

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.

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: 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.



This manual is related to the following products: