RTadmin base library

These functions are available to most of the RoadRunner admin scripts.

cartmenu

AIX. Used to display the cartridge type selection menu. only normaly called from
selectdev

children

Call with a single argument that is the PID of a current process, returns a list of the PID's of any child processes.

datasetmenu

Displays a menu of the curently defined and available Roadrunner Datasets.

freespace

Reports the number of kilobytes of free space in a filesystem, and its mount point.

If called with out an argument report s on the Primary Roadtech Filesystesm.

listattribs

AIX list the atrributes of the devices in the argument list.

listdev

AIX list Available devices that match the classes in the argument list.

If first arg is -All report devices that are defined as well as Available.

menu_header

Basic Menu header, used to display menus.

menu_header_r

Extended header used to display menus relating to RoadRunner.

nologin

Sets the AIX system wide nologin flag.

not_available

Dummy function used, when a requested menu item is not available.

phspacefree

Displays the free space in a volume group.

rotate

Rotates a set of logfiles.

rotate <base file> <set size>

moves <base file> to <base file>.0, <base file>.0 to <base file>.1
and so on.

rroktobackup

Sets the backup flag for Roadrunner. Calls rrsingle to check on processes.

Depending on the outcome it either sets the Environment variable BACKUP_FLAG="GO" or loops for user input.

Options available to user depend on the features selected in rr.var

Backup flag will be left for the calling program to cleanup if it is deamed safe to backup.

rrsingle

Used to check if runcobol or runvangui processes are active.

Note this is global accross all datasets on the server.

If no process were found returns status 0.

If processes found, returns status 1. Weth the Environment variables STOPLIST, and KILLLIST. Respectivly set to point to files containing a list of the process names that were checked, and the PID's of the processes found.

sortdev

Used to sort and reformat the output of listdev before calling listatttribs.

sortdev1 is a subfunction of sortdev, do not call directly.

selectdev

Selection menu to chouse a device for backup or restore.