Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Virtual Partitions Administrator’s Guide > Chapter 11 vPars Flexible Administrative Capability

Example HP-UX Shell Scenario (vparadmin)

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Below describes examples that include (from the HP-UX shell):

  • a command successfully executed

  • a command not executed due to the flexible administrative capability feature

  • adding a virtual partition to the designated-admin virtual partition list

  • deleting a virtual partition from the designated-admin virtual partition list

  • listing the virtual partitions in the designated-admin virtual partition list

  • changing the flexible administrative capability password

  • determining whether you are in flexible administrative capability

For this section, let’s assume we have the virtual partitions winona1, winona2, and winona3.

A Command Successfully Executed

Because winona1 is in the designated-admin virtual partition list. We can execute a command from winona1 that alters winona2:

winona1# vparmodify -p winona2 -a cpu::1

Note that you will not see any flexible administrative capability messages when flexible administrative capability is allowed; you will only see flexible administrative capability messages when access is denied.

A Command Not Executed Due to the Flexible Administrative Capability Feature

However, because winona2 is not in the designated-admin virtual partition list. We cannot successfully execute a command from winona2 that alters another partition:

winona2# vparmodify -p winona1 -a cpu::1 vparmodify: Error: Only Designated-Admin virtual partitions can perform this operation on winona1. winona2# vparmodify -p winona3 -a cpu::1 vparmodify: Error: Only Designated-Admin virtual partitions can perform this operation on winona3.

Note that if the target partition is the local virtual partition, then the partition is only altering itself and not altering another partition, so this will be allowed.

winona2# vparmodify -p winona2 -a cpu::1

Adding a Virtual Partition to the Designated-admin Virtual Partition List

If we want the non-designated-admin virtual partition winona2 to be able to alter other virtual partitions, we need to add it to the designated-admin virtual partition list. This can be done from any virtual partition, but you will need to know the flexible administrative capability password.

winona2# vparadmin -a winona2 password: Virtual partition winona2 is added to the Designated-Admin virtual partitions list.

Deleting a Virtual Partition to the Designated-admin Virtual Partition List

If later we want to remove winona2 from the designated-admin virtual partition list, we can do this from any virtual partition:

winona1# vparadmin -d winona2 Password: Virtual partition winona2 is deleted from the Designated-Admin virtual partitions list.

Listing the Virtual Partitions in the Designated-admin Virtual Partition List

We can verify that winona2 has been removed from the designated-admin virtual partition list. This can be performed from any partition.

winona1# vparadmin -l ---------- Designated-Admin virtual partitions ---------- winona1

Only winona1 is displayed as a designated-admin virtual partition. Since winona2 (and winona3) are not in the list, they are not designated-admin virtual partitions.

Changing the Flexible Administrative Capability Password

We can change the flexible administrative capability password with the vparadmin -C command. Note that there is no -C option in the monadmin command, although you will be asked for a new password when you set the mode from OFF to ON.

The vparadmin -C command can be executed from any virtual partition; you will need to know the old password to be able to change the password.

winona2# vparadmin -C Old password: New password: Re-enter new password: The vPar flexible administrative password successfully changed.

Determining whether Flexible Administrative Capability is ON or OFF

When you are within a Unix shell, the easiest method to determine whether the flexible administrative capability mode is ON (enabled) is to use the vparadmin command.

When you are not in flexible administrative capability, you will receive the “disabled” message:

# vparadmin The virtual partition flexible administrative capability is disabled.

When you are in flexible administrative capability, you will receive the “enabled” message:

# vparadmin The virtual partition flexible administrative capability is enabled.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.