Техническое Руководство для Cisco Cisco Security Manager 4.0

Скачать
Страница из 217
 
 
 
  
 
Cisco Security Manager 4.4 API Specification (Version 1.1) 
 
OL- 29074-01 
Page  156
 
7.1.2 Using the configuration and event service 
The CSM client may access the API to read configuration of the devices supported by the CSM server. The client 
may also register for change notifications whenever a configuration change occurs. The following flowchart shows 
the high-level processing on the client.  
Client has list of 
devices it manages, 
Authenticates to CSM 
server
Authenticated session
Call Get Device 
List method
For each device in 
the list
Call Get Device 
Config by GID 
Call Event 
Subscription
Completed 
Wait for config 
change 
notification
Call Policy config 
per device
Call Get Device 
Config by GID 
Call Policy config 
per device
 
Figure 102: Client Config Flowchart 
Following is a typical flow to process policy data in raw format: 
 
a.  Login (and setup a background thread or process to keep the session alive via a ping or heartbeat) 
b.  Use one of  GetGroupList (or) GetDeviceListByCapability (or) GetDeviceListByGroup to get the list of 
devices in the system 
c.  For each of the devices in the list: 
i.  Call GetDeviceConfigByGID (or) GetDeviceConfigByName to get the raw config data 
d.  Logout 
 
Client would additionally need to subscribe to events (see Event Service API in this document), to make the client 
refresh the configuration if the configuration gets updated. The GetDeviceConfigByGID and