HP GbE2c HP GbE2c Ethernet Blade Switch for c-Class BladeSystem Application Gu - Page 15

Configuring SNMP trap hosts, SNMPv1 trap host - example configuration

Page 15 highlights

Configuring SNMP trap hosts SNMPv1 trap host 1. Configure a user with no authentication or password. /c/sys/ssnmp/snmpv3/usm 10 name "v1trap" (Configure user named "v1trap") 2. Configure an access group and group table entries for the user. Use the following command to specify which traps can be received by the user: /c/sys/ssnmp/snmpv3/access /nview /c/sys/ssnmp/snmpv3/access 10 name "v1trap" model snmpv1 nview "iso" /c/sys/ssnmp/snmpv3/group 10 model snmpv1 uname v1trap gname v1trap (Define access group to view SNMPv1 traps) (Assign user to the access group) In this example the user will receive the traps sent by the switch. 3. Configure an entry in the notify table. /c/sys/ssnmp/snmpv3/notify 10 name v1trap tag v1trap (Assign user to the notify table) 4. Specify the IP address and other trap parameters in the Target Address( targetAddr) and Target Parameters (targetParam) tables. Use the following command to specify the user name used with this targetParam table: c/sys/ssnmp/snmpv3/tparam /uname /c/sys/ssnmp/snmpv3/taddr 10 name v1trap addr 47.80.23.245 taglist v1trap pname v1param /c/sys/ssnmp/snmpv3/tparam 10 name v1param mpmodel snmpv1 uname v1trap model snmpv1 (Define an IP address to send traps) (Specify SNMPv1 traps to send) 5. Use the community table to define the community string used in the traps. /c/sys/ssnmp/snmpv3/comm 10 index v1trap name public uname v1trap (Define the community string) Accessing the switch 15

  • 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

Accessing the switch 15
Configuring SNMP trap hosts
SNMPv1 trap host
1.
Configure a user with no authentication or password.
/c/sys/ssnmp/snmpv3/usm 10
(
Configure user named “v1trap”
)
name "v1trap"
2.
Configure an access group and group table entries for the user. Use the following command to specify which
traps can be received by the user:
/c/sys/ssnmp/snmpv3/access <
x
>/nview
/c/sys/ssnmp/snmpv3/access 10
(
Define access group to view SNMPv1 traps
)
name "v1trap"
model snmpv1
nview "iso"
/c/sys/ssnmp/snmpv3/group 10
(
Assign user to the access group
)
model snmpv1
uname v1trap
gname v1trap
In this example the user will receive the traps sent by the switch.
3.
Configure an entry in the notify table.
/c/sys/ssnmp/snmpv3/notify 10
(
Assign user to the notify table
)
name v1trap
tag v1trap
4.
Specify the IP address and other trap parameters in the Target Address( targetAddr) and Target Parameters
(targetParam) tables. Use the following command to specify the user name used with this targetParam table:
c/sys/ssnmp/snmpv3/tparam <
x
>/uname
/c/sys/ssnmp/snmpv3/taddr 10
(
Define an IP address to send traps
)
name v1trap
addr 47.80.23.245
taglist v1trap
pname v1param
/c/sys/ssnmp/snmpv3/tparam 10
(
Specify SNMPv1 traps to send
)
name v1param
mpmodel snmpv1
uname v1trap
model snmpv1
5.
Use the community table to define the community string used in the traps.
/c/sys/ssnmp/snmpv3/comm 10
(
Define the community string
)
index v1trap
name public
uname v1trap