OSDx Documentation Logo
master
  • About
  • Releases

First steps

  • Setting Up
  • Quick Start
  • Licensing
  • CLI Overview
  • Configuration Management

Admin Guide

  • System Administration
  • Articles
  • Troubleshooting
  • Examples
    • Basic
    • Interfaces
    • Protocols
    • Service
      • Cfm
      • Cnm
      • Dhcp-Relay
      • Dhcp-Server
      • Dhcpv6-Server
      • Dns
      • Firewall
      • Nsm
      • Snmp
        • Community
        • Interfaces Oids
        • Listen
        • Local-Address
        • Local-Vrf
        • Snmp Operations
        • System Oids
        • Trap-Target
        • User
        • View
        • Mib
      • Ssh
      • Ssm
      • Telnet
      • Traffic-Proxy
    • System
    • Tech Support
    • Traffic
    • User-Level
    • Vpn

Command reference

  • Configuration commands
  • Operational commands
OSDx Documentation
  • Examples
  • Service
  • Snmp
  • Trap-Target
  • Check Sending Link Changes
  • View page source

Check Sending Link Changes

This scenario shows how to configure a ‘trap-target‘ to send linkDown and linkUp 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 linkDown and linkUp 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 dummy dum0 address 20.0.0.1/24
set interfaces ethernet eth0 address 10.0.0.1/24
set service snmp community 'COMMUNITY2TEST!'
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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

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

Note

First, no trap is received in DUT1, since DUT0 does not have any ‘notify-trap’ configured and therefore does not send them.

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

Step 4: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 6: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled. And these traps must be received in DUT1.

Step 7: Modify the following configuration lines in DUT0 :

set service snmp community 'COMMUNITY2TEST!' notify-traps link-down

Step 8: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 9: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 10: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 11: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ and ‘link-up’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled and also when it is enabled. And these traps must be received in DUT1.

Step 12: Modify the following configuration lines in DUT0 :

set service snmp community 'COMMUNITY2TEST!' notify-traps link-up

Step 13: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 14: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 15: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 16: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring in DUT0 only the sending of ‘link-up’ traps, it must send traps when the ‘dum0’ interface is enabled. And these traps must be received in DUT1.

Step 17: Modify the following configuration lines in DUT0 :

delete service snmp community 'COMMUNITY2TEST!' notify-traps link-down

Step 18: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 19: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 20: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 21: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When DUT0 is configured not to send ‘link-down’ or ‘link-up’ traps. No traps should be received on DUT1 when the ‘dum0’ interface is disabled and enabled.

Step 22: Modify the following configuration lines in DUT0 :

delete service snmp community 'COMMUNITY2TEST!' notify-traps

Step 23: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 24: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 25: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 26: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Test SNMPv2c Send Traps

Description

A ‘trap-target‘ is configured to send linkDown and linkUp 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 dummy dum0 address 20.0.0.1/24
set interfaces ethernet eth0 address 10.0.0.1/24
set service snmp community 'COMMUNITY2TEST!'
set service snmp trap-target 10.0.0.2 version v2c community 'COMMUNITY2TEST!'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

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

Note

First, no trap is received in DUT1, since DUT0 does not have any ‘notify-trap’ configured and therefore does not send them.

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

Step 4: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 6: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled. And these traps must be received in DUT1.

Step 7: Modify the following configuration lines in DUT0 :

set service snmp community 'COMMUNITY2TEST!' notify-traps link-down

Step 8: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 9: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 10: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 11: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ and ‘link-up’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled and also when it is enabled. And these traps must be received in DUT1.

Step 12: Modify the following configuration lines in DUT0 :

set service snmp community 'COMMUNITY2TEST!' notify-traps link-up

Step 13: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 14: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 15: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 16: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring in DUT0 only the sending of ‘link-up’ traps, it must send traps when the ‘dum0’ interface is enabled. And these traps must be received in DUT1.

Step 17: Modify the following configuration lines in DUT0 :

delete service snmp community 'COMMUNITY2TEST!' notify-traps link-down

Step 18: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 19: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 20: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 21: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When DUT0 is configured not to send ‘link-down’ or ‘link-up’ traps. No traps should be received on DUT1 when the ‘dum0’ interface is disabled and enabled.

Step 22: Modify the following configuration lines in DUT0 :

delete service snmp community 'COMMUNITY2TEST!' notify-traps

Step 23: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 24: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 25: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 26: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Test SNMPv2c Send Informs

Description

A ‘trap-target‘ is configured to send linkDown and linkUp 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 dummy dum0 address 20.0.0.1/24
set interfaces ethernet eth0 address 10.0.0.1/24
set service snmp community 'COMMUNITY2TEST!'
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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

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

Note

