Development status:
Released,
Release: release-2.0
Information status: Updated
Repository:
http://svn.code.sf.net/p/tango-ds/code/DeviceClasses/SoftwareSystem/HostInfo
Contact:
Class Description
The class collects some hardware information about the host on which it's running.
Families: Miscellaneous
Key words:
Platform: Unix Like
Language: Cpp
License: GPL
Contact:
Hardware
Manufacturer: none
Bus: Not Applicable
Class interface
Attributes:
Name | Description |
---|---|
kernelVersionScalar: DevString | Version of the kernel running on the host followed by the Operating System architecture (32 or 64bits). |
cpuArchitectureScalar: DevString | CPU architecture (32 or 64 bits) |
osDistributionScalar: DevString | Operating System distribution. This attribute is based on the /etc/issue file of standard Linux distribution. This attribute uses the property osSupported. It tries to find the strings defined in osUpported in the /etc/issue file. If one of the items is found, the release is concatenated. Otherwise, the attribute value is Unsupported. It is very important to check the spelling of the property items compared to the /etc/issue file. |
hostTypeScalar: DevString | Check if the host is a VME. Otherwise, it is set to Rackable PC. |
netInterfaceScalar: DevString | Network Interface. Gives the interface name with the corresponding IP Address and MAC Address. |
upTimeScalar: DevString | Time from last boot up. |
pciDevicesScalar: DevString | List of PCI devices plugged on the host. For each device, it compares if it is a motherboard device as INTEL device or BROADCOM ethernet controller. The comparison is done by Vendor ID. The Vendor ID of motherboard device is defined as macro in the code. If a motherboard device is found, it is ignored. If the PCI device is not a motherboard device, it is compared with the PCI devices defined in the property pciDeviceList. If the comparison failed, the PCI device is unknown. |
Commands:
Name | Description |
---|---|
StateInput: DevVoid Output: State Device state |
This command gets the device state (stored in its device_state data member) and returns it to the caller. |
StatusInput: DevVoid Output: ConstDevString Device status |
This command gets the device status (stored in its device_status data member) and returns it to the caller. |
saveStatusInput: DevVoid Output: DevVoid |
Save status in database. It puts a device property called LastStatus containing the status value. The status contains all attributes value. The property is overwritten when calling this command. |
Pipes:
Properties:
Name | Description |
---|---|
pciDeviceListArray of DevString | This property gives the list of PCI devices known (IEEE1394, Serial Communication ...) The DS scan the PCI bus and compare VendorID and DeviceID with those listed in the property. All Intel PCI devices are ignored. Other ``motherboard`` PCI Devices as Broadcom Ethernet device can be ignored. Add it in the code ( read_pciDevices() method ) The syntax of a PCI device item is: vendorIDdeviceID description Ex: 1093c801 National Instruments : PCI-GPIB |
osSupportedArray of DevString | This property defined the list of Operating System on which this DS will run. !!! Be Careful !!! : The method setting the OS name is based on the /etc/issue file. So be sure the items of the property are the same as the OS name found in /etc/issue. For instance, if the file /etc/issue gives ``Debian GNU/Linux 7.0 (final)`` don`t put ``debian`` in the property array, but ``Debian``. |
pciDeviceListArray of DevString | This property gives the list of PCI devices known (IEEE1394, Serial Communication ...) The DS scan the PCI bus and compare VendorID and DeviceID with those listed in the property. All Intel PCI devices are ignored. Other ``motherboard`` PCI Devices as Broadcom Ethernet device can be ignored. Add it in the code ( read_pciDevices() method ). The syntax of a PCI device item is: vendorIDdeviceID description Ex: 1093c801 National Instruments : PCI-GPIB |
osSupportedArray of DevString | This property defined the list of Operating System on which this DS will run. !!! Be Careful !!! : The method setting the OS name is based on the /etc/issue file. So be sure the items of the property are the same as the OS name found in /etc/issue. For instance, if the file /etc/issue gives ``Debian GNU/Linux 7.0 (final)`` don`t put ``debian`` in the property array, but ``Debian`` |
Please log in to comment.