Raritan PX2/PX3 JSON-RPC API
|
Asset Management Strip interface. More...
import"AssetStrip.idl";
Classes | |
struct | DeviceInfo |
Static (type, version) information for an AssetStrip. More... | |
struct | RackUnitInfo |
Infos for a single rack unit. More... | |
struct | StripInfo |
Dynamic (may change with a connected strip) information for an AssetStrip. More... | |
struct | TagChangeInfo |
Information describing a tag change. More... | |
struct | TagInfo |
Information for a single tag. More... | |
Public Types | |
enum | State { DISCONNECTED, FIRMWARE_UPDATE, UNSUPPORTED, AVAILABLE } |
AssetStrip state More... | |
enum | StripType { SIMPLE, COMPOSITE } |
Type of the connected asset strip. 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. More... | |
Public Attributes | |
constant int | NO_ERROR = 0 |
Error codes. More... | |
constant int | ERR_INVALID_PARAM = 1 |
Invalid parameter for an operation. | |
constant int | ERR_NO_SUCH_OBJECT = 2 |
Requested object does not exist. | |
constant int | ERR_NOT_SUPPORTED = 3 |
Requested operation is not supported. | |
constant int | ERR_OPERATION_FAILED = 4 |
Operation did not succeed. | |
constant int | MAIN_STRIP_COLUMN = 0 |
Constants. | |
valueobject | StripInfoChangedEvent: idl::Event { StripInfo oldInfo |
Event: Asset strip dynamic information has changed. More... | |
StripInfo | newInfo |
Information after change. | |
valueobject | StateChangedEvent: idl::Event { State oldState |
Event: Asset strip state has changed. More... | |
State | newState |
State after change. | |
DeviceInfo | deviceInfo |
Information about connected strip, only valid if newState is AVAILABLE. | |
valueobject | RackUnitChangedEvent: event::UserEvent { int rackUnitNumber |
Event: A rack unit has changed. More... | |
RackUnitInfo | rackUnit |
New rack unit information. | |
valueobject | TagEvent: idl::Event { vector<TagChangeInfo> tags |
Event: A tag was added or removed. More... | |
vector< TagInfo > | allTags |
New list of detected tags after change. | |
valueobject | TagAddedEvent: TagEvent { } |
Event: A tag was added. | |
valueobject | TagRemovedEvent: TagEvent { } |
Event: A tag was removed. | |
valueobject | FirmwareUpdateStateChangedEvent: idl::Event { FirmwareUpdateState state |
Event: Firmware update was started or has finished. More... | |
valueobject | BladeOverflowChangedEvent: idl::Event { boolean overflow |
Event: Tag overflow. More... | |
valueobject | OrientationChangedEvent: idl::Event { AssetStripConfig_1_0_1::Orientation oldOrientation |
Event: Detected strip orientation has changed. More... | |
AssetStripConfig_1_0_1::Orientation | newOrientation |
Strip orientation after change. | |
valueobject | CompositionChangedEvent: idl::Event { int oldComponentCount |
Event: Strip composition has changed. More... | |
int | newComponentCount |
Component count after change. | |
Asset Management Strip interface.
vector<RackUnitInfo> assetmgrmodel::AssetStrip_2_0_5::getAllRackUnitInfos | ( | ) |
Get infos with settings for all rack units.
vector<TagInfo> assetmgrmodel::AssetStrip_2_0_5::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_2_0_5::getDeviceInfo | ( | ) |
Get static (hardware and firmware) information.
int assetmgrmodel::AssetStrip_2_0_5::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 to get the extension tags for, range 0..rackUnitCount-1 |
tags | Result: list asset tag infos |
FirmwareUpdateState assetmgrmodel::AssetStrip_2_0_5::getFirmwareUpdateState | ( | ) |
Retrieve state of firmware update.
vector<TagInfo> assetmgrmodel::AssetStrip_2_0_5::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_2_0_5::getRackUnitInfo | ( | in int | rackUnitNumber, |
out RackUnitInfo | info | ||
) |
Get info with all settings of a rack unit at once.
rackUnitNumber | rack unit to get the info for, range 0..rackUnitCount-1 |
info | Result: info for this rack unit |
State assetmgrmodel::AssetStrip_2_0_5::getState | ( | ) |
Get the current state of the AssetStrip.
StripInfo assetmgrmodel::AssetStrip_2_0_5::getStripInfo | ( | ) |
Get dynamic (number of tags) information.
int assetmgrmodel::AssetStrip_2_0_5::getTag | ( | in int | rackUnitNumber, |
in int | slotNumber, | ||
out TagInfo | tagInfo | ||
) |
Get the asset tag for a rack unit.
rackUnitNumber | rack unit 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_2_0_5::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, 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_2_0_5::triggerPowercycle | ( | in boolean | hard | ) |
Trigger a powercycle of either the whole asset strip port or the LED part power supply on the asset strip.
hard | true=whole port, false=LEDs only |
valueobject assetmgrmodel::AssetStrip_2_0_5::BladeOverflowChangedEvent |
Event: Tag overflow.
Whether the strip is out of space for new blade extension tags
valueobject assetmgrmodel::AssetStrip_2_0_5::CompositionChangedEvent |
Event: Strip composition has changed.
Component count before change
valueobject assetmgrmodel::AssetStrip_2_0_5::FirmwareUpdateStateChangedEvent |
Event: Firmware update was started or has finished.
Update state
constant int assetmgrmodel::AssetStrip_2_0_5::NO_ERROR = 0 |
Error codes.
Operation successful, no error
valueobject assetmgrmodel::AssetStrip_2_0_5::OrientationChangedEvent |
Event: Detected strip orientation has changed.
Strip orientation before change
valueobject assetmgrmodel::AssetStrip_2_0_5::RackUnitChangedEvent |
Event: A rack unit has changed.
Affected rack unit position
valueobject assetmgrmodel::AssetStrip_2_0_5::StateChangedEvent |
Event: Asset strip state has changed.
State before change
valueobject assetmgrmodel::AssetStrip_2_0_5::StripInfoChangedEvent |
Event: Asset strip dynamic information has changed.
Information before change
valueobject assetmgrmodel::AssetStrip_2_0_5::TagEvent |
Event: A tag was added or removed.
Affected tags