Table 1 describes information that can be classified as logs, traps, or debugging information based on contents, users, and usage scenarios.
Type |
Description |
---|---|
Logs |
Logs are records of events and unexpected activities of managed objects. Logging is an important method to maintain operations and identify faults. Logs provide information for fault analysis and help an administrator trace user activities, manage system security, and maintain a system. Some logs are used by technical support personnel for troubleshooting only. Because such logs have no practical significance to users, users are not notified when the logs are generated. System logs are classified as user logs, diagnostic logs, O&M logs, or security logs.
NOTE:
The system-defined user name _SYSTEM_ is displayed as the user name in operation and security logs in the following scenarios:
If operation logs record system behaviors, such as internal configuration and configuration file restoration, "**" is displayed for the IP and Terminal parameters. |
Traps |
Traps are sent to a workstation to report urgent and important events, such as the restart of a managed device. In general, the system also generates a log with the same content after generating a trap, except that the trap contains an additional OID. |
Debugging information |
Debugging information shows the device's running status, such as the sending or receiving of data packets. A device generates debugging information only after debugging is enabled. |
Information can be saved as files on a device. These files are called information files. Table 2 describes the naming modes for information files.
Naming Mode |
Description |
---|---|
log.log |
The current information files of the system are saved in log format. |
diag.log |
Logs recording exceptions that occur when the system is started or running are saved in diag.log format. |
pads.pads |
Logs generated during the running of each service after a device starts are saved in .pads format. |
security.log |
A security log is saved in the security log space in the .log format, and is also recorded in the log.log file. |
log_SlotID_time.log.zip |
If the size of a current information file reaches the upper threshold, the system automatically compresses the file into a historical file and changes the file name to log_SlotID_time.log.zip. In the file name, SlotID indicates the slot ID and time indicates the compression and saving time. |
diag_SlotID_time.log.zip |
If the size of a current diagnostic log reaches the upper threshold, the system automatically converts the file to a compressed file and names the compressed file diag_SlotID_time.log.zip. In the file name, SlotID indicates the slot ID and time indicates the compression and saving time. |
pads_SlotID_time.pads.zip |
If the size of a current O&M log file reaches the upper threshold, the system automatically converts the file to a compressed file and names the compressed file pads_SlotID_time.pads.zip. In the file name, SlotID indicates the slot ID and time indicates the compression and saving time. |