Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Interoperating Between User Environments
Open System Services Porting Guide520573-006
4-23
Using OSS Commands to Manage Guardian Objects
Services User’s Guide provides examples of using the run utility and descriptions of
the run options.
Using OSS Commands to Manage Guardian
Objects
You can use some OSS utilities to manage Guardian processes and files as well as to
manage OSS objects. To manage Guardian objects, frequently requires that you use
the -W parameter, described following.
Accessing Guardian files is made possible by the /G and /E directories. This
subsection describes some of the more frequently used interoperability features. For a
detailed discussion of the OSS utilities described in this subsection, refer to the Open
System Services User’s Guide and Open System Services Shell and Utilities
Reference Manual.
Managing Guardian Processes From the OSS Shell
The OSS ps utility displays information on OSS processes. Additionally, you can use
the ps utility to display information on Guardian processes by using the -W parameter.
The following shows different ways of using the ps utility for Guardian processes:
ps -W all displays status of all Guardian processes.
ps -W name=/G/SVR1 displays status of Guardian process $SVR1.
ps -W cpu=5 displays status of all processes running in processor 5.
The OSS kill utility can be used to terminate Guardian and OSS processes. The
kill utility uses a signal named GUARDIAN for terminating Guardian processes.
The syntax to specify a Guardian process in a kill utility is /G/processname or
/G/cpu,pin. The following examples show each syntax. The first example terminates
the Guardian process named $SVR1; the second example terminates the Guardian
process 5,48:
kill -s GUARDIAN /G/SVR1
The equivalent Guardian command for this example is STOP $SVR1.
kill -s GUARDIAN /G/5,48
The equivalent Guardian command for this example is STOP 5,48.
Manipulating Guardian Files From the OSS Shell
This subsection provides information on accessing Guardian files and performing other
file operations such as moving, copying, listing, and changing attributes.