Starting a Ping Test
Before you start a ping test, configure a Ping MIB view. This allows SNMP Set requests on pingMIB. To start a ping test, create a row in pingCtlTable and set pingCtlAdminStatus to enabled. The minimum information that must be specified before setting pingCtlAdminStatus to enabled is:
- pingCtlOwnerIndexSnmpAdminString
- pingCtlTestNameSnmpAdminString
- pingCtlTargetAddressInetAddress
- pingCtlTargetAddressTypeInetAddressType
- pingCtlRowStatusRowStatus
For all other values, defaults are chosen unless otherwise specified. pingCtlOwnerIndex and pingCtlTestName are used as the index, so their values are specified as part of the object identifier (OID). To create a row, set pingCtlRowStatus to createAndWait or createAndGo on a row that does not already exist. A value of active for pingCtlRowStatus indicates that all necessary information has been supplied and the test can begin; pingCtlAdminStatus can be set to enabled. An SNMP Set request that sets pingCtlRowStatus to active will fail if the necessary information in the row is not specified or is inconsistent. For information about how to configure a view, see Setting SNMP Views.
There are two ways to start a ping test:
Using Multiple Set Protocol Data Units (PDUs)
You can use multiple Set request PDUs (multiple PDUs, with one or more varbinds each) and set the following variables in this order to start the test:
- pingCtlRowStatus to createAndWait
- All appropriate test variables
- pingCtlRowStatus to active
JUNOS Software now verifies that all necessary information to run a test has been specified.
- pingCtlAdminStatus to enabled
Using a Single Set PDU
You can use a single Set request PDU (one PDU, with multiple varbinds) to set the following variables to start the test:
- pingCtlRowStatus to createAndGo
- All appropriate test variables
- pingCtlAdminStatus to enabled