HP 6125XLG R2306-HP 6125XLG Blade Switch Network Management and Monitoring Con - Page 64

Saving logs to the log file

Page 64 highlights

Step Command Remarks 2. Enable the information center. info-center enable By default, the information center is enabled. 3. Enable log output to the log buffer. info-center logbuffer By default, log output to the log buffer is enabled. 4. (Optional.) Set the maximum number of logs that can be stored in the log buffer. info-center logbuffer [ size buffersize ] By default, the log buffer can store up to 512 logs. 5. Configure an output rule for the log buffer. info-center source { module-name | default } { console | monitor | logbuffer | logfile | loghost } { deny | level severity } For more information about default output rules, see "Default log output rules." 6. (Optional.) Configure the timestamp format. info-center timestamp { boot | date By default, the timestamp format is | none } date. Saving logs to the log file The log file feature saves logs from the log file buffer to the log file every 24 hours by default. You can adjust the saving interval or manually save logs to the log file. After logs are saved into the log file, the system clears the log file buffer. The log file has a maximum capacity. When the capacity is reached, the system will replace earliest logs with new logs. To save logs to the log file: Step 1. Enter system view. Command system-view 2. Enable the information center. info-center enable 3. Enable the log file feature. info-center logfile enable Remarks N/A By default, the information center is enabled. By default, the log file feature is enabled. 58

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

58
Step
Command
Remarks
2.
Enable the information center.
info-center enable
By default, the information center is
enabled.
3.
Enable log output to the log
buffer.
info-center logbuffer
By default, log output to the log
buffer is enabled.
4.
(Optional.) Set the maximum
number of logs that can be
stored in the log buffer.
info-center
logbuffer
[
size
buffersize
]
By default, the log buffer can store
up to 512 logs.
5.
Configure an output rule for
the log buffer.
info-center source
{
module-name
|
default
}
{
console
|
monitor
|
logbuffer
|
logfile
|
loghost
}
{
deny
|
level
severity
}
For more information about default
output rules, see "
Default log
output rules
."
6.
(Optional.) Configure the
timestamp format.
info-center timestamp
{
boot
|
date
|
none
}
By default, the timestamp format is
date
.
Saving logs to the log file
The log file feature saves logs from the log file buffer to the log file every 24 hours by default. You can
adjust the saving interval or manually save logs to the log file. After logs are saved into the log file, the
system clears the log file buffer.
The log file has a maximum capacity. When the capacity is reached, the system will replace earliest logs
with new logs.
To save logs to the log file:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the information center.
info-center enable
By default, the information center is
enabled.
3.
Enable the log file feature.
info-center logfile enable
By default, the log file feature is
enabled.