pkg_hostname.cfg

Package: WA2L/edrc 1.5.57
Section: File Formats (4)
Updated: 11 November 2020
Index Return to Main Contents

 

NAME

pkg_hostname.cfg - pkg_hostname configuration file

 

SYNOPSIS

etc/pkg_hostname.cfg

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

This is the location definition for the pkg_hostname command.

 

FILEFORMAT

The fileformat is a list of definitions that have the format

FILESYSTEM_REGEX;HOSTNAME_REGEX;PACKAGE_NAME;

Rows starting with a # are considered as comments. Empty lines are allowed, too.

 

OPTIONS

FILESYSTEM_REGEX
regular expression to relate a filesystem (see output of the getfilesystem(3) command) to a cluster package name.

HOSTNAME_REGEX
regular expression to relate a filesystem on a certain host to a cluster package name.

PACKAGE_NAME
name of the cluster package. This name will be used to set the prompt when the current working directory is on a (moving) file system related to a cluster package.

 

EXAMPLES

#
# pkg_hostname.cfg - config file for pkg_hostname in PRODUCTION
#
# [00] 03.08.2004 CWa   Initial Version
#

#
# Format:
#
# <filesystem_regex>:<hostname_regex>:<package_name>:
#
/dev/vgadmdb1/.*:.*:adm_db1_prod:
/data_adm1/.*:.*:adm_db1_prod:
adm_db1_prod.*:.*:adm_db1_prod:

/dev/vgasyssv1/.*:.*:asys_sv1_prod:
/data_asys1/.*:.*:asys_sv1_prod:

/dev/vgbodb1/.*:.*:bo_db1_prod:
/data_bo1/.*:.*:bo_db1_prod:

/dev/vgbodb2/.*:.*:bo_db2_prod:
/data_bo2/.*:.*:bo_db2_prod:

/dev/vgbodb3/.*:.*:bo_db3_prod:
/data_bo3/.*:.*:bo_db3_prod:

/dev/vgbsi20/lvol4:.*:ps_sv2_prod:
/data_ps/.*:dcdbsi20:ps_sv2_prod:

/dev/vgbsi21/lvol4:.*:ps_sv3_prod:
/data_ps/.*:dcdbsi21:ps_sv3_prod:

/dev/vgceddb1/.*:.*:ced_db1_prod:
/data_ced1/.*:.*:ced_db1_prod:

/dev/vgcedsv1/lvol1:.*:ced_sv1_prod:
/data_ced0/.*:.*:ced_sv1_prod:

/dev/vgdmsdb1/.*:.*:dms_db1_prod:
/data_dms1/.*:.*:dms_db1_prod:

/dev/vgdwhdb1/.*:.*:dwh_db1_prod:
/data_dwh1/.*:.*:dwh_db1_prod:

/dev/vgdwhdb2/.*:.*:dwh_db2_prod:
/data_dwh2/.*:.*:dwh_db2_prod:

/dev/vgpsoftdb1/.*:.*:ps_db1_prod:
/data_ps1/.*:.*:ps_db1_prod:

/dev/vgpsoftdb2/.*:.*:ps_db2_prod:
/data_ps2/.*:.*:ps_db2_prod:

/dev/vgpsoftsv1/.*:.*:ps_sv1_prod:
/data_ps0/.*:.*:ps_sv1_prod:

/dev/vgpsoftsv4/.*:.*:ps_sv4_prod:
/data_ps4/.*:.*:ps_sv4_prod:

/dev/vgpvdb1/.*:.*:pv_db1_prod:
/data_pv1/.*:.*:pv_db1_prod:

/dev/vgsicsdb1/.*:.*:sics_db1_prod:
/data_sics1/.*:.*:sics_db1_prod:

/dev/vgsicsdb2/.*:.*:sics_db2_prod:
/data_sics2/.*:.*:sics_db2_prod:

/dev/vgcodb1/.*:.*:co_db1_prod:
/data_co1/.*:.*:co_db1_prod:

/dev/vgdmdb1/.*:.*:dm_db1_prod:
/data_dm1/.*:.*:dm_db1_prod:

 

SEE ALSO

edrcintro(1), pkg_hostname(3), getfilesystem(3)

 

NOTES

The pkg_hostname(3) command and this configuration file was originated on HP-UX MC/ServiceGuard where the need came up to always show the user if he is in a directory related to a cluster package by changing the shell prompt.

However the pkg_hostname(3) is not dependent on HP-US or the MC/ServiceGuard cluster.

It can be used on any system where it is desired to show the user to which host (or alias) a directory on a certain file system is related by changing the prompt (better permanently show the user the information then relating to the idea that the user will read the documentation and knows the relationship of filesystems to applications/clusters/aliases).

 

BUGS

-

 

AUTHOR

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

 

COPYRIGHT

Copyright © 2010 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
FILEFORMAT
OPTIONS
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:54:01 GMT, August 28, 2024