TANGO

This class manage the TANGO database.

This command gets the device state (stored in its <i>device_state</i> data member) and returns it to the caller.

none.

State Code

This command gets the device status (stored in its <i>device_status</i> data member) and returns it to the caller.

none.

Status description

Add a Tango class device to a specific device server

Str[0] = Full device server process name Str[1] = Device name Str[2] = Tango class name

Create a device server process entry in database

Str[0] = Full device server name Str[1] = Device(s) name Str[2] = Tango class name Str[n] = Device name Str[n + 1] = Tango class name

Delete an attribute alias.

Attriibute alias name.

delete a class attribute and all its properties from database

Str[0] = Tango class name Str[1] = Attribute name

delete class attribute properties from database

Str[0] = Tango class name Str[1] = Attribute name Str[2] = Property name Str[n] = Property name

Delete class properties from database

Str[0] = Tango class name Str[1] = Property name Str[n] = Property name

Delete a devcie from database

device name

Delete a device alias.

device alias name

Delete device attribute properties from database

Str[0] = Device name Str[1] = Attribute name

delete a device attribute property from the database

Str[0] = Device name Str[1] = Attribute name Str[2] = Property name Str[n] = Property name

Delete device property(ies)

Str[0] = Device name Str[1] = Property name Str[n] = Property name

Delete free property from database

Str[0] = Object name Str[1] = Property name Str[n] = Property name

Delete server from the database but dont delete device properties

Device server name

delete info related to a Tango devvice server process

Device server name

Export a device to the database

Str[0] = Device name Str[1] = CORBA IOR Str[2] = Device server process host name Str[3] = Device server process PID or string ``null`` Str[4] = Device server process version

Export Event channel to database

Str[0] = event channel name (or factory name) Str[1] = CORBA IOR Str[2] = Notifd host name Str[3] = Notifd pid Str[4] = Notifd version

Get device name from its alias.

Alias name

Device name

Get the attribute name for the given alias. If alias not found in database, returns an empty string.

The attribute alias name

The attribute name (device/attribute)

Get attribute alias list for a specified filter

attribute alias filter string (eg: att*)

attribute aliases

Get attrilute list for a given Tango class with a specified filter

Str[0] = Tango class name Str[1] = Attribute name filter (eg: att*)

Str[0] = Class attribute name Str[n] = Class attribute name

Get Tango class property(ies) value

Str[0] = Tango class name Str[1] = Attribute name Str[n] = Attribute name

Str[0] = Tango class name Str[1] = Attribute property number Str[2] = Attribute property 1 name Str[3] = Attribute property 1 value Str[n + 1] = Attribute property 2 name Str[n + 2] = Attribute property 2 value

This command supports array property compared to the old command called DbGetClassAttributeProperty. The old command has not been deleted from the server for compatibility reasons.

Str[0] = Tango class name Str[1] = Attribute name Str[n] = Attribute name

Str[0] = Tango class name Str[1] = Attribute property number Str[2] = Attribute property 1 name Str[3] = Attribute property 1 value number (array case) Str[4] = Attribute property 1 value Str[n] = Attribute property 1 value (array case) Str[n + 1] = Attribute property 2 name Str[n + 2] = Attribute property 2 value number (array case) Str[n + 3] = Attribute property 2 value Str[n + m] = Attribute property 2 value (array case)

Retrieve Tango class attribute property history

Str[0] = Tango class Str[1] = Attribute name Str[2] = Property name

Str[0] = Attribute name Str[1] = Property name Str[2] = date Str[3] = Property value number (array case) Str[4] = Property value 1 Str[n] = Property value n

Get Tango class for the specified device.

Device name

Device Tango class

Get class inheritance for the specified device.

Device name

Classes off the specified device. [0] - is the class of the device. [1] - is the class from the device class is inherited. ........and so on

Get Tango class list with a specified filter

Filter

Class list

Str[0] = Tango class Str[1] = Property name Str[2] = Property name

Str[0] = Tango class Str[1] = Property number Str[2] = Property name Str[3] = Property value number (array case) Str[4] = Property value Str[n] = Propery value (array case) ....

Retrieve Tango class property history

Str[0] = Tango class Str[1] = Property name

Str[0] = Property name Str[1] = date Str[2] = Property value number (array case) Str[3] = Property value 1 Str[n] = Property value n

