this command often precedes logic that modifies the

 

 

process table. Because modifications to the process

 

 

table are usually not safe, the presence of ps in a control

 

 

script is a good indicator that the script needs closer

 

 

examination to determine if the surrounding logic is safe.

pwd

Yes

--

 

rm

Yes

--

 

rmdir

Yes

--

 

sed

Yes

--

 

swlist, swmodify &

Yes

--

 

swverify

 

 

 

swremove

Varies

It is safe to swremove software that has is_drd_safe

 

 

attribute set. It is safe to execute swremove in the

 

 

update_prep script. It is safe to execute swremove –

 

 

x run_scripts=false.

tail

Yes

--

 

umount

Yes

Although unmount is DRD-safe, it should not be used in

 

 

SD control scripts.

uname

Varies

Whether or not the use of uname is DRD-safe depends

 

 

on which options are sued with the command. As such

 

 

the control script needs to be examined to determine if it

 

 

is using uname in a safe manner.

 

 

Use of the following options is DRD-safe:

 

 

Machine identification/node name (-i)

 

 

License level (-l)

 

 

Machine hardware and model names (-m)

 

 

Node name (-n)

 

 

Name of operating system (-s)

 

 

Use of the following fields is NOT DRD-safe:

 

 

Release level (-r)

 

 

Version level (-v)

 

 

Changing of node name (-S)

 

 

All (-a)

wc

Yes

--

 

what

Yes

--

 

© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

5992-4030, May 2008