Getting Started with the Prime Cable Provisioning API
This chapter describes how to start the API clients and process a batch.
Startup Process for API Client
The startup process for an API client interaction involves:
Configuring the System
Before executing a simple client, ensure that you have completed the tasks listed in this section.
Note These tasks are part of an initial configuration workflow that you must complete before executing a simple client for the first time. Thereafter, you can execute any number of simple clients.
Executing the API Client
To execute a simple API client:
Note This procedure uses the AddDeviceExample.java classfile as an example.
Step 1 Compile the API classfile using the following code:
Note This example assumes that the bpr.jar, bacbase.jar and bac-common.jar files exist in the local directory.
Step 2 Execute the API classfile using the following code:
For example, the AddDeviceExample print success or failure messages. If there is no error, the following message appears:
You can also verify the results for the device record from the administrator user interface from the Devices > Manage Device page. For more information, see the Cisco Prime Cable Provisioning 6.1.1 User Guide.
Processing a Batch
This section describes how you can connect to the RDU, create a batch, post the batch to the RDU, and verify the result.
Note This procedure uses the AddDeviceExample.java classfile as an example.
Step 1 Create a connection to the Provisioning API Command Engine (PACE).
Step 2 Get a new batch instance.
Step 3 Register the AddDeviceExample
() call with the batch.
Step 4 Post a batch to the RDU.
Step 5 Verify the result of the connection.
Step 6 Release the connection to the RDU.