contrib.edrc

Package: WA2L/edrc 1.5.57
Section: Maintenance Commands (1m)
Updated: 28 January 2024
Index Return to Main Contents

 

NAME

contrib.edrc - list of all contributed commands distributed with WA2L/edrc

 

SYNOPSIS

-

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

This man page lists all contributed commands that are part of the core WA2L/edrc package and distributed with it.

If you write own contributed commands do not list it in this man page, due to the fact that your change would be lost after an upgrade of WA2L/edrc. If you send your contributed command to the author of WA2L/edrc your command will be added to this list.

To see where to place manual pages of your own contributed commands, see contrib(1m).

 

CONTRIBUTED COMMANDS OF CORE WA2L/edrc

To see a list of all contributed commands available in your WA2L/edrc installation invoke help within edrc.

contrib.apropos(1m)
search the whatis database for strings. See apropos(1) for a detail description.

contrib.bc(1)
An arbitrary precision calculator language that supports arbitrary precision numbers with interactive execution of statements.

There are some similarities in the syntax to the C programming language.

The standard math library is enabled.

See also: bc(1), contrib.calc(1), contrib.kalc(1).

contrib.calc(1m)
single row calculator using awk. All calculations as possible in awk(1) can be performed. Be aware that this command will be denied from startup if shell is listed in the DENY_LIST.

See also: contrib.kalc(1), contrib.bc(1).

contrib.checklist(1m)
print a checklist that can be used to track the disaster recovery progress based on the recovery script tree.

The checklist command can also be started from a recovery script.

In this case the environment variable $EDRC_CONTRIB_CHECKLIST_ROOTDIR can be set to produce a checklist for a part of a recovery script tree if needed, as:

  export EDRC_CONTRIB_CHECKLIST_ROOTDIR=$EDRC_ENTRY_DIR

This example produces a checklist starting in the current menu and descending.

In a restricted environment the functionality contrib.checklist.setrootdir can be added to the DENY_LIST of the edrc.cfg(4) file to deny the corresponding functionality.

contrib.clock(1m)
display a running clock banner in military format.

In a restricted environment the functionality contrib.clock.start can be added to the DENY_LIST of the edrc.cfg(4) file to deny the corresponding functionality.

contrib.clonemenu(1m)
clone (copy) an existing submenu. Pre-requirements for cloning a submenu are, that the source and the clone submenus exist and the clone menu does not have contents (except a title). Therefore ahead of cloning an existing menu it is needed to create a new menu with the newmenu edrc command that will be the clone of the existing submenu.

contrib.cmmon(1m)
monitor of all MC/SG packages on HP-UX systems having MC/ServiceGuard installed. If an interval of 0 is specified a one time output is provided, else the output is continuously.

contrib.cmswitch(1m)
switch a MC/SG package to a node. Using this interactive command is much faster then entering all commands needed for a cluster package switch from one to an other node. You can restart a package if you specify the host where the package is currently running as the target node. Be aware that the cmswitch command does not check if it is possible to switch the package to the specified target node, therefore you should check the possible package switch positions first using the cmmon contributed command.

contrib.cmviewcl(1m)
MC/ServiceGuard state. This is the presentation of the standard cmviewcl(1) command available on HP-UX with installed MC/ServiceGuard to edrc.

contrib.countdown(1m)
countdown control (a stopwatch). The values are stored persistently, therefore after a system reboot the countdown figures are still valid.

In a restricted environment the functionality contrib.countdown.init, contrib.countdown.pause, contrib.countdown.resume, contrib.countdown.end and contrib.countdown.start can be added to the DENY_LIST of the edrc.cfg(4) file to deny the corresponding functionality.

The fore- and background colors can optionally be defined in the global config file etc/contrib.edrc.countdown.cfg with the settings COUNTDOWN_FOREGROUND_COLOR=color and COUNTDOWN_BACKGROUND_COLOR=color where the color values are numbers between 0 and 7 (black= 0, red= 1, green= 2, yellow= 3, blue= 4, magenta= 5, cyan= 6, white= 7).

