HP 6125G HP 6125G & 6125G/XG Blade Switches Network Management and Mon - Page 48

info-center monitor channel

Page 48 highlights

Examples When no source IP address is specified for log information, log in to the FTP server using the username ftp. The following log information is displayed on the log host: Jan 31 05:37:52 2011 Sysname %%10FTPD/5/FTPD_LOGIN(l): User ftp (192.168.1.23) has logged in successfully. # Specify the IP address of the VLAN interface as the source IP address of log information. system-view [Sysname] vlan 100 [Sysname-vlan100] interface vlan-interface 100 [Sysname-Vlan-interface100] ip address 2.2.2.2 24 [Sysname-Vlan-interface100] quit [Sysname] info-center loghost source Vlan-interface 100 After the above configuration, log in to the FTP server by using the username ftp. The following log information is displayed on the log host (the -DevIP=2.2.2.2 field identifies the source IP address): May 31 05:38:14 2011 Sysname %%10FTPD/5/FTPD_LOGIN(l): -DevIP=2.2.2.2; User ftp (192.168.1.23) has logged in successfully. info-center monitor channel Syntax info-center monitor channel { channel-number | channel-name } View undo info-center monitor channel System view Default level 2: System level Parameters channel-number: Specifies a channel by its number, in the range of 0 to 9. channel-name: Specifies a channel by its name, a default name or a self-defined name. For how to configure a channel name, see info-center channel name. Description Use info-center monitor channel to configure the monitor channel. The system uses this channel to output information to the monitor. Use undo info-center monitor channel to restore the default monitor output channel. By default, the system outputs information to the monitor through channel 1 (monitor). The info-center monitor channel command takes effect only after the information center is enabled with the info-center enable command. Examples # Output system information to the monitor through channel 0. system-view [Sysname] info-center monitor channel 0 42

  • 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
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

42
Examples
When no source IP address is specified for log information, log in to the FTP server using the username
ftp. The following log information is displayed on the log host:
<189>Jan 31 05:37:52 2011 Sysname %%10FTPD/5/FTPD_LOGIN(l): User ftp (192.168.1.23) has
logged in successfully.
# Specify the IP address of the VLAN interface as the source IP address of log information.
<Sysname> system-view
[Sysname] vlan 100
[Sysname-vlan100] interface vlan-interface 100
[Sysname-Vlan-interface100] ip address 2.2.2.2 24
[Sysname-Vlan-interface100] quit
[Sysname] info-center loghost source Vlan-interface 100
After the above configuration, log in to the FTP server by using the username ftp. The following log
information is displayed on the log host (the
-DevIP=2.2.2.2
field identifies the source IP address):
<189>May 31 05:38:14 2011 Sysname %%10FTPD/5/FTPD_LOGIN(l): -DevIP=2.2.2.2; User ftp
(192.168.1.23) has logged in successfully.
info-center monitor channel
Syntax
info-center monitor channel
{
channel
-
number
|
channel
-
name
}
undo info-center monitor channel
View
System view
Default level
2: System level
Parameters
channel
-
number
: Specifies a channel by its number, in the range of 0 to 9.
channel
-
name
: Specifies a channel by its name, a default name or a self-defined name. For how to
configure a channel name, see
info-center channel name
.
Description
Use
info-center monitor channel
to configure the monitor channel. The system uses this channel to output
information to the monitor.
Use
undo info-center monitor channel
to restore the default monitor output channel.
By default, the system outputs information to the monitor through channel 1 (monitor).
The
info-center monitor channel
command takes effect only after the information center is enabled with
the
info-center enable
command.
Examples
# Output system information to the monitor through channel 0.
<Sysname> system-view
[Sysname] info-center monitor channel 0