Check Sending Notifications

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

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

Test SNMPv1 Send Traps

Description

A ‘trap-target‘ is configured to send traps for a community in DUT0 and the ‘monitor’ command is used to check sending notifications in SNMPv1.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.0.0.1/24
set service snmp community COMMUNITY2TEST

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Initially, no notifications should be received in DUT1 because a trap-target hasn’t been configured yet.

Step 3: Run command service snmp monitor traps community COMMUNITY2TEST at DUT1.

Step 4: Set the following configuration in DUT0:

set system location Teldat_Spain

Note

After adding a trap-target for address ‘10.0.0.2’, notifications should be received in DUT1.

Step 5: Set the following configuration in DUT0:

set service snmp trap-target 10.0.0.2 version v1 community COMMUNITY2TEST
set service snmp trap-target 10.0.0.2 version v1 source 10.0.0.1

Step 6: Run command service snmp monitor traps community COMMUNITY2TEST at DUT1.

Step 7: Set the following configuration in DUT0:

del system location Teldat_Spain

Test SNMPv2c Send Traps

Description

A ‘trap-target‘ is configured to send traps for a community in DUT0 and the ‘monitor’ command is used to check sending notifications in SNMPv2c.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.0.0.1/24
set service snmp community COMMUNITY2TEST

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Initially, no notifications should be received in DUT1 because a trap-target hasn’t been configured yet.

Step 3: Run command service snmp monitor traps community COMMUNITY2TEST at DUT1.

Step 4: Set the following configuration in DUT0:

set system location Teldat_Spain

Note

After adding a trap-target for address ‘10.0.0.2’, notifications should be received in DUT1.

Step 5: Set the following configuration in DUT0:

set service snmp trap-target 10.0.0.2 version v2c community COMMUNITY2TEST

Step 6: Run command service snmp monitor traps community COMMUNITY2TEST at DUT1.

Step 7: Set the following configuration in DUT0:

del system location Teldat_Spain

Test SNMPv2 Send Informs

Description

A ‘trap-target‘ is configured to send informs for a community in DUT0 and the ‘monitor’ command is used to check sending notifications in SNMPv2c.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.0.0.1/24
set service snmp community COMMUNITY2TEST

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Initially, no notifications should be received in DUT1 because a trap-target hasn’t been configured yet.

Step 3: Run command service snmp monitor traps community COMMUNITY2TEST at DUT1.

Step 4: Set the following configuration in DUT0:

set system location Teldat_Spain

Note

After adding a trap-target for address ‘10.0.0.2’, notifications should be received in DUT1.

Step 5: Set the following configuration in DUT0:

set service snmp trap-target 10.0.0.2 version v2c community COMMUNITY2TEST
set service snmp trap-target 10.0.0.2 version v2c type inform

Step 6: Run command service snmp monitor traps community COMMUNITY2TEST at DUT1.

Step 7: Set the following configuration in DUT0:

del system location Teldat_Spain

Test SNMPv3 Send Traps

Description

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 service snmp user USER2TEST
set service snmp engine-id 0x80000009010a0101c1

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Initially, no notifications should be received in DUT1 because a trap-target hasn’t been configured yet.

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 engine-id 0x80000009010a0101c1 at DUT1.

Step 6: Set the following configuration in DUT0:

del system location Teldat_Spain

Note

After adding a trap-target for address ‘10.0.0.2’, notifications should be received in DUT1.

Step 7: Set the following configuration in DUT0:

set service snmp trap-target 10.0.0.2 version v3 user USER2TEST

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 engine-id 0x80000009010a0101c1 at DUT1.

Step 11: Set the following configuration in DUT0:

del system location Teldat_Spain

Note

After adding authentication to the user, notifications should not be received in DUT1 until the correct parameters are indicated in the monitoring.

Step 12: Set the following configuration in DUT0:

set service snmp user USER2TEST authentication protocol SHA
set service snmp user USER2TEST authentication password auth_pass_12345

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

Step 14: Set the following configuration in DUT0:

set system location Teldat_Spain

Step 15: Run command service snmp monitor traps user USER2TEST engine-id 0x80000009010a0101c1 auth-key auth_pass_12345 auth-protocol SHA at DUT1.

Step 16: Set the following configuration in DUT0:

del system location Teldat_Spain

Note

After adding privacy to the user, notifications should not be received in DUT1 until the correct parameters are indicated in the monitoring.

Step 17: Set the following configuration in DUT0:

set service snmp user USER2TEST privacy protocol AES
set service snmp user USER2TEST privacy password priv_pass_12345

Step 18: Run command service snmp monitor traps user USER2TEST engine-id 0x80000009010a0101c1 auth-key auth_pass_12345 auth-protocol SHA at DUT1.

Step 19: Set the following configuration in DUT0:

set system location Teldat_Spain

Step 20: Run command service snmp monitor traps user USER2TEST engine-id 0x80000009010a0101c1 auth-key auth_pass_12345 auth-protocol SHA priv-key priv_pass_12345 priv-protocol AES at DUT1.

Step 21: Set the following configuration in DUT0:

del system location Teldat_Spain

Test SNMPv3 Send Informs

Description

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 service snmp user USER2TEST

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Initially, no notifications should be received in DUT1 because a trap-target hasn’t been configured yet.

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 at DUT1.

Step 6: Set the following configuration in DUT0:

del system location Teldat_Spain

Note

After adding a trap-target for address ‘10.0.0.2’, notifications should be received in DUT1.

Step 7: Set the following configuration in DUT0:

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 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 at DUT1.

Step 11: Set the following configuration in DUT0:

del system location Teldat_Spain

Note

After adding authentication to the user, notifications should not be received in DUT1 until the correct parameters are indicated in the monitoring.

Step 12: Set the following configuration in DUT0:

set service snmp user USER2TEST authentication protocol SHA
set service snmp user USER2TEST authentication password auth_pass_12345

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

Step 14: Set the following configuration in DUT0:

set system location Teldat_Spain

Step 15: Run command service snmp monitor traps user USER2TEST auth-key auth_pass_12345 auth-protocol SHA at DUT1.

Step 16: Set the following configuration in DUT0:

del system location Teldat_Spain

Note

After adding privacy to the user, notifications should not be received in DUT1 until the correct parameters are indicated in the monitoring.

Step 17: Set the following configuration in DUT0:

set service snmp user USER2TEST privacy protocol AES
set service snmp user USER2TEST privacy password priv_pass_12345

Step 18: Run command service snmp monitor traps user USER2TEST auth-key auth_pass_12345 auth-protocol SHA at DUT1.

Step 19: Set the following configuration in DUT0:

set system location Teldat_Spain

Step 20: Run command service snmp monitor traps user USER2TEST auth-key auth_pass_12345 auth-protocol SHA priv-key priv_pass_12345 priv-protocol AES at DUT1.

Step 21: Set the following configuration in DUT0:

del system location Teldat_Spain