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

Configuring SNMP logging, Enabling SNMP traps

Page 65 highlights

Step 3. Switch the format of an NM-specific ifindex from 32-bit to 16-bit. Command undo snmp-agent ifmib long-ifindex enable Remarks Optional. By default, an NM-specific ifindex is in 16-bit format. Configuring SNMP logging IMPORTANT: Disable SNMP logging in normal cases to prevent a large amount of SNMP logs from decreasing device performance. The SNMP logging function logs Get requests, Set requests, and Set responses, but does not log Get responses. • Get operation-The agent logs the IP address of the NMS, name of the accessed node, and node OID. • Set operation-The agent logs the NMS' IP address, name of accessed node, node OID, variable value, and error code and index for the Set operation. The SNMP module sends these logs to the information center as informational messages. You can configure the information center to output these messages to certain destinations, for example, the console and the log buffer. The total output size for the node field (MIB node name) and the value field (value of the MIB node) in each log entry is 1024 bytes. If this limit is exceeded, the information center truncates the data in the fields. For more information about the information center, see "Configuring the information center." To configure SNMP logging: Step 1. Enter system view. 2. Enable SNMP logging. Command system-view snmp-agent log { all | get-operation | set-operation } Remarks N/A By default, SNMP logging is disabled. Configuring SNMP traps The SNMP agent sends traps to inform the NMS of important events, such as a reboot. Traps fall into generic traps and vendor-specific traps. Generic traps include authentication, coldstart, linkdown, linkup and warmstart. All other traps are vendor-defined. SNMP traps generated by a module are sent to the information center. You can configure the information center to enable or disable outputting the traps from a module by severity and set output destinations. For more information about the information center, see "Configuring information center." Enabling SNMP traps Enable SNMP traps only if necessary. SNMP traps are memory-intensive and may affect device performance. 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
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157

58
Step
Command
Remarks
3.
Switch the format of an
NM-specific ifindex from
32-bit to 16-bit.
undo snmp-agent ifmib
long-ifindex enable
Optional.
By default, an NM-specific ifindex
is in 16-bit format.
Configuring SNMP logging
IMPORTANT:
Disable SNMP logging in normal cases to prevent a large amount of SNMP logs from decreasing device
performance.
The SNMP logging function logs Get requests, Set requests, and Set responses, but does not log Get
responses.
Get operation
—The agent logs the IP address of the NMS, name of the accessed node, and node
OID.
Set operation
—The agent logs the NMS' IP address, name of accessed node, node OID, variable
value, and error code and index for the Set operation.
The SNMP module sends these logs to the information center as informational messages. You can
configure the information center to output these messages to certain destinations, for example, the
console and the log buffer. The total output size for the node field (MIB node name) and the value field
(value of the MIB node) in each log entry is 1024 bytes. If this limit is exceeded, the information center
truncates the data in the fields. For more information about the information center, see "Configuring the
information center."
To configure SNMP logging:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable SNMP logging.
snmp-agent log
{
all
|
get-operation
|
set-operation
}
By default, SNMP logging is
disabled.
Configuring SNMP traps
The SNMP agent sends traps to inform the NMS of important events, such as a reboot.
Traps fall into generic traps and vendor-specific traps. Generic traps include
authentication
,
coldstart
,
linkdown
,
linkup
and
warmstart
. All other traps are vendor-defined.
SNMP traps generated by a module are sent to the information center. You can configure the information
center to enable or disable outputting the traps from a module by severity and set output destinations. For
more information about the information center, see "Configuring information center."
Enabling SNMP traps
Enable SNMP traps only if necessary. SNMP traps are memory-intensive and may affect device
performance.