Check Sending Alarms And Advisors

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

../../../../_images/dummy.svg

Test SNMPv1 Send Traps

Description

A ‘trap-target‘ is configured to send alarm and advisor 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 interfaces dummy dum0 address 20.0.0.1/24
set interfaces dummy dum0 alarm down ALARM2TEST
set system alarm ALARM2TEST
set system advisor ADVISOR2TEST test 'ALARM2TEST'
set service snmp community COMMUNITY2TEST notify-traps alarm ALARM2TEST
set service snmp community COMMUNITY2TEST notify-traps advisor all
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 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Alarm and advisor notifications should be received on DUT1.

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

Step 4: Set the following configuration in DUT0:

set interfaces dummy dum0 disable

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

Step 6: Set the following configuration in DUT0:

del interfaces dummy dum0 disable

Test SNMPv2c Send Traps

Description

A ‘trap-target‘ is configured to send alarm and advisor 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 interfaces dummy dum0 address 20.0.0.1/24
set interfaces dummy dum0 alarm down ALARM2TEST
set system alarm ALARM2TEST
set system advisor ADVISOR2TEST test 'ALARM2TEST'
set service snmp community COMMUNITY2TEST notify-traps alarm ALARM2TEST
set service snmp community COMMUNITY2TEST notify-traps advisor all
set service snmp trap-target 10.0.0.2 version v2c community COMMUNITY2TEST

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Alarm and advisor notifications should be received in DUT1.

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

Step 4: Set the following configuration in DUT0:

set interfaces dummy dum0 disable

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

Step 6: Set the following configuration in DUT0:

del interfaces dummy dum0 disable

Test SNMPv2c Send Informs

Description

A ‘trap-target‘ is configured to send alarm and advisor 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 interfaces dummy dum0 address 20.0.0.1/24
set interfaces dummy dum0 alarm down ALARM2TEST
set system alarm ALARM2TEST
set system advisor ADVISOR2TEST test 'ALARM2TEST'
set service snmp community COMMUNITY2TEST notify-traps alarm ALARM2TEST
set service snmp community COMMUNITY2TEST notify-traps advisor all
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 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 address 10.0.0.2/24

Note

Alarm and advisor notifications should be received in DUT1.

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

Step 4: Set the following configuration in DUT0:

set interfaces dummy dum0 disable

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

Step 6: Set the following configuration in DUT0:

del interfaces dummy dum0 disable

Test SNMPv3 Send Traps

Description

A ‘trap-target‘ is configured to send alarm and advisor 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 dummy dum0 address 20.0.0.1/24
set interfaces dummy dum0 alarm down ALARM2TEST
set system alarm ALARM2TEST
set system advisor ADVISOR2TEST test 'ALARM2TEST'
set service snmp user USER2TEST notify-traps alarm ALARM2TEST
set service snmp user USER2TEST notify-traps advisor all
set service snmp trap-target 10.0.0.2 version v3 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

Alarm and advisor notifications should be received in DUT1.

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

Step 4: Set the following configuration in DUT0:

set interfaces dummy dum0 disable

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

Step 6: Set the following configuration in DUT0:

del interfaces dummy dum0 disable

Test SNMPv3 Send Informs

Description

A ‘trap-target‘ is configured to send alarm and advisor 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 dummy dum0 address 20.0.0.1/24
set interfaces dummy dum0 alarm down ALARM2TEST
set system alarm ALARM2TEST
set system advisor ADVISOR2TEST test 'ALARM2TEST'
set service snmp user USER2TEST notify-traps alarm ALARM2TEST
set service snmp user USER2TEST notify-traps advisor all
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

Note

Alarm and advisor notifications should be received in DUT1.

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

Step 4: Set the following configuration in DUT0:

set interfaces dummy dum0 disable

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

Step 6: Set the following configuration in DUT0:

del interfaces dummy dum0 disable