Check Sending Notifications

This scenario shows how to configure a ‘trap-target‘ to send notifications using VRFs. In addition, the SNMP ‘service snmp monitor traps’ command is checked.

../../../../_images/common1.svg

Test SNMP Send Traps

Description

Using VRFs, a ‘trap-target‘ is configured to send traps for a user in DUT0 and the ‘monitor’ command is used to check sending notifications in SNMPv3.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.0.0.1/24
set interfaces ethernet eth0 vrf A
set service snmp engine-id 0x80000009010a0101c1
set service snmp trap-target 10.0.0.2 version v3 user USER2TEST
set service snmp user USER2TEST
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf A

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24
set interfaces ethernet eth0 vrf B
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf B

Note

Initially, no notifications should be received in DUT1 because there is no information in DUT0 specifying where to route the notifications.

Step 3: Run command service snmp monitor traps user USER2TEST engine-id 0x80000009010a0101c1 at DUT1.

Step 4: Modify the following configuration lines in DUT0:

set system location Teldat_Spain

Step 5: Run command service snmp monitor traps user USER2TEST engine-id 0x80000009010a0101c1 vrf B at DUT1.

Step 6: Modify the following configuration lines in DUT0:

delete system location

Note

After setting the VRF in DUT0, notifications should be received in DUT1.

Step 7: Modify the following configuration lines in DUT0:

set service snmp local-vrf A

Step 8: Run command service snmp monitor traps user USER2TEST engine-id 0x80000009010a0101c1 at DUT1.

Step 9: Modify the following configuration lines in DUT0:

set system location Teldat_Spain

Step 10: Run command service snmp monitor traps user USER2TEST engine-id 0x80000009010a0101c1 vrf B at DUT1.

Step 11: Modify the following configuration lines in DUT0:

delete system location

Test SNMP Send Informs

Description

Using VRFs, a ‘trap-target‘ is configured to send informs for a user in DUT0 and the ‘monitor’ command is used to check sending notifications in SNMPv3.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.0.0.1/24
set interfaces ethernet eth0 vrf A
set service snmp engine-id 0x80000009010a0101c1
set service snmp trap-target 10.0.0.2 version v3 type inform
set service snmp trap-target 10.0.0.2 version v3 user USER2TEST
set service snmp user USER2TEST
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf A

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24
set interfaces ethernet eth0 vrf B
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf B

Note

Initially, no notifications should be received in DUT1 because no information on where to route the notifications has been specified in DUT0.

Step 3: Run command service snmp monitor traps user USER2TEST at DUT1.

Step 4: Modify the following configuration lines in DUT0:

set system location Teldat_Spain

Step 5: Run command service snmp monitor traps user USER2TEST vrf B at DUT1.

Step 6: Modify the following configuration lines in DUT0:

delete system location

Note

After setting the VRF in DUT0, no notifications should be received in DUT1 until information on where to route the informs response is indicated in DUT1.

Step 7: Modify the following configuration lines in DUT0:

set service snmp local-vrf A

Step 8: Run command service snmp monitor traps user USER2TEST at DUT1.

Step 9: Modify the following configuration lines in DUT0:

set system location Teldat_Spain

Step 10: Run command service snmp monitor traps user USER2TEST vrf B at DUT1.

Step 11: Modify the following configuration lines in DUT0:

delete system location