rr85 Scripts

These comprise a set programs written mainly in Korn shell script, to aid in administering and useing Roadrunner and related software.

Backups, This is important. All scripts that may change or remove files, check for the existance of a backup flag, either global or DATAPATH spcific, when invoked.

All of the standard scripts will abort gracefully if a flag is found on any of these checks. No files shall, under any circumstances, be altered within the file tree of any DATASET, unless the corresponding flags for the DATAPATH, have been checked within the preceding second.

Is there more than 1 version?

Yes there have been a number of releses, thease can be identified by the code displayed at the top left of the menu screens. The code is based on the revision date of the script rr85.sh.

Do I have the right version for by system?

This depends on the version of both the operating system and roadrunner.

From mid 1999 there is one set of scripts and admin programs that supports the following Operating systems.

  • AIX 3.1
  • AIX 3.2.5
  • AIX 4.1
  • AIX 4.2
  • AIX 4.3
  • UNIX System V

The version you are running can be distinguished by the date code displayed on the top left of the opening screen.

Most customers should be running scripts, dated 2001 or 2002.

Manual

Manual page and Loading instructions

New Scripts for 2003

These have been extensively rewriten, and include support for AIX 5.1, they are not yet on general release.

Backups, This is important. All scripts that may change or remove files, check for the existance of a backup flag, either global or DATAPATH spcific, when invoked.

All of the standard scripts will abort gracefully if a flag is found on any of these checks. No files shall, under any circumstances, be altered within the file tree of any DATASET, unless the corresponding flags for the DATAPATH, have been checked within the preceding second.

Environment

Most of the scripts have been rewriten to use the setenv.lib to set environment variables to indecate the locations of various things.

Scripts that use this method start with the folloing code fragment.

CallName="$0"

#       ----- Pickup main roadtech environment -----

Env=$(RTadmin environment 2>/dev/null)

if test -z "$Env"
then
  echo "Oops Problem locating config :-" >&2
  echo "for $CallName" >&2
  exit 2
else
  RTadmin=$(dirname "$(dirname "$Env")")
  . "$Env"
fi

#
# *****************************************************************
#

The following tables document the main variables used in the scripts, and the "Exp" column notes which ones are exported for the benifit of called programms.

System details

VarExpDescription
admYSystem admin files {/usr/adm, /var/adm, ... }
rmlicenceYRMcobol licence
rmverYRMcobol version
rrhomeYDirectory containing users home directories {/u, /home, .... }
sysnameYSystem name got from uname {AIX, UNIX_System_V, ... }
sysrelYuname -r
sysverYuname -v
tmpdirYApplication temporary directory. {/tmp, /var/tmp}

Roadtech

VariableExpPurposeDefault
RTadminNPath to Admin scripts.
rrinst must select install and copy to correct target for machine.
 
RTadmin_defNDefault install directory for RoadTech scripts on current platform/usr/share/rr85/instbits,
/usr/share/Roadtech?,
/usr/share/RTadmin?
RT_OwnerNUser who owns filesrr85
RT_GroupNGroup who uses filesrm85
RT_ClusterYHACMP ClusterFALSE
RT_CSPOCNPATH fo CSPOC wrapper 
RR_ResourceGroupN roadrunner

Roadrunner General

VariableExpPurposeDefault
CallNameNPath name under which script was started. 
ProgNameNActual path name of script. 
RR_DirYRoadrunner install dir /usr/rr85, /usr/share/rr85, /usr/share/roadrunner?
RR_DirDefNDefault install directory for Roadrunner on current platform./usr/rr85, /usr/share/rr85, /usr/share/Roadrunner?
rrdirNRoadrunner install dir Obsolete 
flagdirYFlag directory { $tmpdir/rr_flag, ... }
clonedirYTarget directory for clone.{/rrclone}
libdirYSource directory for script libraries$RTadmin/lib
libYBase library.$libdir/base.lib
LPDESTNDefault printerlpdest()
LogDirN  
PidDirN  
WebDirN  
DATAPATHYPath used to track dataset between sessions$(<$HOME/.rrdatapath)
RR_Prog3N  

Roadrunner Dataset

Variabes relating to a particular dataset.

Most are initalized via a call to SetDatapathEnv this function is available to any script that has loaded setenv.lib.

Some variables may be adjusted on a set by set basis by the use of the dataset dependent config file. $RR_DataPath/dataset.var
VariableExpPurposeDefault
RR_DataPathNPath of current dataset$(<$HOME/.rrdatapath)
RR_DataSetNName of curent datasetread from $rrdir/.datapaths
RR_Prog1NMain program directory$RR_DataPath/cobs
RR_Prog2NUpdate program directory$RR_DataPath/newcobs
RR_ProgDatNProgram related Data
SCREENS, MENUS, etc
$RR_DataPath/instbits
dsflagYFlag name for current dataset$flagdir/$(echo ${RR_DataPath}|tr -A '/' '_')
RUNPATHYSearch path to programs and program data.${RR_ProgDat}:${RR_Prog3}:${RR_Prog2}:${RR_Prog1}:/usr/rmcobol
RM_ConfigNRM_Cobol configuration file-c $RR_DataPath/terminfo.cfg
RM_ReportNRM_Cobol printer configuration-x $RR_DataPath/report.cfg
N
N

Roadrunner Options.

These may be set in the files :-
  • $rrdir/rr.var
  • $HOME/bin/rr.var
  • $RR_DataPath/dataset.var
VariableExpPurposeDefault
RT_MediaNDisplay Media menuTRUE
RT_PrintNDisplay print menuTRUE
RT_MailNDisplay Mail MenuTRUE
MENUNrr displays menu of datasets 
KILLNKill option from backup 
REVEALNUn-hide some options 
N

General

The scripts are either command line based, or display a menu. There are some that can be either.

Comand line

Comand line scripts run from a prompt and may take optional arguments.

Menu based

All of the scripts and menus take a similar format.
18/02/2003      AIX Ver 4 rel 2
Default Print Queue := postscript

        1  Media menu.
        2  Print services.
        3  Mail menu.
        6  hostman's programme menu.
        Q  Quit.


                [ ]

The top two lines contain a general data block giving a date code indecating the script version, the operating system and version, and the default print destination.

They are displayed by the library function menu_header

Additional header info may be displayed, that is relevant in the context of the menu. For example roadrunner menus use the function menu_header_r to display information relevant to roadrunner.

RTedi uses the function menu_header_e to display relevant information at the top of the screen.

RTadmin or rr85

Main Roadtech administration script, it is in some ways overworked :-)

When invoked on its own it displays a context sensative menu. the exact options, depend on the user who is running it and what optional modules are installed on the system.

rr or RR

This is the script to start roadrunner. invoked on its own it will start roadrunner using the last DATASET used.

It may alternativly be invoked with an optional paramiter indecating the DATAPATH to use.
rr /usr/share/rr85

One other varient exists, if the variable definision
MENU=TRUE
apears in the file $rrdir/rr.var a menu of the available datasets will be built using the information from the file $rrdir/.datapaths.

RTedi

RTedi