|
|
HP-UX Reference > Ddrd-runcmd(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEdrd-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 DESCRIPTIONThe 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. Optionsdrd runcmd recognizes the following options:
Operandsdrd runcmd recognizes the following operands:
Extended -x Optionsdrd runcmd recognizes the following -x (extended) options. If a default value exists, it is shown in bold.
Restrictions on Commands Executed by drd runcmdDRD supports read access of registered directory depots and directory depots on the booted system. It does not support serial depots and it does not support depots on the inactive system image. Depots cannot be listed or used as targets by drd runcmd. Thus, the commands swlist, swremove, swmodify, and swverify can be run by drd runcmd to view or modify the inactive system image, but not to view or modify depot contents. Syntax Restrictions for sw* CommandsSince depot manipulation is not supported under drd runcmd, any option that indicates a depot target is not supported. This includes the following:
Any double quotation marks (" ) or wild cards (* or ?) in the command line of the command to be run must be escaped to prevent inappropriate shell expansion or truncation of the command. Any file referenced by the command line, that is, the argument of the view command and any argument of any of the sw* command options, -c, -f, -P, -S, -X, -x logfile, or -x patch_filter must reside on the inactive system image and must be designated by the path it would have if the inactive image were booted. This is the same as its path relative to the mount point of a mounted inactive image. For example, the location that will be /var/opt/list when the image is booted is either /var/opt/drd/mnts/sysimage_001/var/opt/list or /var/opt/drd/mnts/sysimage_000/var/opt/list when the inactive image is mounted. If this file is an argument of one of the options listed above, it must be specified simply as /var/opt/list. This restriction also applies to the arguments of -x logfile and -x patch_filter that appear in a file that is the argument of the sw* -X option, and to paths that appear in a file that is the argument of an sw* -S option. Note that this restriction does NOT apply to local directory depots, which must reside on the booted system, and be designated by their location on the booted system. Note that you can have -x and -X options for both the drd runcmd (which would contain the runcmd's options) command and for the command you are running (which would contain that command's options). The following (rare) options of sw* commands are not supported by drd runcmd:
EXAMPLESTo see the software that is installed on the inactive system image (without any need to mount the image first): drd runcmd swlist To install PHCO_0001 from the depot /var/opt/patches, located on the system patchsvr: drd runcmd swinstall -s patchsvr:/var/opt/patches PHCO_0001 To run a preview installation of PHCO_0001 from the depot /var/opt/patches, located on the system patchsvr: drd runcmd swinstall -p -s patchsvr:/var/opt/patches PHCO_0001 To verify all software on the inactive system image: drd runcmd swverify \* To remove PHKL_9999 from the inactive system image: drd runcmd swremove PHKL_9999 \* To view the swagent log on the inactive system image: drd runcmd view /var/adm/sw/swagent.log To display all drd runcmd extended options: drd runcmd -x -? SEE ALSOview(1), drd(1M), drd-activate(1M), drd-clone(1M), drd-deactivate(1M), drd-mount(1M), drd-umount(1M), kctune(1M), swinstall(1M), swlist(1M), swmodify(1M), swremove(1M), swverify(1M) Dynamic Root Disk Administrator's Guide, available on the HP Technical Documentation web site at http://docs/hp.com/en/DRD. |
|