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.
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 system vrf A set service snmp user USER2TEST set service snmp engine-id 0x80000009010a0101c1 set service snmp trap-target 10.0.0.2 version v3 user USER2TEST
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 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: Set the following configuration 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: Set the following configuration in DUT0
:
del system location Teldat_Spain
Note
After setting the VRF in DUT0, notifications should be received in DUT1.
Step 7: Set the following configuration 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: Set the following configuration 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: Set the following configuration in DUT0
:
del system location Teldat_Spain
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 system vrf A set service snmp user USER2TEST set service snmp engine-id 0x80000009010a0101c1 set service snmp trap-target 10.0.0.2 version v3 user USER2TEST set service snmp trap-target 10.0.0.2 version v3 type inform
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 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: Set the following configuration in DUT0
:
set system location Teldat_Spain
Step 5: Run command service snmp monitor traps user USER2TEST vrf B
at DUT1
.
Step 6: Set the following configuration in DUT0
:
del system location Teldat_Spain
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: Set the following configuration in DUT0
:
set service snmp local-vrf A
Step 8: Run command service snmp monitor traps user USER2TEST
at DUT1
.
Step 9: Set the following configuration in DUT0
:
set system location Teldat_Spain
Step 10: Run command service snmp monitor traps user USER2TEST vrf B
at DUT1
.
Step 11: Set the following configuration in DUT0
:
del system location Teldat_Spain