Contents
Cisco Prime Network 5.3 BQL Integration Developer Guide
iv
4.2.4 Sample Prime Network Web Services Client.......................................... 77
4.3 Running BQL using the Web Interface .......................................................79
4.3.1 Sample Prime Network Web Interface Clients ....................................... 79
5 BQL Application Examples.........................................................................80
5.1
Best Practices for BQL
Parsing .....................................................................82
5.1.1 Use an Existing XML Parser Implementation ......................................... 82
5.1.2 Do Not Rely on the Order of the Properties Inside the XML Parser........ 82
5.1.3 Do Not Count or Validate the Number of Properties ............................. 83
5.1.4
Do Not Assume the Type of the Property; Parse
it
from
BQL ........................ 83
5.1.5 Keep the Data Hierarchical Structure .................................................... 84
5.1.6
ID Parsing Should Be Protected from the Addition of
Properties ................ 85
5.1.7
Choose the Relevant Data for Retrieval and
Registration ........................... 85
5.1.8
Subscribe Only for Tickets and Ticket Updates
........................................... 86
5.2
Processing BQL Notification
Messages ........................................................87
5.2.1
Registering for BQL Notification
Service ................................................... 89
5.2.2
Parsing
a
Notification Message
................................................................ 92
5.2.3 Notification Interfaces Summary ......................................................... 104
5.2.4 Sample BQL Scripts for Notification Service......................................... 104
5.3
Administering Cisco Prime Network Using
BQL .......................................... 110
5.3.1
Management
Interfaces ........................................................................ 112
5.3.2
Sample BQL Scripts for Managing AVMs and VNEs
....................................... 115
5.4
Retrieving Inventory Data Using
BQL ......................................................... 127
5.4.1 Inventory Interfaces ............................................................................ 131
5.4.2
Sample BQL Scripts for Retrieving Inventory
Data ................................... 132
5.5
Generating Standard Reports Using
BQL...................................................... 146
5.5.1 Report Categories ............................................................................... 147
5.5.2
Scheduling Reports and Managing Scheduled
Jobs .................................. 162
5.5.3 Report Manager Interfaces ................................................................. 165
5.5.4
Samples BQL Scripts for
Report ............................................................. 167
5.6
Running Command Builder Scripts Using
BQL ............................................. 186
5.6.1
Command Builder
Interfaces ................................................................ 188
5.6.2 Credentials used for Command Builder Scripts Executions .................. 189
5.6.3
Sample BQL Scripts for Command Builder
Commands............................. 189
5.6.4 Command Builder Scripts Session Control ........................................... 192
5.7
Managing Soft Properties Using
BQL .......................................................... 196
5.7.1 Soft Property Interfaces ...................................................................... 198
5.7.2
Samples BQL Scripts for Soft
Property .................................................... 199
5.8 Running Configuration Backup and Restore Operations Using BQL ......... 206
5.8.1
Configuration Backup and Restore
Interfaces ........................................ 207
5.8.2
Sample BQL
Scripts
for
a Configuration Backup and Restore Operations207
5.9 Running Compliance Audit Using BQL ..................................................... 211
5.9.1 Compliance Audit Interfaces ............................................................... 211
5.9.2
Sample BQL Commands for
Complaince Audit Operations ..................... 212
5.10 Running Transactions Using BQL ............................................................. 217