Using SNMP to Retrieve Information from JunosE Routers and Devices Running Junos OSs (SRC CLI)
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 JunosE Routers and Virtual Routers (SRC CLI).) You can also configure global default SNMP communities.
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:
To configure global default SNMP communities:
- From configuration mode, access the configuration statements
that configure default SNMP communities.user@host# edit shared sae configuration driver snmp
- Configure the default SNMP community string used for read
access to the router.[edit shared sae configuration driver snmp] user@host# set read-only-community-string read-only-community-string
- Configure the default SNMP community string used for write
access to the router.[edit shared sae configuration driver snmp] user@host# set read-write-community-string read-write-community-string
- (Optional) Verify your configuration.
[edit shared sae configuration driver snmp] user@host# show read-only-community-string ********; read-write-community-string ********;
Related Documentation
- Using SNMP to Retrieve Information from Devices Running Junos OS and Other Network Devices
- Configuring Event Tracking for Junos LSPs (SRC CLI)
- Configuring the Device Running Junos OS to Apply Changes It Receives from the SAE
- Disabling Interactions Between the SAE and Devices Running Junos OS
- Monitoring Interactions Between the SAE and Devices Running Junos OS