Open System Services Management and Operations Guide (G06.29+, H06.07+)

Managing With the Shell
Open System Services Management and Operations Guide527191-005
9-8
Monitoring the OSS Environment With the Shell
The directory /usr/EUC/man would contain Japanese translations of reference pages
in its subdirectories. To allow access to the translated reference pages first and then
the versions provided by HP, you would specify:
setenv MANPATH /usr/EUC/man:/usr/share/man
Monitoring the OSS Environment With the
Shell
Potential problems that you might want to monitor using the shell include:
Slow performance
Overuse of resources
The examples given in this subsection are not exhaustive. You might also want to
remove files from directories that expand automatically, as discussed in Controlling the
Growth of Directories on page 9-8.
Slow Performance
Slow performance might be the result of many processes left running that are no
longer being used. One way to check is to enter an OSS command such as:
ps | sort -nr +2
This command lists the output of the ps command in reverse order by the TIME field.
The processes that have run for the longest time are at the top of the list. You can then
decide whether to remind the users to stop their processes, let things be, or terminate
the offending processes with the OSS shell kill command.
Overuse of Resources
Large files that haven’t been accessed in a long time might waste resources and
prevent users from being able to create files. You might want to find users who have
such files in their directories and discuss the situation with them.
You can list the owners of large files using an OSS shell command such as the
following, which lists detailed information (including the owners) about files in /usr
that are larger than 1000 kilobytes:
find /usr -size +1000K | xargs ls -l
Open System Services also provides the disk usage utilities du and df.
Controlling the Growth of Directories
The vi text editor and other programs produce temporary files that you might later
want to remove. You might also want to remove large files that have not been
accessed in a long time. This subsection describes how to remove such files.