Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
7-22
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 7      Device Administration Interface API
End User Interface
Set Event ID
Method to add set the event ID attribute on the device object.
Signature
Status setDeviceId(String deviceName, String id) 
Arguments
deviceName – String that denotes the name of the device.
ID – String that gives the event ID of the device.
Return Value
Integer that gives the status of the operation.
Get Event ID
Method to add get the event ID attribute of the device object.
Signature
String getDeviceId(String deviceName) 
Arguments
deviceName – String that denotes the name of the device.
Return Value
String that gives the event ID of the device.
Set Device Attributes
Method to add set an attribute value on the device. The schema of the data store must support the attribute 
being set. One or more values may be assigned to it. Only string values are supported.
Signature
Status setDeviceAttributes(String deviceName, CNSAttribute[] attrs) 
Arguments
deviceName – String that denotes the name of the device.
attrs – A set of CNSAttribute objects.
Return Value
Integer that gives the status of the operation.