166Configuring SNMP

The inform or trap option specifies whether the WSS Software SNMP engine expects the target to acknowledge notifi- cations sent to the target by the WSS switch. Use inform if you want acknowledgements. Use trap if you do not want acknowledgements. The inform option is applicable to SNMP version v2c or usm only.

The username is a USM username, and is applicable only when the SNMP version is usm. If the user will send informs rather than traps, you also must specify the snmpSNMP-engine-idof the target. Specify ip if the target’s SNMP engine ID is based on its IP address. If the target’s SNMP engine ID is a hexadecimal value, use hex hex-stringto specify the value.

The community-stringis applicable only when the SNMP version is v1 or v2c.

The profile-nameis the notification profile. The default is default.

The security option specifies the security level, and is applicable only when the SNMP version is usm:

unsecured—Message exchanges are not authenticated, nor are they encrypted. This is the default.

authenticated—Message exchanges are authenticated, but are not encrypted.

encrypted—Message exchanges are authenticated and encrypted.

The retries and timeout options are applicable only when the SNMP version is v2c or usm and the notification type is inform. The retries option specifies the number of times the WSS Software SNMP engine will resend a notification that has not been acknowledged by the target. You can specify from 0 to 3 retries. The default is 0. The timeout option specifies the number of seconds WSS Software waits for acknowledgement of a notification. You can specify from 1 to 5 seconds. The default is 2.

Command Examples

The following command configures a notification target for acknowledged notifications:

23x0# set snmp notify target 1 10.10.40.9 usm inform user securesnmpmgr1 snmp-engine-id ip

success: change accepted.

This command configures target 1 at IP address 10.10.40.9. The target’s SNMP engine ID is based on its address. The WSS Software SNMP engine will send notifications based on the default profile, and will require the target to acknowl- edge receiving them.

The following command configures a notification target for unacknowledged notifications:

23x0# set snmp notify target 2 10.10.40.10 v1 trap

success: change accepted.

320657-A

Page 166
Image 166
Nortel Networks 2300 manual Command Examples, 23x0# set snmp notify target 2 10.10.40.10 v1 trap