System Management Commands
System management commands perform tasks on the node they are executing
on. Performance Manager provides the following system management scripts. To
execute one, from the main window's Execute menu
choose System Management, then one of the following scripts:
- CleanFilesystems
- This script cleans full filesystems of core files and other user-specified
unneeded files.
- FileModification
- This script determines if files have been modified or accessed.
- GrowthOfFiles
- This script determines if files are growing faster than a certain rate.
- MaintainFiles
- This script allows you to perform the following file management tasks:
- Move files to new filesystems
- Copy files to new filesystems or tapes
- Make symbolic links
- Delete files
- Change files' permissions
- Change files' user and group ownerships
- Undelete AdvFS files
- TabularArchiver
- This script allows you to capture all metric data on one or more nodes
without having to monitor the nodes. The archived data can be replayed using
Microsoft® Excel or any other graphing tool you create an interface for.
- SignalProcess
- This script sends the user-specified SIGNAL, in alphabetic or numeric form,
to one or more processes. This script allows you to set the following flags:
- Signal a process directly by entering a process ID.
- Display all processes for a user and choose which to signal.
- Display all processes containing a given string and choose which to signal.
- If only one process matches your entry when using the grep or
user flag, it will be signaled directly.
- DiskUsage
- This script creates a report displaying the disk usage of each user on the
file system specified. By default the display will be written to standard out.
This script allows you to set the following optional flags:
- Mail the usage report to a user.
- Write the report to a file.
- AddSwapFile
- This script allows you to add a UFS partition as additional swap space. The
script prompts you for a block special device (such as rz4c), creates an
additional swap entry in /etc/fstab, and starts swapping to the newly created
swap file.You will be asked to confirm items that alter your current system
configuration. The script assumes that the disk is configured into the kernel,
has a device special file, and that the in-memory disk label can be read.
- Renice
- This script alters the scheduling priority of one or more running
processes. It allows you to do the following:
- Set the scheduling priority.
- Alter the priority of a process ID.
- Alter the priority of all processes for a given user
- Alter the priority of all processes for a given process group ID.
- ProcessTree
- This script parses the output of the UNIX ps command to give
a tree of all processes with child processes tab indented
underneath their parents.
- filesize_thresh
- This script makes an entry in cron to
periodically check if a given file or directory has exceeded the specified
threshold size. When a threshold is exceeded, mail will be sent to the address
given with the -m flag and the cron entry will be removed
automatically.
- The interval is limited to: 1, 5,1 0, 15, 20, 30, 60 or time_of_day
(hh:mm) in 24 hour format due to cron entry restrictions.
- pm_fax
- This script faxes a message created from the threshold environmental
variables to the specified phone number. This script relies on a properly
configured and functioning version of HylaFAX; see
http://www.vix.com/hylafax/ for source distribution and build
information. The script was tested with hylafax-v3.0pl1. This script
relies on the hylafax environmental variables being set.
- pm_mail
- This script will mail a threshold message read from the threshold
environmental variables to the user specified on the command line.
If no user is specified the message will be mail to root.
- pm_pager
- This script will send a message based on the threshold
environmental variables to the specified pager phone number. This script
assumes that you have a properly configured and functioning version of HylaFAX;
see http://www.vix.com/hylafax/ for source distribution and build
information. The script was tested with hylafax-v3.0pl1. This script relies on
the hylafax environmental variables being set. The pager of HylaFAX does
not appear to work with the SkyPage service.
- pm_shutdown
- This script is a wrapper for the UNIX shutdown command that takes a
list of machines that will be shut down simultaneously. If a message is not
given, a default one will be included in the shutdown invocation.
- pm_broadcast
- This script is a wrapper for the UNIX rwall command. It
writes a message to all users logged on the node(s)
specified in the space separated node list.
Back to the User's Guide home page