OpSystem
Operating systems for the C++ Replication API
Each piece of physical Hardware may contain one or more operating systems — for example, a single computer could have a virtual machine with Windows installed and another running Linux. Each OpSystem has one or more Volume(s).
Operating sytems for the C++ Replication API
Class
FCREPLIp
IP address representation of the hardware.
Getters
Getters are not applicable.
Inherited getters
IP address identification |
|
IP address |
|
IP address type |
|
OpSystem identification NoteThis is linked to the |
|
Setters
IP address |
|
IP address type |
|
Inherited setters
IP address identification |
|
Address |
|
Type |
|
OpSystem identification NoteThis is linked to the |
|
Class
FCREPLOpSystem
This class is below Hardware in the hierarchy. It contains a list of Volumes. It represents the operating system running on a physical machine or a virtual machine.
Getters
List of IP addresses for the OpSystem |
|
Inherited getters
OpSystem identification |
|
Hardware identification NoteThis is linked to the |
|
OpSystem name |
|
OpSystem hostname |
|
OpSystem IP list with count |
|
OpSystem type |
|
OpSystem edition |
|
OpSystem description |
|
OpSystem memory |
|
OpSystem disk space |
|
OpSystem CPU count |
|
OpSystem path is case sensitive |
|
OpSystem platform |
|
Setters
List of IP addresses for the OpSystem |
|
OpSystem name |
|
OpSystem hostname |
|
OpSystem type |
|
OpSystem edition |
|
OpSystem description |
|
Inherited setters
OpSystem identification |
|
Hardware identification NoteThis is linked to the |
|
OpSystem name |
|
OpSystem hostname |
|
OpSystem IP list with count |
|
OpSystem type |
|
OpSystem edition |
|
OpSystem description |
|
OpSystem memory |
|
OpSystem disk space |
|
OpSystem CPU count |
|
OpSystem set path case sensitive |
|
OpSystem platform |
|
Retrieve all the OpSystem entity objects for the given hardware identification.
Prototype
FCREPL_API int fcReplGetOSs(pFCREPLConn replConn, int hardwareID, ppFCREPLOpSystem *osList, int *osCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Hardware identification |
| OS entity list |
| Number of OS entities in the list |
Return
Error code
Retrieve the OS entity object by its name.
Prototype
FCREPL_API int fcReplGetOS(pFCREPLConn replConn, int hardwareID, const char *name, ppFCREPLOpSystem opSystem);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Hardware identification |
| Hardware name |
| OS entity retrieved |
Return
Error code
Retrieve the OS entity object by its hostname.
Prototype
FCREPL_API int fcReplGetOS(pFCREPLConn replConn, const char *hostName, ppFCREPLOpSystem opSystem);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Hostname |
| OS entity retrieved |
Return
Error code
Retrieve the OS entity object by its IP address.
Prototype
FCREPL_API int fcReplGetOSByIP(pFCREPLConn replConn, const char *ipAddress, ppFCREPLOpSystem opSystem);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| IP address |
| OS entity retrieved |
Return
Error code
Add an operating system entity into the database. If there already is an operating system with the given hardware ID/name, update the existing record.
Prototype
FCREPL_API int fcReplPersistOS(pFCREPLConn replConn, pFCREPLOpSystem opSystem);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| OS entity to be persisted |
Return
Error code
Delete the OS by its identification.
Prototype
FCREPL_API int fcReplRemoveOS(pFCREPLConn replConn, int osID, bool recursive);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| OS identification |
| Recursive flag |
Return
Error code