Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
Asset Management Strip interface. More...
Classes | |
struct | BladeOverflowChangedEvent |
Event: Tag overflow. More... | |
struct | CompositionChangedEvent |
Event: Strip composition has changed. More... | |
struct | DeviceInfo |
Static (type, version) information for an AssetStrip. More... | |
struct | FirmwareUpdateStateChangedEvent |
Event: Firmware update on main strip was started or has finished. More... | |
struct | OrientationChangedEvent |
Event: Detected strip orientation has changed. More... | |
struct | RackUnitChangedEvent |
Event: A rack unit has changed. More... | |
struct | RackUnitInfo |
Infos for a single rack unit. More... | |
struct | StateChangedEvent |
Event: Asset strip state has changed. More... | |
struct | StripInfo |
Dynamic (may change with a connected strip) information for an AssetStrip. More... | |
struct | StripInfoChangedEvent |
Event: Asset strip dynamic information has changed. More... | |
struct | TagAddedEvent |
Event: A tag was added. More... | |
struct | TagChangeInfo |
Information describing a tag change. More... | |
struct | TagEvent |
Event: A tag was added or removed. More... | |
struct | TagInfo |
Information for a single tag. More... | |
struct | TagRemovedEvent |
Event: A tag was removed. More... | |
Public Types | |
enum | State { DISCONNECTED , FIRMWARE_UPDATE , UNSUPPORTED , AVAILABLE } |
AssetStrip state More... | |
enum | TagType { SINGLE , EXTENSION , NONE } |
Type of an asset tag connected to a rack unit. More... | |
enum | CascadeState { CASCADE_ACTIVE , CASCADE_FIRMWARE_UPDATE } |
For composite asset strips CascadeState shows additional information about the state of the complete cascade. More... | |
enum | FirmwareUpdateState { UPDATE_STARTED , UPDATE_SUCCESSFUL , UPDATE_FAILED } |
Enumeration: State of firmware update. More... | |
Public Member Functions | |
State | getState () |
Get the current state of the AssetStrip. More... | |
DeviceInfo | getDeviceInfo () |
Get static (hardware and firmware) information. More... | |
StripInfo | getStripInfo () |
Get dynamic (number of tags) information. More... | |
int | getRackUnitInfo (in int rackUnitNumber, out RackUnitInfo info) |
Get info with all settings of a rack unit at once. More... | |
vector< RackUnitInfo > | getAllRackUnitInfos () |
Get infos with settings for all rack units. More... | |
int | getTag (in int rackUnitNumber, in int slotNumber, out TagInfo tagInfo) |
Get the asset tag for a rack unit. More... | |
vector< TagInfo > | getAllTags () |
Get all asset tags of the strip. More... | |
vector< TagInfo > | getMainTags () |
Get all asset tags on the main strip. More... | |
int | getExtensionTags (in int rackUnitNumber, out vector< TagInfo > tags) |
Get all asset tags on an extension. More... | |
void | triggerPowercycle (in boolean hard) |
Trigger a powercycle of either the whole asset strip port or the LED part power supply on the asset strip. More... | |
int | programTagIDs (in vector< TagInfo > tagInfos) |
Program custom tag IDs. More... | |
FirmwareUpdateState | getFirmwareUpdateState () |
Retrieve state of firmware update on main strip. More... | |
Public Attributes | |
constant int | NO_ERROR = 0 |
Error codes. More... | |
constant int | ERR_INVALID_PARAM = 1 |
Invalid parameter for an operation. More... | |
constant int | ERR_NO_SUCH_OBJECT = 2 |
Requested object does not exist. More... | |
constant int | ERR_NOT_SUPPORTED = 3 |
Requested operation is not supported. More... | |
constant int | ERR_OPERATION_FAILED = 4 |
Operation did not succeed. More... | |
constant int | MAIN_STRIP_COLUMN = 0 |
Constants. More... | |
Asset Management Strip interface.
Definition at line 17 of file AssetStrip.idl.
For composite asset strips CascadeState shows additional information about the state of the complete cascade.
Enumerator | |
---|---|
CASCADE_ACTIVE | cascade is up and running |
CASCADE_FIRMWARE_UPDATE | a device in the cascade receives a firmware update |
Definition at line 54 of file AssetStrip.idl.
Enumeration: State of firmware update.
Enumerator | |
---|---|
UPDATE_STARTED | Update is running. |
UPDATE_SUCCESSFUL | Update was completed successfully. |
UPDATE_FAILED | Update has failed. |
Definition at line 158 of file AssetStrip.idl.
AssetStrip state
Definition at line 34 of file AssetStrip.idl.
Type of an asset tag connected to a rack unit.
Enumerator | |
---|---|
SINGLE | single asset tag connected to main strip or an extension |
EXTENSION | blade server extension, only possible on the main strip |
NONE | no asset tag connected to main strip or an extension |
Definition at line 44 of file AssetStrip.idl.
vector< RackUnitInfo > assetmgrmodel::AssetStrip::getAllRackUnitInfos | ( | ) |
Get infos with settings for all rack units.
vector< TagInfo > assetmgrmodel::AssetStrip::getAllTags | ( | ) |
Get all asset tags of the strip.
Please note that in case there is not a single tag connected to the strip the resulting list will be empty, only connected tag info structures are returned It is guaranteed that extensions on the main strip are returned before any tag on an extension itself.
DeviceInfo assetmgrmodel::AssetStrip::getDeviceInfo | ( | ) |
Get static (hardware and firmware) information.
int assetmgrmodel::AssetStrip::getExtensionTags | ( | in int | rackUnitNumber, |
out vector< TagInfo > | tags | ||
) |
Get all asset tags on an extension.
Gets all tags on a single extension for a certain rack unit. List will be empty if there are no tags connected
rackUnitNumber | rack unit index to get the extension tags for, range 0..rackUnitCount-1 |
tags | Result: list asset tag infos |
FirmwareUpdateState assetmgrmodel::AssetStrip::getFirmwareUpdateState | ( | ) |
Retrieve state of firmware update on main strip.
vector< TagInfo > assetmgrmodel::AssetStrip::getMainTags | ( | ) |
Get all asset tags on the main strip.
Same as getAllTags, but only consider tags connected to the main asset strip and not on any connected extension. Extensions on the main strip themselves are returned.
int assetmgrmodel::AssetStrip::getRackUnitInfo | ( | in int | rackUnitNumber, |
out RackUnitInfo | info | ||
) |
Get info with all settings of a rack unit at once.
rackUnitNumber | rack unit index to get the info for, range 0..rackUnitCount-1 |
info | Result: info for this rack unit |
State assetmgrmodel::AssetStrip::getState | ( | ) |
Get the current state of the AssetStrip.
StripInfo assetmgrmodel::AssetStrip::getStripInfo | ( | ) |
Get dynamic (number of tags) information.
int assetmgrmodel::AssetStrip::getTag | ( | in int | rackUnitNumber, |
in int | slotNumber, | ||
out TagInfo | tagInfo | ||
) |
Get the asset tag for a rack unit.
rackUnitNumber | rack unit index to read the asset tag for, range 0..rackUnitCount-1 |
slotNumber | slot to read the asset tag for, 0 for the main strip, >0 for blades |
tagInfo | Result: asset tag information |
int assetmgrmodel::AssetStrip::programTagIDs | ( | in vector< TagInfo > | tagInfos | ) |
Program custom tag IDs.
Asset tags of type AMT-P may be programmed by user (custom ID). This method takes a list of (rack unit index, slot number, id) tuples that determine which connected tag should be programmed with which ID. TagInfo::rawId specifies the ID. An empty string erases the current custom ID which brings back the original 1-wire ID. Set TagInfo::slotNumber to 0 for tags on main strip and > 0 for blades. TagInfo::familyDesc and TagInfo::programmable are ignored.
tagInfos | vector of tag information that will be programmed |
void assetmgrmodel::AssetStrip::triggerPowercycle | ( | in boolean | hard | ) |
Trigger a powercycle of either the whole asset strip port or the LED part power supply on the asset strip.
Note: This method is not supported by any supported AMS hardware.
hard | true=whole port, false=LEDs only |
constant int assetmgrmodel::AssetStrip::ERR_INVALID_PARAM = 1 |
Invalid parameter for an operation.
Definition at line 23 of file AssetStrip.idl.
constant int assetmgrmodel::AssetStrip::ERR_NO_SUCH_OBJECT = 2 |
Requested object does not exist.
Definition at line 24 of file AssetStrip.idl.
constant int assetmgrmodel::AssetStrip::ERR_NOT_SUPPORTED = 3 |
Requested operation is not supported.
Definition at line 25 of file AssetStrip.idl.
constant int assetmgrmodel::AssetStrip::ERR_OPERATION_FAILED = 4 |
Operation did not succeed.
Definition at line 26 of file AssetStrip.idl.
constant int assetmgrmodel::AssetStrip::MAIN_STRIP_COLUMN = 0 |
Constants.
Definition at line 31 of file AssetStrip.idl.
constant int assetmgrmodel::AssetStrip::NO_ERROR = 0 |