First, no trap is received in DUT1, since DUT0 does not have any ‘notify-trap’ configured and therefore does not send them.

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

Step 4: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 6: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled. And these traps must be received in DUT1.

Step 7: Modify the following configuration lines in DUT0 :

set service snmp community 'COMMUNITY2TEST!' notify-traps link-down

Step 8: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 9: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 10: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 11: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ and ‘link-up’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled and also when it is enabled. And these traps must be received in DUT1.

Step 12: Modify the following configuration lines in DUT0 :

set service snmp community 'COMMUNITY2TEST!' notify-traps link-up

Step 13: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 14: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 15: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 16: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring in DUT0 only the sending of ‘link-up’ traps, it must send traps when the ‘dum0’ interface is enabled. And these traps must be received in DUT1.

Step 17: Modify the following configuration lines in DUT0 :

delete service snmp community 'COMMUNITY2TEST!' notify-traps link-down

Step 18: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 19: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 20: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 21: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When DUT0 is configured not to send ‘link-down’ or ‘link-up’ traps. No traps should be received on DUT1 when the ‘dum0’ interface is disabled and enabled.

Step 22: Modify the following configuration lines in DUT0 :

delete service snmp community 'COMMUNITY2TEST!' notify-traps

Step 23: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 24: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

Step 25: Run command service snmp monitor traps community COMMUNITY2TEST! `` at ``DUT1.

Step 26: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Test SNMPv3 Send Traps

Description

A ‘trap-target‘ is configured to send linkDown and linkUp 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 dummy dum0 address 20.0.0.1/24
set interfaces ethernet eth0 address 10.0.0.1/24
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'

Step 2: Set the following configuration in DUT1 :

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

Note

First, no trap is received in DUT1, since DUT0 does not have any ‘notify-trap’ configured and therefore does not send them.

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 interfaces dummy dum0 disable

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

Step 6: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled. And these traps must be received in DUT1.

Step 7: Modify the following configuration lines in DUT0 :

set service snmp user USER2TEST notify-traps link-down

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 interfaces dummy dum0 disable

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

Step 11: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ and ‘link-up’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled and also when it is enabled. And these traps must be received in DUT1.

Step 12: Modify the following configuration lines in DUT0 :

set service snmp user USER2TEST notify-traps link-up

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

Step 14: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 16: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring in DUT0 only the sending of ‘link-up’ traps, it must send traps when the ‘dum0’ interface is enabled. And these traps must be received in DUT1.

Step 17: Modify the following configuration lines in DUT0 :

delete service snmp user USER2TEST notify-traps link-down

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

Step 19: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 21: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When DUT0 is configured not to send ‘link-down’ or ‘link-up’ traps. No traps should be received on DUT1 when the ‘dum0’ interface is disabled and enabled.

Step 22: Modify the following configuration lines in DUT0 :

delete service snmp user USER2TEST notify-traps

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

Step 24: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 26: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Test SNMPv3 Send Informs

Description

A ‘trap-target‘ is configured to send linkDown and linkUp 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 dummy dum0 address 20.0.0.1/24
set interfaces ethernet eth0 address 10.0.0.1/24
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'

Step 2: Set the following configuration in DUT1 :

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

Note

First, no trap is received in DUT1, since DUT0 does not have any ‘notify-trap’ configured and therefore does not send them.

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

Step 4: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 6: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled. And these traps must be received in DUT1.

Step 7: Modify the following configuration lines in DUT0 :

set service snmp user USER2TEST notify-traps link-down

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

Step 9: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 11: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring the sending of ‘link-down’ and ‘link-up’ traps in DUT0, it must send traps when the ‘dum0’ interface is disabled and also when it is enabled. And these traps must be received in DUT1.

Step 12: Modify the following configuration lines in DUT0 :

set service snmp user USER2TEST notify-traps link-up

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

Step 14: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 16: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When configuring in DUT0 only the sending of ‘link-up’ traps, it must send traps when the ‘dum0’ interface is enabled. And these traps must be received in DUT1.

Step 17: Modify the following configuration lines in DUT0 :

delete service snmp user USER2TEST notify-traps link-down

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

Step 19: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 21: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Note

When DUT0 is configured not to send ‘link-down’ or ‘link-up’ traps. No traps should be received on DUT1 when the ‘dum0’ interface is disabled and enabled.

Step 22: Modify the following configuration lines in DUT0 :

delete service snmp user USER2TEST notify-traps

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

Step 24: Modify the following configuration lines in DUT0 :

set interfaces dummy dum0 disable

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

Step 26: Modify the following configuration lines in DUT0 :

delete interfaces dummy dum0 disable

Previous Next

© Copyright 2025, Teldat.

Built with Sphinx using a theme provided by Read the Docs.