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

Outputting logs to a log host, Outputting logs to the log buffer

Page 63 highlights

Step Command Remarks 3. Configure an output rule for the monitor terminal. info-center source { module-name | default } { console | monitor | logbuffer | logfile | loghost } { deny | level severity } For information about default output rules, see "Default log output rules." 4. (Optional.) Configure the timestamp format. info-center timestamp { boot | date By default, the timestamp format is | none } date. 5. Return to user view. quit N/A 6. Enable log output to the monitor terminal. terminal monitor The default setting is enabled. 7. (Optional.) Enable the display of debug information on the terminal debugging current terminal. By default, the display of debug information is disabled on current monitor terminal. 8. (Optional.) Set the lowest level of logs that can be output to terminal logging level severity the monitor terminal. The default setting is 6 (Informational). Outputting logs to a log host Step 1. Enter system view. Command system-view Remarks N/A 2. Enable the information center. info-center enable By default, the information center is enabled. 3. Configure an output rule for the log host. 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." 4. (Optional.) Specify the source IP address for output logs. info-center loghost source interface-type interface-number By default, the source IP address of output log information is the primary IP address of the matching route' egress interface. 5. (Optional.) Configure the timestamp format. info-center timestamp loghost { date By default, the timestamp format is | iso | no-year-date | none } date. 6. Specify a log host and configure related parameters. info-center loghost [ vpn-instance vpn-instance-name ] { ipv4-address | ipv6 ipv6-address } [ port port-number ] [ facility local-number ] By default, no log host or related parameters are specified. The value of the port-number argument must be the same as the value configured on the log host. Otherwise, the log host cannot receive logs. Outputting logs to the log buffer Step 1. Enter system view. Command system-view 57 Remarks N/A

  • 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

57
Step
Command
Remarks
3.
Configure an output rule for
the monitor terminal.
info-center source
{
module-name
|
default
}
{
console
|
monitor
|
logbuffer
|
logfile
|
loghost
}
{
deny
|
level
severity
}
For information about default
output rules, see "
Default log
output rules
."
4.
(Optional.) Configure the
timestamp format.
info-center timestamp
{
boot
|
date
|
none
}
By default, the timestamp format is
date
.
5.
Return to user view.
quit
N/A
6.
Enable log output to the
monitor terminal.
terminal monitor
The default setting is enabled.
7.
(Optional.) Enable the display
of debug information on the
current terminal.
terminal debugging
By default, the display of debug
information is disabled on current
monitor terminal.
8.
(Optional.) Set the lowest level
of logs that can be output to
the monitor terminal.
terminal logging level
severity
The default setting is 6
(Informational).
Outputting logs to a log host
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.
Configure an output rule
for the log host.
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
."
4.
(Optional.) Specify the
source IP address for
output logs.
info-center loghost source
interface-type interface-number
By default, the source IP address of
output log information is the primary IP
address of the matching route' egress
interface.
5.
(Optional.) Configure
the timestamp format.
info-center timestamp
loghost
{
date
|
iso
|
no-year-date
|
none
}
By default, the timestamp format is
date
.
6.
Specify a log host and
configure related
parameters.
info-center loghost
[
vpn-instance
vpn-instance-name
] {
ipv4-address
|
ipv6
ipv6-address
} [
port
port-number
] [
facility
local-number
]
By default, no log host or related
parameters are specified.
The value of the
port-number
argument
must be the same as the value
configured on the log host. Otherwise,
the log host cannot receive logs.
Outputting logs to the log buffer
Step
Command
Remarks
1.
Enter system view.
system-view
N/A