HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)

d
drd-runcmd(1M) drd-runcmd(1M)
NAME
drd-runcmd: drd - runcmd mode runs a command on the inactive system image that will not make any
changes to the booted system, the kernel, or the process space
SYNOPSIS
drd runcmd
[-?][-q]... [-v]... [-x option
=value]... [-x -?][-X option_file] cmd [args]
DESCRIPTION
The
drd runcmd command runs a command on the inactive system image that will not make any
changes to the booted system, the kernel, or the process space.
The drd runcmd command enables an administrator to make changes to the inactive system image
without incurring any disruption to the currently booted system. This means that not all commands can
safely be executed by the drd runcmd operation. For example, commands that start or stop daemons or
change dynamic kernel tunables are disruptive to current processes and must be prevented by the
drd
runcmd
operation.
Commands which are not disruptive to the booted system and which perform appropriate actions on the
inactive system are known as DRD-Safe. A short list of commands is recognized by the drd runcmd
operation to be DRD-Safe. An attempt to use DRD to run commands that are not DRD-Safe will terminate
with an ERROR return code without executing the command. The DRD-Safe commands are listed in the
Operands section below in the cmd column.
Options
drd runcmd recognizes the following options:
-? Displays the usage message.
-p Sets preview mode. See also -x preview, in the Extended -x Options section below.
-q Decreases the verbosity level by one each time it is specified. For the interaction with
-x
verbosity
, see the Extended -x Options section below.
-v Increases the verbosity level by one each time it is specified. For the interaction with
-x
verbosity
, see the Extended -x Options section below.
-x -? Displays the list of possible -x (extended) options.
-x option=value
Sets the extended option to a value. See the Extended -x Options section below.
-X option_file
Gets the extended options from a file. See drd(1M) for an explanation of the format and an
example of an option file.
Operands
drd runcmd recognizes the following operands:
cmd [args] Specifies the DRD-Safe command to be run. The rest of the command line (args)is
passed as arguments of cmd. The value of cmd must be one of the following:
cmd Description
kctune Change or display kernel tunables.
Install software products and patches
that are DRD safe.
swinstall
swjob Display job information
Display information about software
products and patches.
swlist
swmodify Modify software products and patches.
swremove Remove software products and patches.
swverify Verify software products and patches.
view Read files on the inactive image.
Extended -x Options
drd runcmd recognizes the following -x (extended) options. If a default value exists, it is shown in
bold.
HP-UX 11i Version 2: December 2007 Update 1 Hewlett-Packard Company 211