Cisco Cisco Security Manager 4.7 Guía Del Usuario
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
Cisco Security Manager 4.7 API Specification (Version 2.0)
OL- 32164-01
Page 196
5
CSM Utility Service API
The utility service provides general utilities for access to functions on the network devices. The Utility Service APIs
always fetch the device configuration data directly from the device. The Configuration Service API (defined in
Section 3), on the other hand, always fetches the data from the CSM database.
always fetch the device configuration data directly from the device. The Configuration Service API (defined in
Section 3), on the other hand, always fetches the data from the CSM database.
Faster responses and better efficiency is obtained using the Configuration Service API rather than the Utility Service
API. This is because the Utility Service API communicates with the device during a method request and there is an
additional communication overhead between the CSM application and the network device. This may additionally
entail an increased load on the network device.
API. This is because the Utility Service API communicates with the device during a method request and there is an
additional communication overhead between the CSM application and the network device. This may additionally
entail an increased load on the network device.
It is thus recommended to use the Utility Service API under the following circumstances:
If the corresponding configuration data is not supported by the Configuration ServiceAPI
If the corresponding configuration data is administratively not managed in CSM. By default all applicable
policies are managed in CSM (see the Policy Management CSM Administration screen)
policies are managed in CSM (see the Policy Management CSM Administration screen)
If out-of-band changes are made on the end device (in such cases CSM might not have the updated
configuration in its database)
configuration in its database)
5.1 Object Model
The following objects are defined in the utility service
-
DeviceReadOnlyCLICmds
o Identifies a device and a CLI command to be executed against that device
-
DeviceCmdResults
o Identifies a set of device command results
-
DeviceCmdResult
o Identifies a single device and the command results
Figure 155: Result XML Schema
5.2 Methods
The utility service defines the following methods:
1. GetServiceInfo
a. Returns the service-specific information including name of service, version, date, etc.
<xs:simpleType
name
="
Result
">
<xs:restriction
base
="
xs:token
">
<xs:enumeration
value
="
ok
"/>
<xs:enumeration
value
="
timeout
"/>
<xs:enumeration
value
="
failed
"/>
</xs:restriction>
</xs:simpleType>