Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring SNMP Traps

    This section describes how to configure the router to send traps to SNMP when RADIUS servers fail to respond to messages, and how to configure SNMP to receive the traps.

    To set up the router to send traps:

    1. (Optional) Enable SNMP traps when a particular RADIUS authentication server fails to respond to Access-Request messages.
      host1(config)#radius trap auth-server-not-responding enable
    2. (Optional) Enable SNMP traps when all of the configured RADIUS authentication servers on a VR fail to respond to Access-Request messages.
      host1(config)#radius trap no-auth-server-responding enable
    3. (Optional) Enable SNMP traps when a RADIUS authentication server returns to active service.
      host1(config)#radius trap auth-server-responding enable
    4. (Optional) Enable SNMP traps when a RADIUS accounting server fails to respond to a RADIUS accounting request.
      host1(config)#radius trap acct-server-not-responding enable
    5. (Optional) Enable SNMP traps when all of the RADIUS accounting servers on a VR fail to respond to a RADIUS accounting request.
      host1(config)#radius trap no-acct-server-responding enable
    6. (Optional) Enable SNMP traps when a RADIUS accounting server returns to active service.
      host1(config)#radius trap acct-server-responding enable

    To set up SNMP to receive RADIUS traps:

    1. Set up the appropriate SNMP community strings.
      host1(config)#snmp-server community admin view everything rw host1(config)#snmp-server community private view user rw host1(config)#snmp-server community public view everything ro
    2. Specify the interface whose IP address is the source address for SNMP traps.
      host1(config)#snmp-server trap-source fastEthernet 0/0
    3. Configure the host that should receive the SNMP traps.
      host1(config)#snmp-server host 10.10.132.93 version 2c 3 udp-port 162 radius
    4. Enable the SNMP router agent to receive and forward RADIUS traps.
      host1(config)#snmp-server enable traps radius
    5. Enable the SNMP on the router.
      host1(config)#snmp-server

      Note: For more information about these SNMP commands, see JunosE System Basics Configuration Guide.

    Published: 2014-08-20