Cisco Cisco Configuration Engine 3.0 개발자 가이드

다운로드
페이지 342
 
7-20
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide
OL-17661-01
Chapter 7      Device Administration Interface API
End User Interface
Class CNSDeviceManager
This class encapsulates the attributes and methods required to create device objects and set device 
parameters that are common to all services.
CreateDevice
Method to create a device object with a given name and identifier. This identifier string is assigned to 
the EventId, ConfigId. By default, the device is added to the default group.
Signature
Status createDevice (CNSDevice device)
Arguments
device – Device object whose attributes give the attributes of the device to be created.
Return Value
Integer indicating status.
CreateDevice
Method to create a device object with a given name and identifier. This identifier string is assigned to 
the EventId, ConfigId. In addition, the device is added as a member of the mentioned groups.
Signature
Status createDevice (CNSDevice device, String[] groupIds)
Arguments
device – Device object whose attributes give the attributes of the device to be created.
Return Value
Integer indicating status.
CreateDevice
Method to create a device object with a given name and identifier. This identifier string will be assigned 
to the Event Id, Config Id. The attrs[] can be used selectively to assign value to attributes.
Signature
Status createDevice (CNSDevice device, CNSAttribute attrs[])
Arguments
device – Device object whose attributes give the attributes of the device to be created.
attrs – array of attribute objects.
Return Value
Integer indicating status.