[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Using SNMP to Retrieve Information from JUNOSe Routers

Some scripts in the SRC software use SNMP to get information from the router. For example, the poolPublisher router initialization script uses SNMP to read the IP pools.

Configuring the SNMP Server on the JUNOSe Router

Access to the SNMP server on the router by an SNMP client is governed by a proprietary SNMP community table. This table identifies communities that have read-only, read-write, or administrative permission to the SNMP Management Information Base (MIB) stored on a particular server.

When an SNMP server receives a request, the server extracts the client's IP address and the community name. The SNMP server searches the community table for a matching community.

To configure the SNMP agent on the JUNOSe router:

  1. Switch to the virtual router for which you want to create an SRC client.
  2. host1#(config)virtual-router <vrName>
    
    
    
  3. Enable the SNMP agent.
  4. host1:<vrName>#(config)snmp-server
    
    
    
  5. Configure at least one authorized SNMP read-write community (SNMPv1/v2c), which provides SNMP client access.
  6. host1:<vrName>(config)#snmp-server community boston rw
    
    
    
  7. (Optional) Configure a read-only community.
  8. host1:<vrName>#(config)snmp-server public ro
    

Configuring Global SNMP Communities in the SRC Software

You can configure global default SNMP communities that are used if a VR does not exist on the router or if the community strings have not been configured for the VR.

Use the following configuration statements to configure global default SNMP communities:

shared sae configuration driver snmp {
read-only-community-string read-only-community-string; 

read-write-community-string read-write-community-string;
}

To configure global default SNMP communities:

  1. From configuration mode, access the configuration statements that configure default SNMP communities. In this sample procedure, the JUNOSe driver is configured in the west-region group.
  2. user@host# edit shared sae group west-region configuration driver snmp 
    
    
    
  3. Configure the default SNMP community string used for read access to the router.
  4. [edit shared sae group west-region configuration driver snmp]
    
    user@host# set read-only-community-string read-only-community-string 
    
    
    
  5. Configure the default SNMP community string used for write access to the router.
  6. [edit shared sae group west-region configuration driver snmp]
    
    user@host# set read-write-community-string read-write-community-string 
    
    
    
  7. (Optional) Verify your configuration.
  8. [edit shared sae group west-region configuration driver snmp]
    
    user@host# show 
    
    read-only-community-string ********;
    
    read-write-community-string ********;
    

[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]