Managing security logs files – H3C Technologies H3C SecBlade NetStream Cards User Manual
Page 287

272
To do…
Use the command…
Remarks
Enable the log file feature
info-center logfile enable
Optional
Enabled by default
Configure the frequency with
which the log file is saved
info-center logfile
frequency freq-sec
Optional
By default, the frequency with which the log
file is saved is 864000 seconds.
Configure the maximum storage
space reserved for a log file
info-center logfile
size-quota size
Optional
By default, the maximum storage space
reserved for a log file is 1 MB.
Configure the directory to save the
log file
info-center logfile
switch-directory dir-name
Optional
By default, it is the log file directory under the
root directory of the memory device, which
varies with devices.
Manually save the log buffer
content to the log file
logfile save
Optional
Available in any view
By default, the system saves the log file with
the frequency defined by the info-center
logfile frequency command.
NOTE:
•
To ensure that the device works normally, use the info-center logfile size-quota command to set a log
file to be no smaller than 1 MB and no larger than 10 MB.
•
The info-center logfile switch-directory command is always used when you back up or move files. The
configuration will be invalid after system reboot or the active standby switchover.
Managing security logs files
After passing the AAA local authentication, the security log administrator can perform the following
operations:
Table 22 Manage the security log file
To do…
Use the command…
Remarks
Perform
these
operations
to the
security
log file
Display the contents of the specified file
more file-url
Optional
Available in user
view
For more
information
about these
commands, see
the System
Management
and
Maintenance
Command
Reference.
Display information about all files and
folders
dir [ /all ] [ file-url ]
Create a folder under a specified
directory on the storage medium
mkdir directory
Change the current working directory
cd { directory | .. | / }
Display the current path
pwd
Copy a file
copy fileurl-source fileurl-dest
Rename a file or a folder
rename fileurl-source fileurl-dest
Move a file
move fileurl-source fileurl-dest