Table 4 HP Insight CMU GUI features and their corresponding commands

HP Insight CMU GUI feature (right-click node selection)

HP Insight CMU management node command

 

 

Management Card Connection

/opt/cmu/bin/cmu_console

 

 

Shutdown

/opt/cmu/tools/halt.exp

 

 

Power Off

/opt/cmu/bin/cmu_power

 

 

Boot

/opt/cmu/tools/boot.exp

 

 

Reboot

/opt/cmu/tools/reboot.exp

 

 

Multiple Window Broadcast (Mgt Card)

/opt/cmu/bin/cmu_console

 

 

Backup (Capture Image)

/opt/cmu/bin/cmu_backup

 

 

Cloning (Deploy Image)

/opt/cmu/bin/cmu_clone

 

 

Autoinstall (kickstartautoyastpreseed)

/opt/cmu/bin/cmu_autoinstall_node

 

 

UpdateGet Nodes Static Info

/opt/cmu/tools/cmu_cn_install

 

 

UpdateInstall CMU Monitoring Client

/opt/cmu/tools/cmu_cn_install

 

 

InsightShow BIOS Settings

/opt/cmu/bin/cmu_firmware_mgmt

 

 

InsightShow BIOS Version

/opt/cmu/bin/cmu_firmware_mgmt

 

 

InsightUpgrade Firmware

/opt/cmu/bin/cmu_firmware_mgmt

 

 

7.1.3 Examples

To grant shutdown and reboot privileges to user 'jsmith' (note that ALL can be replaced with localhost or the hostname of the HP Insight CMU management node):

jsmith ALL = NOPASSWD: /opt/cmu/tools/halt.exp /opt/cmu/tools/reboot.exp

The /etc/sudoers file supports creating "command aliases" when you need to refer to a group of commands. For example, the following lines configure useful HP Insight CMU aliases by grouping the commands into three categories: power control, provisioning, and the rest of the features:

Cmnd_Alias CMU_POWER = /opt/cmu/tools/halt.exp /opt/cmu/bin/cmu_power /opt/cmu/tools/boot.exp /opt/cmu/tools/reboot.exp

Cmnd_Alias CMU_IMAGE = /opt/cmu/bin/cmu_backup /opt/cmu/bin/cmu_clone /opt/cmu/tools/cmu_autoinstall_node Cmnd_Alias CMU_ETC = /opt/cmu/bin/cmu_console /opt/cmu/tools/cmu_cn_install /opt/cmu/bin/cmu_firmware_mgmt

Now you can grant power control to user 'cjones' as long as he provides a password:

cjones ALL = CMU_POWERTo let user 'bstevens' control power and provisioning without a password:bstevens ALL = NOPASSWD: CMU_POWER CMU_IMAGE

To grant user 'sbarney' full HP Insight CMU control without a password (similar to the current root user capability in the HP Insight CMU GUI):

sbarney ALL = NOPASSWD: CMU_POWER CMU_IMAGE CMU_ETC

If a non-root user in the HP Insight CMU GUI tries to execute a command without sudo privileges, the sudo command prevents it from running and logs the incident.

7.2 HP Insight CMU diskless API

As of version 7.1, HP Insight CMU supports a diskless API. This diskless API provides hooks into the creation, management, and booting of diskless logical groups in HP Insight CMU. This diskless API enables the development and/or integration of different "diskless OS" implementations within HP Insight CMU.

114 Advanced topics