Use the following configuration statements to configure notification targets:
- snmp notify target target-name {
- address address;
- port port;
- community community;
- type (trapv1|trapv2|inform);
- }
To configure notification targets:
- [edit]
- user@host# edit snmp notify target target-name
Specify the notification target name.
- [edit snmp notify target target-name]
- user@host# set address address
- [edit snmp notify target target-name]
- user@host# set port port
- [edit snmp notify target target-name]
- user@host# set community community
To specify the notification type as an SNMPv1 trap:
- [edit snmp notify target target-name]
- user@host# set type trapv1
To specify the notification type as an SNMPv2 trap:
- [edit snmp notify target target-name]
- user@host# set type trapv2
To specify the notification type as an SNMPv2 inform:
- [edit snmp notify target target-name]
- user@host# set type inform
- [edit snmp notify target target-name]
- user@host# show