Each site may contain one or more physical devices, including computers, tablets, phones, and so forth. These devices are referred to as hardware. Each instance of hardware may contain one or more OpSystems.
Class
FCREPLHardware
This class is below Site in the hierarchy. It contains a list of OpSystems present on the hardware. It represents the physical computer.
Getters
List of MAC address for the hardware |
|
Inherited getters
Hardware identification |
|
Site identification NoteIt is linked to the |
|
Hardware name |
|
MAC list with count |
|
Hardware description |
|
Hardware memory |
|
Hardware disk space |
|
Hardware number of CPUs |
|
Setters
List of MAC addresses for the hardware |
|
Hardware name |
|
Hardware description |
|
Inherited setters
Hardware identification |
|
Hardware name |
|
Hardware MAC list with count |
|
Hardware description |
|
Site identification NoteThis is linked to the |
|
Hardware memory |
|
Hardware disk space |
|
Hardware number of CPUs |
|
Class
FCREPLMac
This class is the MAC address representation of the Hardware.
Inherited getters
MAC address |
|
MAC type |
|
Hardware identification NoteThis is linked to |
|
Setters
MAC address |
|
MAC type |
|
Inherited setters
Address |
|
Type |
|
Hardware identification NoteThis is linked to |
|
Retrieve all the hardware entity objects for the given site identification.
Prototype
FCREPL_API int fcReplGetHardwares(pFCREPLConn replConn, int siteID, ppFCREPLHardware *hardwareList, int *hardwareCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Site identification |
| Hardware entity list |
| Number of hardware entities in the list |
Return
Error code
Retrieve the hardware entity object by its name.
Prototype
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Site identification |
| Hardware name |
| Hardware entity retrieved |
Return
Error code
Retrieve the hardware entity object by its MAC address.
Prototype
FCREPL_API int fcReplGetHardware(pFCREPLConn replConn, const char *mac, ppFCREPLHardware hardware);
Parameters
Parameter | Description |
---|---|
replConn [IN] | Replication connection handle |
mac [IN] | MAC address |
hardware [OUT] | Hardware entity retrieved |
Return
Error code
Add a hardware entity into the database or update the existing record if there is already hardware with the given siteID/name.
Prototype
FCREPL_API int fcReplPersistHardware(pFCREPLConn replConn, pFCREPLHardware hardware);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Hardware entity to be persisted |
Return
Error code
Delete the hardware by its identification.
Prototype
FCREPL_API int fcReplRemoveHardware(pFCREPLConn replConn, int hardwareID, bool recursive);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Hardware identification |
| Recursive flag |
Return
Error code