HP Dynamic Root Disk (DRD) manual Drd runcmd command, Verbosity=3 Default

Page 60

-x verbosity=3 (Default.)

Specifies the level of stdout/stderr verboseness. Replace 3 with the following values:

0Only ERRORS and the starting/ending BANNER messages.

1Adds WARNING messages.

2Adds NOTE messages.

3(Default) Adds INFO messages (informational messages preceded by the * character.)

4Adds verbose INFO messages.

5Adds additional detailed INFO messages.

A.1.6 The drd runcmd command

The drd-runcmd(1M) command runs a DRD-safecommand, which is specified by command <args>, on the cloned (inactive) system image.

The drd runcmd command runs the designated command on the inactive system image. Several commands, known as DRD-safe commands, can be executed with drd runcmd . See Maintaining Software on the Cloned Image for more information about the DRD-safe commands.

The drd runcmd command mounts the inactive system image if it has not been mounted. Generally, when drd runcmd completes, it unmounts the inactive system image. However, if the inactive system image was mounted before the command, drd runcmd leaves it mounted after completion of drd runcmd.

The drd runcmd command returns the following error codes:

0Success

1 Error

2 Warning

The drd runcmd operation involves two commands: drd runcmd and the HP-UX command that is its argument, but it returns only a single error code. The code reflects the worst result of the two commands. If both commands are successful, the error code is 0. If either command has an error or warning result, the error code is 1 or 2. To determine which command issued the error or warning, examine the messages.

For additional information, see the drd-runcmd(1M) manpage (man drd-runcmd) The drd runcmd command syntax is:

drd runcmd [-?] [-q] [-v] [-x extended option=value] [-x -?] [-X option_file] command <args>

Options

-?

Displays the usage message for a DRD command. This option cannot be used with other options.

-q

Decreases the verbosity level by one each time it is specified. For example, -qqwill reduce the verbosity from the default value of 4 to 2. If both -x verbosity=5 and -qqqare included on the command line, the effective verbosity is 2. The minimum verbosity level is 0. (See also the -x verbosity option.)

-v

Increases the verbosity level by one each time it is specified. For example, -vwill increase the effective verbosity from the default value of 4 to 5. If both -x verbosity=1 and -vvare included on the command line, the effective verbosity is 3. The maximum verbosity level is 5. (See also the -x verbosity option.)

-xextended_option=value

Sets the extended option to a value.

-x -?

Displays the list of possible -x(extended) options.

-Xoption_file

Gets the extended options from a file.

60 DRD commands

Image 60
Contents Dynamic Root Disk A.3.10.* Administrators Guide Document Part Number DRD Version Supported Operating Systems Table of Contents Troubleshooting DRD Support and other resources DRD commandsRehosting and unrehosting systems Glossary IndexList of Figures List of Examples Commands overview About Dynamic Root DiskConceptual overview TerminologyDownloading and installing Dynamic Root Disk Cloning the active system image Active system imageLocating disks Locating disks on HP-UX 11i v2 systemsLocating disks on HP-UX 11i v3 Integrity systems # /usr/sbin/ioscan -fnkC disk# /usr/sbin/ioscan -m dsf Using other utilities to determine disk availability Using DRD for limited disk availability checksChoosing a target disk Using drd clone to analyze disk size Creating the cloneCloning the active system image Example 2-7 The drd clone command output Success ErrorExample 2-8 The drd clone command output for SAN disk Adding or removing a diskDRD-Safe commands and Packages Swinstall Swremove Swlist Swmodify Swverify SwjobUpdating and maintaining software on the clone Kctune Update-ux View Kcmodule Kconfig Mkkernel Swm job Updating and managing patches with drd runcmdDRD-Safe patches and the drdunsafepatchlist file Patches with special installation instructions Updating and managing products with drd runcmdSpecial considerations for firmware patches Viewing logs Accessing the inactive system image Mounting the inactive system imagePerforming administrative tasks on the inactive system image Enter the patches into a file such as Compare vxconfigbackup with the clone copy Unmounting the inactive system imageUnmounting the inactive system image Page Overview Quick start-basic synchronizationDrd sync command Determining the list of files in the booted volume groupTrimming the list of files to be synchronized Files that have changed on the clone Copying the files to the inactive clone image Drd sync system shutdown script Page Activating the inactive system image Preparing the inactive system image to activate later# /opt/drd/bin/drd activate # /usr/bin/more /stand/bootconf l /dev/dsk/c2t0d0s2 Undoing activation of the inactive system imageActivating the inactive system image Undoing activation of the inactive system image Page Rehosting and unrehosting systems Rehosting overviewRehosting examples Rehosting a mirrored image Example 7-1 Provisioning a new systemUnrehosting overview # rm /var/opt/drd/registry/registry.xmlPage Troubleshooting DRD Page Support and other resources Contacting HPNew and changed information in this edition Locating this guideRelated information Typographic conventions Find1 Page DRD commands DRD command syntaxDrd activate command HAalternatebootdisk=blockdevicespecialfile Ignoreunmountedfs=truefalseLogfile=/var/opt/drd/drd.log Logverbosity=4Drd clone command Reboot=truefalseVerbosity=3 Default Copyautofile optionTtargetdevicefile Copyautofile=truefalseblockdevicespecialfileEnforcedsa=truefalse Drd deactivate command Drd mount command Example A-1 File system mount points Drd rehost command Devicespecialfile -v-xextended option=value -x-?-Xoptionfile Extended options Drd runcmd command Extended options Drd status command Alternatebootdisk=blockdevicespecialfile Drd sync command Usr/sbin/swlist -l file, orDrd umount command Excludelist=Alternatebootdisk=blockdevicespecialfile Drd unrehost command Fsysteminformationfile Mirrordisk=blockdevicespecialfile Page Booted system GlossarySystem image Index Idisk partition, 10, 11 inactive system file system