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

Field, Description, Verify the configuration

Page 72 highlights

# Enable displaying log messages on the configuration terminal. (This function is enabled by default. Skip this step if you are using the default.) terminal monitor terminal logging # Enable the information center to output system information with severity level equal to or higher than informational to the console port. system-view [Agent] info-center source snmp channel console log level informational # Enable logging GET and SET operations. [Agent] snmp-agent log all # Verify the configuration: Use the NMS to get a MIB variable from the agent. The following is a sample log message displayed on the configuration terminal: %Jan 1 02:49:40:566 2011 Sysname SNMP/6/GET: seqNO = srcIP = op = node = value= Use the NMS to set a MIB variable on the agent. The following is a sample log message displayed on the configuration terminal: %Jan 1 02:59:42:576 2011 Sysname SNMP/6/SET: seqNO = srcIP = op = errorIndex = errorStatus = node = value = Table 6 SNMP log message field description Field Jan 1 02:49:40:566 2011 seqNO srcIP op node erroIndex errorStatus value Description Time when the SNMP log was generated. Serial number automatically assigned to the SNMP log, starting from 0. IP address of the NMS. SNMP operation type (GET or SET). MIB node name and OID of the node instance. Error index, with 0 meaning no error. Error status, with noError meaning no error. Value set by the SET operation. This field is null for a GET operation. If the value is a character string that has invisible characters or characters beyond the ASCII range 0 to 127, the string is displayed in hexadecimal format, for example, value = [hex]. The information center can output system event messages to several destinations, including the terminal and the log buffer. In this example, SNMP log messages are output to the terminal. To configure other message destinations, see "Configuring the information center." 65

  • 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

65
# Enable displaying log messages on the configuration terminal. (This function is enabled by default.
Skip this step if you are using the default.)
<Agent> terminal monitor
<Agent> terminal logging
# Enable the information center to output system information with severity level equal to or higher than
informational to the console port.
<Agent> system-view
[Agent] info-center source snmp channel console log level informational
# Enable logging GET and SET operations.
[Agent] snmp-agent log all
# Verify the configuration:
Use the NMS to get a MIB variable from the agent. The following is a sample log message displayed on
the configuration terminal:
%Jan 1 02:49:40:566 2011 Sysname SNMP/6/GET:
seqNO = <10> srcIP = <1.1.1.2> op = <get> node = <sysName(1.3.6.1.2.1.1.5.0)> value=<>
Use the NMS to set a MIB variable on the agent. The following is a sample log message displayed on
the configuration terminal:
%Jan 1 02:59:42:576 2011 Sysname SNMP/6/SET:
seqNO = <11> srcIP = <1.1.1.2> op = <set> errorIndex = <0> errorStatus =<noError> node
= <sysName(1.3.6.1.2.1.1.5.0)> value = <Agent>
Table 6
SNMP log message field description
Field
Description
Jan 1 02:49:40:566 2011
Time when the SNMP log was generated.
seqNO
Serial number automatically assigned to the SNMP log,
starting from 0.
srcIP
IP address of the NMS.
op
SNMP operation type (GET or SET).
node
MIB node name and OID of the node instance.
erroIndex
Error index, with 0 meaning no error.
errorStatus
Error status, with noError meaning no error.
value
Value set by the SET operation. This field is null for a GET
operation.
If the value is a character string that has invisible characters or
characters beyond the ASCII range 0 to 127, the string is
displayed in hexadecimal format, for example, value =
<81-43>[hex].
The information center can output system event messages to several destinations, including the terminal
and the log buffer. In this example, SNMP log messages are output to the terminal. To configure other
message destinations, see "Configuring the information center."