Accessing the switch

SNMPv2 trap host configuration

The SNMPv2 trap host configuration is similar to the SNMPv1 trap host configuration. Wherever you specify the model, specify snmpv2 instead of snmpv1.

c/sys/ssnmp/snmpv3/usm 10

(Configure user named “v2trap”)

name "v2trap"

 

 

/c/sys/ssnmp/snmpv3/access 10

(Define access group to view SNMPv2 traps)

name "v2trap"

 

model

snmpv2

 

nview

"iso"

 

/c/sys/ssnmp/snmpv3/group 10

(Assign user to the access group)

model

snmpv2

 

uname

v2trap

 

gname

v2trap

 

/c/sys/ssnmp/snmpv3/notify 10

(Assign user to the notify table)

name v2trap

 

tag v2trap

 

/c/sys/ssnmp/snmpv3/taddr 10

(Define an IP address to send traps)

name v2trap

 

addr 47.81.25.66

 

taglist v2trap

 

pname

v2param

 

/c/sys/ssnmp/snmpv3/tparam 10

(Specify SNMPv2 traps to send)

name v2param

 

mpmodel snmpv2c

 

uname

v2trap

 

model

snmpv2

 

/c/sys/ssnmp/snmpv3/comm 10

(Define the community string)

index

v2trap

 

name public

 

uname

v2trap

 

SNMPv3 trap host configuration

To configure a user for SNMPv3 traps, you can choose to send the traps with both privacy and authentication, with authentication only, or without privacy or authentication. Use the following commands to configure the access table:

/c/sys/ssnmp/snmpv3/access <x>/level

/c/sys/ssnmp/snmpv3/tparam <x>

Configure the user in the user table to match the configuration of the access table.

It is not necessary to configure the community table for SNMPv3 traps because the community string is not used by SNMPv3.

19

Page 19
Image 19
HP 445946-001 manual SNMPv2 trap host configuration, SNMPv3 trap host configuration