Using SNMP to Retrieve Information from Network Devices
You can use SNMP to retrieve information from a network device. For example, if you create a script that uses SNMP, specify the SNMP communities that are on the network device.
We recommend that you specify SNMP communities for each virtual router object. (See Adding Virtual Router Objects.) 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 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-stringread-only-community-string
; read-write-community-stringread-write-community-string
;}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