Server workflows for HP Matrix Operating Environment

25
Figure 10: Server power ON workflow: subflow SSH command (“power on” for ProLiant)
The OO workflow subflow for PowerOn invokes the appropriate iLO command via SSH.
Figure 10 shows “power on” being used for ProLiant iLO2 servers; Integrity servers use the “PC –on” command.
Extensibility:
1. Understand the Power ON OO workflow
2. Add a new check in the subflow for the corresponding server type; the Adding a new server type section
summarizes the changes for a new server type across the workflows.
3. The reference implementation uses OO’s internal SSH to invoke the command.
4. Alternatively, create a new IAction class (the OO documentation provides details on developing IAction
extensions).
Server power OFF
Description: The Server PowerOFF workflow (shown in Figure 11) receives the UUID and model of the server
(through ESA) and invokes a Power OFF operation through the server’s remote management interface (iLO2).
Implementation:
1. The workflow obtains the server’s remote management interface IP address from the uuidhostMapper.xml file.
2. Based on the server model, the workflow obtains the remote management user credentials.
3. Using the IP address and credentials, the workflow connects to the remote management interface using SSH and
executes the appropriate command. For example, to power off a ProLiant server, the “power off” command is
used, and to power off an Integrity server, the “PC –graceful” command is used.
4. Based on the command response, the workflow updates the power status in the serverinfo.xml file (PowerOn
status set to false).
5. Return success or failure as appropriate.
Figure 11 shows the main Server Power OFF workflow, while Figure 12 shows the subflow to execute the power OFF
operation, and Figure 13 shows the SSH command invoked (“power off” for ProLiant servers).