To set the character used to display the big counter (that is normally composed out of # characters, use the COUNTDOWN_COUNTER_CHARACTER=character setting to define a single character to be used instead. You can also use a block character, as: "█" to produce a more prominent counter effect.

The countdown state can also be viewed thru wa2ledrc_report(1).

contrib.dirwatch(1m)
watch and summarize restore progress. With this command directory sizes are monitored and the average size difference over time is calculated. Therefore this command can be used to monitor restore, removal or file copy progress and do an estimation when it would be completed.

contrib.doc(1m)
display recovery script documentation. All menu points can contain a documentation that is displayed using this command. If no documentation tags are found in a menu point, only the dynamic documentation header is displayed.

contrib.drvstat(1m)
LTO library drive status. This command is useful to display the tape drive states of a tape library on HP-UX systems where HP DataProtector (former OmniBack) is installed.

contrib.edrcenv(1m)
print the official WA2L/edrc environment variables as the edrcenv command. See also edrcenv(1m).

contrib.edrcupgrade(1m)
an easy to use interface to efficiently download WA2L/edrc patches from sourceforge.net.

In addition the downloaded patches can be deployed and installed. If a direct internet connection is not permitted from the system the connection via a http proxy is also supported. Furthermore the patches could also be provided on a internal web server or locally on the filesystem from where the patch installation should be performed.

In a restricted environment the functionality contrib.edrcupgrade.start, contrib.edrcupgrade.download, contrib.edrcupgrade.install, contrib.edrcupgrade.setagent, contrib.edrcupgrade.setdir, contrib.edrcupgrade.useproxy, contrib.edrcupgrade.setproxy, contrib.edrcupgrade.setproxyauth, contrib.edrcupgrade.sethttpauth and contrib.edrcupgrade.settargets can be added to the DENY_LIST of the edrc.cfg(4) file to deny the corresponding functionality.

contrib.find(1m)
find text in recovery scripts header and documentation and print a list of matched menu points. The text to find is a non case sensitive regular expression. See also: contrib.search(1m).

contrib.kalc(1)
A programmable scientific calculator, using RPN (Reverse Polish Notation). It includes over 200 functions and a built-in help system. kalc works with real numbers, complex numbers and also integers in other numeric bases. Its has a complete programming language, with control-flow structures such as if and while. It has "unlimited" memory for you to store objects.

See also: bc(1), contrib.bc(1), contrib.calc(1m).

contrib.leo(1m)
execute dictionary queries to http://dict.leo.org.
The input defaults and options can optionally be defined in the global config file etc/contrib.edrc.leo.cfg which has the identical format as the file var/contrib/edrc/leo.<session name> where the inputs are persistently saved in an edrc session.

To change the translation language or leo options, enter ! in the 'term to translate' prompt.

See leo(1) for possible language and options settings.

In a restricted environment the functionality contrib.leo.setlang, contrib.leo.setproxy and contrib.leo.setopts can be added to the DENY_LIST of the edrc.cfg(4) file to deny the corresponding functionality.

contrib.license(1m)
print the WA2L/edrc license terms.

contrib.locations(1m)
print a list of corporate locations with local time.

contrib.logs(1m)
view any session log file of edrc. This is an enhanced log viewer compared to the internal log command of edrc which displays the log file of the last script run. It is possible to select the logfiles by date or session and to "scroll" efficiently thru a sequence of logs.

In a restricted environment the functionality contrib.logs.view should be added to the DENY_LIST of the edrc.cfg(4) file.

contrib.logtail(1m)
give a selection of common logfiles to be displayed with tail -f <selected logfile> . This is the presentation of the logtail(1) command to edrc.

contrib.logview(1m)
give a selection of common logfiles to be displayed with view <selected logfile> . This is the presentation of the logview(1) command to edrc.

contrib.logviewer(1m)
create a browseable LogViewer HTML archive containing all log files between two selected dates. The generated .zip file should be encrypted due to the fact that there might be a chance that a logfile could contain passwords.

In $EDRC_SCRIPTS_BASEDIR/logviewer.fl a list of extra log files also to be included to the LogViewer archive can be defined. Relative path names are relative to the WA2L/edrc installation.

In a restricted environment the functionality contrib.logviewer.sendpassword, contrib.logviewer.setaddress, contrib.logviewer.setdates, contrib.logviewer.setdir, contrib.logviewer.setemptyxlogs, contrib.logviewer.setmode and contrib.logviewer.setpassword can be added to the DENY_LIST of the edrc.cfg(4) file to deny the related functionality in the command.

contrib.motd(1m)
print system wide message of the day (/etc/motd).

contrib.newscripttree(1m)
create a new script tree based on a template.

contrib.notepad(1m)
a notepad to quickly save ad hoc notes locally.

If the setting TIMESTAMPS=ON is set within the notepad file, automatically a timestamp in the military format is added when opening the file for editing.

In a restricted environment the functionality contrib.notepad.edit, contrib.notepad.view, contrib.notepad.display, contrib.notepad.more and contrib.countdown.grep can be added to the DENY_LIST of the edrc.cfg(4) file to deny the corresponding functionality.

The notepad has the name notepad.<edrc_config>.txt and is saved to the $EDRC_CONTRIB_VARDIR by default. The save directory can optionally be defined in the global config file etc/contrib.edrc.notepad.cfg with the settings NOTEPAD_NOTESDIR=directory .

contrib.oerr(1m)
resolve Oracle error numbers. This is the presentation of the oerr(1) command available on systems where Oracle is installed to edrc.

contrib.omnimon(1m)
OmniBack Session Monitor. With this commands the status of HP DataProtector (former OmniBack) can be continuously displayed on cell servers where DataProtector is installed.

contrib.omnistat(1m)
OmniBack Status (running sessions).

contrib.pwsafe(1m)
interactive password safe that allows also to protect the password data file with a master password if needed.

To change the master password, invoke: pwsafe -> edit -> change some content -> save

The password data file is saved in the $EDRC_SCRIPTS_BASEDIR/pwsafe.dat file which will be newly created from a template when pwsafe is initially called.

The only compulsory field in the password data file is HANDLE; which has to be the leftmost one.

If the direct query functionality pwsafe user@system is used the PASSWORD;, USER; and SYSTEM_OR_APPLICATION; fields must also exist.

All other columns are optional and can be changed.

In a restricted environment the functionality contrib.pwsafe.edit can be added to the DENY_LIST of the edrc.cfg(4) file to deny the functionality to edit the password data file and contrib.pwsafe.directquery to deny direct pwsafe user@system query within recovery scripts.

Because the pwsafe saves the data as semicolon (;) separated file that allows tabs and spaces to format the file, a semicolon, space and tabulator cannot be entered plain in the PASSWORD field. Therefore if your password contains a semicolon, replace it with [:SEMICOLON:], if it contains a space, replace it with [:SPACE:] and replace a tabulator with [:TAB:].
So if your password is 'my;secret ' the password has to be defined as my[:SEMICOLON:]secret[:SPACE:] in the PASSWORD field of the pwsafe.

The replacement strings [:SEMICOLON:], [:SPACE:] and [:TAB:] can be changed in the optional configuration file etc/contrib.edrc.pwsafe.cfg using the SEMICOLON=string, SPACE=string and TAB=string settings.

The encrypion mode default is AES which uses ccrypt(1).

The encryption mode can be defined in the optional configuration file etc/contrib.edrc.pwsafe.cfg using the setting CRYPT_MODE=mode (example: CRYPT_MODE=AES256).

Possible encryption modes are:

AES
uses ccrypt(1) by Peter Selinger.
It is based on the Rijndael block cipher, a version of which is also used in the Advanced Encryption Standard (AES, see http://www.nist.gov/aes). This cipher is believed to provide very strong security.

AES256
uses openssl(1)
The openssl program is a command line tool for using the various cryptography functions of OpenSSL's crypto library from the shell. This cipher is believed to provide very strong security.

ZIP
uses zip(1)
Where security is truly important, use strong encryption such as AES or AES256 instead of the relatively weak standard encryption provided by zipfile utilities.

ENIGMA
uses crypt(1)
Where security is truly important, use strong encryption such as AES or AES256 instead of the relatively weak encryption provided by the enigma encryption of crypt(1).

ENIGMA is provided to handle password safe files produced in early versions of WA2L/edrc but should not be used for new setups.

NO
uses no encryption even if you answer the dialog to encrypt the file with y (yes).
This mode could be used for intermediate solutions where none of the commands needed by the other modes are working on a system.

In general a pwsafe.nolog file should exist in the edrc/contrib/edrc directory to avoid output logging for this command. This is especially important if you decide to protect the password data file with a master password because else the clear text passwords will be seen in the corresponding log files.

The pwsafe(3) command that can be called from outside of edrc ( using the command: edrc/lib/pwsafe [ -c config_file ] user@system ) allows also to access the password safe of a recovery script tree.

In this case the master password has to be provided thru the environment variable $PWSAFE_MASTERPASSWORD.

Of course one using this command should be careful about how to handle the master password.

See pwsafe(3) for more information.

contrib.pid(1m)
UNIX process list. Select processes from the system. See pid(1) for a detail description.

contrib.ping(1m)
send ICMP ECHO_REQUEST packets to network hosts. This interactive command guides thru a more advanced usage of ping(8).

contrib.pstree(1m)
UNIX process tree. The processes of an optionally specified root process is displayed in a tree form.

contrib.sane(1m)
reset the tty issuing stty sane internally.

contrib.scriptdocbook(1m)
create a document book in WA2L/DocBrowser of the current recovery script tree. This command travels thru the whole script tree and generates a HTML page for each menu point. The information in the HTML page is as the doc contributed command is called.

In a restricted environment the functionality contrib.scriptdocbook.checklist, contrib.scriptdocbook.setdir, contrib.scriptdocbook.setmode, contrib.scriptdocbook.setpassword, contrib.scriptdocbook.sendpassword and contrib.scriptdocbook.setaddress can be added to the DENY_LIST of the edrc.cfg(4) file to deny the related functionality in the command.

A BIBLIOGRAPHY entry is added as the very end of the menu, if the file scriptdocbook.bib is created in the $EDRC_SCRIPTS_BASEDIR directory. The entries must have the following format:

  [EDRC]
     TITLE=     EDRC
     SUBTITLE=  Enterprise Disaster Recovery Console
     VERSION=   1.5.32
     DATE=      30.01.2010
     COMPANY=   ACME Switzerland
     AUTHOR=    Walther Christian
     ISBN=      ISBN 0-330-35169-9
     FILE=      File: edrc_manpages-1.5.32.pdf
     PATH=      doc/edrc_manpages-1.*.pdf
     URL=       http://www.acme.ch/doc/edrc.html

The compulsory entry is [reference], all other entries are optional.

If the [----] reference is used, a horizontal line is inserted. For this special reference no other fields should be set.

The PATH=path/filename defines the path- and filename of the file referenced in the FILE entry.

The path/filename can be specified as follows:

/path/filename
absolute file location on the system.

~user/path/filename
file located in a $HOME directory of a user.

./path/filename
file located in the $EDRC_SCRIPTS_BASEDIR

path/filename
file located relatively to the WA2L/edrc package installation directory.

If the file in PATH exists, it is copied to the ScriptDocBook and the entry in FILE is a hyperlink pointing to that included file.

If TODAY is specified in date of DATE=date, the current date will be printed. This might be useful when including configuration files into the ScriptDocBook.

When EDRCREVISION is specified in version of VERSION=version the current WA2L/edrc release is printed.

The input defaults can optionally be defined in the global config file etc/contrib.edrc.scriptdocbook.cfg and/or the local "recovery" script tree config file $EDRC_SCRIPTS_BASEDIR/scriptdocbook.cfg which has the identical format as the file var/contrib/edrc/scriptdocbook.<session name> where the inputs are persistently saved in an edrc session.

contrib.scriptinstall(1m)
install a script tree package created with the contrib.scriptpack(1m) contributed command into the current script tree.

The current script tree contents is removed (and backuped to the $EDRC_SCRIPTS_BASEDIR/.sav/scriptinstall/<timestamp>/ directory) before the installation of the script tree package file.

In a restricted environment the functionality contrib.scriptinstall.install, contrib.scriptinstall.list and contrib.scriptinstall.patch can be added to the DENY_LIST of the edrc.cfg(4) file to deny the related functionality of the scriptinstall contributed command.

contrib.scriptpack(1m)
pack the current recovery script tree to an archive package (= *.cpio.gz file).

It is supported to stripe out the passwords stored in _env files and to exclude an existing pwsafe.dat file from the script package based on dialog input. Furthermore it can be selected if the recovery script tree package should be saved into a directory or if it should be mailed to a list of recipients.

The generated package can be shared among other system administrators, can be used as a backup snapshot of a recovery tree at a certain point in time (e.g. as proof after a disaster recovery (test)) or to transport a script tree from one environment to another (if a direct distribute is not possible or the code transport between environments needs to be carried out by other personnel due to segregation of duty requirements).

The generated package can be installed most efficiently on the target system using the contrib.scriptinstall(1m) contributed command.

To easily list/cat the contents of the generated package file, the llcomp(1), lscomp(1) and catcomp(1) can be used.

In a restricted environment the functionality contrib.scriptpack.cpconfig, contrib.scriptpack.cpfiles, contrib.scriptpack.setdir, contrib.scriptpack.passwdstrip, contrib.scriptpack.pwsaferm, contrib.scriptpack.setmode, contrib.scriptpack.setaddress, contrib.scriptpack.sendpassword and contrib.scriptpack.setpassword can be added to the DENY_LIST of the edrc.cfg(4) file to deny the related functionality of the scriptpack contributed command.

The input defaults can optionally be defined in the config file etc/contrib.edrc.scriptpack.cfg which has the identical format as the file var/contrib/edrc/scriptpack.<session name> where the inputs are persistently saved in an edrc session.

In $EDRC_SCRIPTS_BASEDIR/scriptpack.fl a list of other files (one per line) and directories also to be saved to the script package can be defined. Relative path names are relative to the WA2L/edrc installation.

The (include) list can contain wildcards as known from the ls and find commands. To test an entry run the 'find entry' command.

To exclude files from the resulting list of (included) files, list it in the [EXCLUDE] section, whereas the list entries are treated as regular expressions.

All files before a [EXCLUDE] section are treated as includes. If the includes shall be defined after the [EXCLUDE] section, an [INCLUDE] section has to be defined, else the [INCLUDE] keyword is optional.

The files listed in scriptpack.fl are packed to the $EDRC_SCRIPTS_BASEDIR/.sav/scriptpack/file/ directory and the WA2L/edrc configuration files (if chosen in the scriptpack dialog) to $EDRC_SCRIPTS_BASEDIR/.sav/scriptpack/conf/ in the script tree package file.

contrib.scriptsequence(1m)
globally control the scriptsequence(3) command used in _env files or recovery scripts during a session without changing the related file.

When the (m)ode is set to dynamic (=default) the action as defined in the scriptsequence -a action command line option is used as specified, therefore if scriptsequence is used with other actions in other menus, the related action is used.

If the (m)ode is set to query, inform or cancel the setting specified in the contributed command overrides the command line options of scriptsequence for the whole session.

When it is chosen to (d)isable and the script sequence checking, the auditing of the direct ascending menu point starts is set on hold as long as it is chosen to (e)nable the checking again (or the session is newly started).

In a restricted environment the functionality contrib.scriptsequence.print, contrib.scriptsequence.disable, contrib.scriptsequence.enable, contrib.scriptsequence.init and contrib.scriptsequence.setmode can be added to the DENY_LIST of the edrc.cfg(4) file to deny the related functionality of the scriptsequence contributed command.

contrib.scripttree(1m)
print recovery script menu tree. A tree of all scripts and menus in a "Recovery" script tree configuration is printed. If you are looking for a certain menupoint in a big recovery script tree, this command might help.

contrib.scriptstats(1m)
print recovery script menu statistics.

contrib.search(1m)
search text in recovery scripts. The text to search is a case sensitive regular expression. See also: contrib.find(1m).

In a restricted environment the functionality contrib.search.all, contrib.search.code, contrib.search.doc, contrib.search.file, and contrib.search.header, can be added to the DENY_LIST of the edrc.cfg(4) file to deny the related functionality.

contrib.sessions(1m)
display currently running edrc(1m) sessions on the local host. It is also possible to end possibly existing inactive edrc sessions.

In a restricted environment the functionality contrib.sessions.end can be added to the DENY_LIST of the edrc.cfg(4) file to deny the functionality to end inactive sessions.

contrib.tail(1m)
monitor the growth of a local or remote file using tail -f file internally.

To monitor a local file, specify /var/log/mylogfile.log at the 'file to monitor:' prompt.

To monitor a remote file specify hostname:/var/log/mylogfile.log or remoteuser@hostname:/var/log/mylogfile.log at the 'file to monitor:' prompt.

In a restricted environment the functionality contrib.tail.remote can be added to the DENY_LIST of the edrc.cfg(4) file to deny the functionality to tail -f a remote file.

contrib.whatis(1m)
search the whatis database for strings. See whatis(1) for a detail description.

contrib.whereami(1m)
server environment where logged on. Print the server environment where you are currently logged on. This command helps if you are unsure if you are really logged on to the TEST environment, for instance.

 

ENVIRONMENT

See contrib(1m) and edrc(1m) section ENVIRONMENT.

 

EXIT STATUS

-

 

FILES

See contrib(1m) and contrib.<contributed_command>(1m).

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1), bc(1), edrc(1m), edrc.cfg(4), edrcenv(1), contrib(1m), contrib.apropos(1m), contrib.bc(1), contrib.calc(1m), contrib.checklist(1m), contrib.clock(1m), contrib.clonemenu(1m), contrib.cmmon(1m), contrib.cmswitch(1m), contrib.cmviewcl(1m), contrib.countdown(1m), contrib.dirwatch(1m), contrib.doc(1m), contrib.drvstat(1m), contrib.edrcupgrade(1m), contrib.find(1m), contrib.kalc(1), contrib.leo(1m), contrib.license(1m) contrib.locations(1m), contrib.logs(1m), contrib.logtail(1m), contrib.logview(1m), contrib.logviewer(1m), contrib.motd(1m), contrib.newscripttree(1m), contrib.oerr(1m), contrib.omnimon(1m), contrib.omnistat(1m), contrib.pwsafe(1m), contrib.pid(1m), contrib.ping(1m), contrib.pstree(1m), contrib.sane(1m), contrib.scriptdocbook(1m), contrib.scriptinstall(1m), contrib.scriptpack(1m), contrib.edrc.scriptpack.cfg(4), contrib.scripttree(1m), contrib.scriptsequence(1m), contrib.scriptstats(1m), contrib.search(1m), contrib.sessions(1m), contrib.tail(1m), contrib.whatis(1m), contrib.whereami(1m), contrib.<contributed_command>(1m), is_permitted(3), pwsafe(3)

 

NOTES

-

 

BUGS

-

 

AUTHOR

contrib.edrc was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2023 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
CONTRIBUTED COMMANDS OF CORE WA2L/edrc
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 00:13:57 GMT, March 08, 2025