The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the command-line interface (CLI) commands that you can use to manage and monitor the SNMP agent on the Prime Cable Provisioning Device Provisioning
Engine (DPE).
The commands described in this chapter are:
Use the snmp-server community command to define the community string that allows external SNMP managers access to the SNMP agent on the DPE.
After you use this command, run the snmp-server reload command so that the changes take effect. See snmp-server reload.
To delete the specified community string, use the no form of this command. See no snmp-server community.
snmp-server community string [ ro | rw ]
The default ro and rw community strings are baccread and baccwrite, respectively. We recommend that you change these values before deploying Prime Cable Provisioning.
This result occurs when you use the default baccread option for the read-only community string.
This result occurs when you use the default baccwrite option for the read-write community string.
Use the no snmp-server community command to delete the specified community string that allows access for external SNMP managers to the SNMP agent on the DPE.
After you use this command, run the snmp-server reload command to restart the SNMP agent. See snmp-server reload.
To set up the community access string, see snmp-server community.
Use the snmp-server contact command to enter a string of characters that identify the system contact (sysContact) as defined in the MIB II.
After you use this command, run the snmp-server reload command to restart the SNMP agent. See snmp-server reload.
To remove the system contact, use the no form of this command. See no snmp-server contact.
text —Identifies the name of the contact responsible for the DPE.
Use the no snmp-server contact command to remove the system contact that is responsible for the DPE.
After you use this command, run the snmp-server reload command to restart the SNMP agent. See snmp-server reload.
To enter a string of characters that identify the system contact, use the snmp-server contact command. See snmp-server contact.
Use the snmp-server host command to specify the recipient of all SNMP notifications and to configure the SNMP agent to send traps or informs to multiple hosts.
Note You can use multiple instances of this command to specify more than one notification recipient.
After you use this command, run the snmp-server reload command so that the changes take effect. See snmp-server reload.
To remove the specified notification recipient, use the no form of this command. See no snmp-server host.
snmp-server host host-addr notification community community [ udp-port port ]
Use the no snmp-server host command to remove the specified notification recipient.
After you use this command, run the snmp-server reload command so that the changes take effect. See snmp-server reload.
To specify the recipient of all SNMP notifications, see snmp-server host.
Use the snmp-server inform command to specify the type of SNMP notification sent from the SNMP agent to the SNMP manager. Use it to send SNMP informs rather than traps, although traps are sent
by default.
After you use this command, run the snmp-server reload command to restart the SNMP agent. See snmp-server reload.
To switch the SNMP notifications back to the default setting of traps, use the no form of this command. See no snmp-server inform.
snmp-server inform [ retries count timeout time ]
Note Specifying the retry count and the timeout while configuring SNMP informs is optional. If you do not specify any values, the default values are used.
SNMP notification via informs is by default disabled. If you configure SNMP notification as informs, the default number of retries is 1 and the default timeout is 5000 milliseconds.
In this example, an SNMP inform will be sent up to a maximum of five times before the retries stop. If the timeout of 500 milliseconds expires before the five retries take place, the inform is not sent again.
Use the no snmp-server inform command to switch the SNMP notifications that are sent to the SNMP manager back to the default setting of traps.
After you use this command, run the snmp-server reload command to restart the SNMP agent. See snmp-server reload.
To specify the type of SNMP notification sent, see snmp-server inform.
Use the snmp-server location command to enter a string of characters that identify the system location (sysLocation) as defined in the MIB II.
After you use this command, run the snmp-server reload command to restart the SNMP agent. See snmp-server reload.
To remove a system location, use the no form of this command. See no snmp-server location.
Use the no snmp-server location command to remove a system location.
After you use this command, run the snmp-server reload command to restart the SNMP agent. See snmp-server reload.
To enter a string of characters that identify the system location, see snmp-server location.
Use the snmp-server reload command to reload the SNMP agent process on the DPE.
Note When the SNMP process is started on the RDU and DPE, a trap containing the system uptime is sent. Prime Cable Provisioning trap notifications, however, are disabled by default. You can enable trap notifications only by setting the corresponding MIB object via SNMP. You cannot enable trap notifications via the CLI or the Admin UI.
This Prime Cable Provisioning release supports only the trap notifications defined in the CISCO-BACC-SERVER-MIB and CISCO-BACC-RDU-MIB files. For more information, see the MIB files in the BPR_HOME/rdu/mibs directory.
Use the snmp start | stop command to start or stop the SNMP agent process on the DPE.
This result occurs when the SNMP agent process is started.
This result occurs when the SNMP agent process is already running.
This result occurs when the SNMP agent process is stopped.
Use the snmp-server udp-port command to identify the UDP port number on which the SNMP
agent listens.
The DPE requires this command to prevent potential sharing violations between ports that other applications use. The changing of port numbers is used to resolve potential port conflict.
To change the port to which the SNMP agent listens back to the default UDP port number, use the no form of this command. See no snmp-server udp-port.
port —Identifies the UDP port to which the SNMP agent listens.
The default port number of the SNMP agent is 8001.
Note To eliminate potential port conflicts with other SNMP agents on the computer, the default port number is different from the standard well-known SMNP agent port.
We recommend that you change the SNMP agent port to the well-known port number 161.
Use the no snmp-server udp-port command to change the UDP port to which the SNMP agent listens to the default port (8001).
Note Using a port number other than the standard well-known SNMP agent port number of 161 increases the likelihood of potential port conflicts with other SNMP agents running on the same computer.
To specify the UDP port number to which the SNMP agent listens, see snmp-server udp-port.