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:
- (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
- (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
- (Optional) Enable SNMP traps when a RADIUS authentication
server returns to active service.host1(config)#radius trap auth-server-responding enable
- (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
- (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
- (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:
- 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
- Specify the interface whose IP address is the source address
for SNMP traps. host1(config)#snmp-server trap-source fastEthernet 0/0
- 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
- Enable the SNMP router agent to receive and forward RADIUS
traps.host1(config)#snmp-server enable traps radius
- Enable the SNMP on the router.host1(config)#snmp-server

Note: For more information about these SNMP commands, see JunosE System Basics Configuration Guide.
Hide Navigation Pane
Show Navigation Pane
SHA1