beautypg.com

3 examples, 2 hp insight cmu diskless api – HP Insight Cluster Management Utility User Manual

Page 141

background image

Table 5 HP Insight CMU GUI features and their corresponding commands

HP Insight CMU management node command

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

/opt/cmu/bin/cmu_console

Management Card Connection

/opt/cmu/tools/halt.exp

Shutdown

/opt/cmu/bin/cmu_power

Power Off

/opt/cmu/tools/boot.exp

Boot

/opt/cmu/tools/reboot.exp

Reboot

/opt/cmu/bin/cmu_console

Multiple Window Broadcast (Mgt Card)

/opt/cmu/bin/cmu_backup

Backup (Capture Image)

/opt/cmu/bin/cmu_clone

Cloning (Deploy Image)

/opt/cmu/bin/cmu_autoinstall_node

Autoinstall (kickstart|autoyast|preseed)

/opt/cmu/tools/cmu_cn_install

Update

→Get Nodes Static Info

/opt/cmu/tools/cmu_cn_install

Update

→Install CMU Monitoring Client

/opt/cmu/bin/cmu_firmware_mgmt

Insight

→Show BIOS Settings

/opt/cmu/bin/cmu_firmware_mgmt

Insight

→Show BIOS Version

/opt/cmu/bin/cmu_firmware_mgmt

Insight

→Upgrade Firmware

8.1.3 Examples

To grant shutdown and reboot privileges to user 'jsmith' (note that ALL can be replaced with
localhost

or the host name 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" 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_POWER

To 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.

8.2 HP Insight CMU diskless API

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.

8.2 HP Insight CMU diskless API

141