Get property list for a given Tango class with a specified filter

The filter

Property name list

Return alias for device name if found.

The device name

The alias found

Get device alias name with a specific filter

The filter

Device alias list

Return list of attributes matching the wildcard for the specified device

Str[0] = Device name Str[1] = Wildcard

attribute name list

Get device attribute property(ies) value

Str[0] = Device name Str[1] = Attribute name Str[n] = Attribute name

Str[0] = Device name Str[1] = Attribute property number Str[2] = Attribute property 1 name Str[3] = Attribute property 1 value Str[n + 1] = Attribute property 2 name Str[n + 2] = Attribute property 2 value

Retrieve device attribute properties. This command has the possibility to retrieve device attribute properties which are arrays. It is not possible with the old DbGetDeviceAttributeProperty command. Nevertheless, the old command has not been deleted for compatibility reason

Str[0] = Device name Str[1] = Attribute name Str[n] = Attribute name

Str[0] = Device name Str[1] = Attribute property number Str[2] = Attribute property 1 name Str[3] = Attribute property 1 value number (array case) Str[4] = Attribute property 1 value Str[n] = Attribute property 1 value (array case) Str[n + 1] = Attribute property 2 name Str[n + 2] = Attribute property 2 value number (array case) Str[n + 3] = Attribute property 2 value Str[n + m] = Attribute property 2 value (array case)

Retrieve device attribute property history

Str[0] = Device name Str[1] = Attribute name Str[2] = Property name

Str[0] = Attribute name Str[1] = Property name Str[2] = date Str[3] = Property value number (array case) Str[4] = Property value 1 Str[n] = Property value n

Get Tango classes/device list embedded in a specific device server

Device server process name

Str[0] = Device name Str[1] = Tango class Str[n] = Device name Str[n + 1] = Tango class

Get list of device domain name matching the specified

The wildcard

Device name domain list

