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


Using SNMP to Retrieve Information from JUNOS Routing Platforms

You can use SNMP to retrieve information from the router. For example, if you create a router initialization script that uses SNMP, you need to specify the SNMP communities that are on the router.

We recommend that you specify SNMP communities for each virtual router. (See Adding Virtual Routers Individually.) You can also configure global default SNMP communities.

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.
  2. user@host# edit shared sae configuration driver snmp 
    
    
    
  3. Configure the default SNMP community string used for read access to the router.
  4. [edit shared sae 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 configuration driver snmp]
    
    user@host# set read-write-community-string read-write-community-string 
    
    
    
  7. (Optional) Verify your configuration.
  8. [edit shared sae configuration driver snmp]
    
    user@host# show 
    
    read-only-community-string ********;
    
    read-write-community-string ********;
    

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