Get a list of exported devices whose names satisfy the filter (wildcard is

filter

list of exported devices

Get a list of device name families for device name matching the specified wildcard

The wildcard

Family list

Returns info from DbImportDevice and started/stopped dates.

Device name

Str[0] = Device name Str[1] = CORBA IOR Str[2] = Device version Str[3] = Device Server name Str[4] = Device Server process host name Str[5] = Started date (or ? if not set) Str[6] = Stopped date (or ? if not set) Str[7] = Device class Lg[0] = Device exported flag Lg[1] = Device Server process PID (or -1 if not set)

Get a list of devices for specified server and class.

argin[0] : server name argin[1] : class name

The list of devices for specified server and class.

Get a list of devices whose names satisfy the filter.

filter

list of exported devices

Get a list of device name members for device name matching the specified filter

The filter

Device names member list

Str[0] = Device name Str[1] = Property name Str[n] = Property name

Str[0] = Device name Str[1] = Property number Str[2] = Property name Str[3] = Property value number (array case) Str[4] = Property value 1 Str[n] = Property value n (array case) Str[n + 1] = Property name Str[n + 2] = Property value number (array case) Str[n + 3] = Property value 1 Str[n + m] = Property value m

Retrieve device property history

Str[0] = Device name Str[2] = Property name

Str[0] = Property name Str[1] = date Str[2] = Property value number (array case) Str[3] = Property value 1 Str[n] = Property value n

Get property list belonging to the specified device and with name matching the specified filter

Str[0] = device name Str[1] = Filter

Property name list

Get list of Tango classes for a device server

device server process name

list of classes for this device server

Query the database for device exported for the specified class.

Class name

Device exported list

Get host list with name matching the specified filter

The filter

Host name list

Get list of device server process name running on host with name matching the specified filter

The filter

Device server process name list

Get info about all servers running on specified host, name, mode and level

Host name

Server info for all servers running on specified host

Returns the instance names found for specified server.

Server name

The instance names found for specified server.

Get list of free object defined in database with name matching the specified filter

The filter

Object name list

Get free object property

Str[0] = Object name Str[1] = Property name Str[n] = Property name

Str[0] = Object name Str[1] = Property number Str[2] = Property name Str[3] = Property value number (array case) Str[4] = Property value 1 Str[n] = Property value n (array case) Str[n + 1] = Property name Str[n + 2] = Property value number (array case) Str[n + 3] = Property value 1 Str[n + m] = Property value m

Retrieve object property history

Str[0] = Object name Str[2] = Property name

Str[0] = Property name Str[1] = date Str[2] = Property value number (array case) Str[3] = Property value 1 Str[n] = Property value n

Get list of property defined for a free object and matching the specified filter

Str[0] = Object name Str[1] = filter

Property name list

Get info about host, mode and level for specified server

server name

server info

Get list of device server process defined in database with name matching the specified filter

The filter

Device server process name list

Returns the list of server names found for the wildcard specified. It returns only the server executable name without instance name as DbGetServerList.

wildcard for server names.

server names found.

Import a device from the database

Device name (or alias)

Str[0] = device name Str[1] = CORBA IOR Str[2] = device version Str[3] = device server process name Str[4] = host name Str[5] = Tango class name Lg[0] = Exported flag Lg[1] = Device server process PID

Get event channel info from database

name of event channel or factory

export information e.g. IOR

Get miscellaneous numbers on information stored in database

Miscellaneous info like: - Device defined in database - Device marked as exported in database - Device server process defined in database - Device server process marked as exported in database - Device properties defined in database - Class properties defined in database - Device attribute properties defined in database - Class attribute properties defined in database - Object properties defined in database

Define an alias for an attribute

Str[0] = attribute name Str[1] = attribute alias

Create/Update class attribute property(ies) in database

Str[0] = Tango class name Str[1] = Attribute number Str[2] = Attribute name Str[3] = Property number Str[4] = Property name Str[5] = Property value .....

This command adds support for array properties compared to the previous one called DbPutClassAttributeProperty. The old comman is still there for compatibility reason

Str[0] = Tango class name Str[1] = Attribute number Str[2] = Attribute name Str[3] = Property number Str[4] = Property name Str[5] = Property value number (array case) Str[5] = Property value 1 Str[n] = Property value n (array case) .....

Create / Update class property(ies)

Str[0] = Tango class name Str[1] = Property number Str[2] = Property name Str[3] = Property value number Str[4] = Property value 1 Str[n] = Property value n ....

Define alias for a given device name

Str[0] = device name Str[1] = alias name

Create/Update device attribute property(ies) in database

Str[0] = Device name Str[1] = Attribute number Str[2] = Attribute name Str[3] = Property number Str[4] = Property name Str[5] = Property value .....

Put device attribute property. This command adds the possibility to have attribute property which are arrays. Not possible with the old DbPutDeviceAttributeProperty command. This old command is not deleted for compatibility reasons.

Str[0] = Device name Str[1] = Attribute number Str[2] = Attribute name Str[3] = Property number Str[4] = Property name Str[5] = Property value number (array case) Str[5] = Property value 1 Str[n] = Property value n (array case) .....

Create / Update device property(ies)

Str[0] = Tango device name Str[1] = Property number Str[2] = Property name Str[3] = Property value number Str[4] = Property value 1 Str[n] = Property value n ....

Create / Update free object property(ies)

Str[0] = Object name Str[1] = Property number Str[2] = Property name Str[3] = Property value number Str[4] = Property value 1 Str[n] = Property value n ....

Update server info including host, mode and level

server info

Mark a device as non exported in database

Device name

Mark one event channel as non exported in database

name of event channel or factory to unexport

none

Mark all devices belonging to a specified device server process as non exported

Device server name (executable/instance)

Reset the timing attribute values.

This command returns all the data needed by a device server process during its startup sequence. The aim of this command is to minimize database access during device server startup sequence.

Elt[0] = DS name (exec_name/inst_name), Elt[1] = Host name

All the data needed by the device server during its startup sequence. Precise list depend on the device server

Delete all attribute properties for the specified device attribute(s)

str[0] = device name Str[1]...str[n] = attribute name(s)

This is a very low level command. It executes the specified SELECT command on TANGO database and returns its result without filter.

MySql Select command

MySql Select command result - svalues : select results - lvalue[n] : =0 if svalue[n] is null else =1 (last lvalue -1) is number of rows, (last lvalue) is number of fields

Get a list of host:port for all database server defined in the control system

List of host:port with one element for each database server

Get the attribute alias from the attribute name. Returns one empty string if nothing found in database

The attribute name (dev_name/att_name)

The attribute alias name (or empty string)

Get the attribute name from the given alias. If the given alias is not found in database, returns an empty string

The attribute alias

The attribute name (dev_name/att_name)