pathalias.1 (2010 09)
p
pathalias(1) pathalias(1)
Input from compressed (and uncompressed) files can be piped into
pathalias with the following script.
for i in $*; do
case $i in
*.Z) echo "file {‘expr $i : ’).Z’‘}
zcat $i ;;
*) echo "file {$i}"
cat $i ;;
esac
echo "private {}"
done
Output Format
A list of host-route pairs is written to the standard output, where route is a string appropriate for use
with printf() (see printf (3S)), suchas
rutgers princeton!topaz!%s@rutgers
The %s in the route string should be replaced by the user name at the destination host (this task is nor-
mally performed by a mailer).
Except for domains (see below), the name of a network is never used in routes. Thus, in the earlier exam-
ple, the path from
rahway to milan would be milan!%s, not etherhosts!milan!%s
.
Gateways
A network is represented by a pseudo-host and a set of network members. Links from the members to
the network have the weight given in the input, while the cost from the network to the members is zero.
If a network is declared dead, the member-to-network links are marked dead, which effectively prohibits
access to the network from its members.
However, if the input also shows an explicit link from any host to the network, then that host can be used
as a gateway (in particular, the gateway need not be a network member).
For example, suppose
CSNET is declared dead on the command line and the input contains
CSNET = {...}
csnet-relay CSNET
Then routes to CSNET hosts will use csnet-relay as a gateway.
Domains
A network whose name begins with
. is called a domain. Domains are presumed to require gateways;
i.e., they are DEAD. The route given by a path through a domain is similar to that for a network, but here
the domain name is appended to the end of the name of the next host. Subdomains are permitted. For
example:
harvard .EDU # harvard is gateway to .EDU domain
.EDU = {.BERKELEY, .UMICH}
.BERKELEY = {ernie}
yields
ernie ...!harvard!ernie.BERKELEY.EDU!%s
Output is given for the nearest gateway to a domain; e.g., the example above gives
.EDU ...!harvard!%s
Output is given for a subdomain if it has a different route than its parent domain, or if all its ancestor
domains are private.
If the
-D option is given on the command line, pathalias treats a link from a domain to a host
member of that domain as terminal. This property extends to host members of subdomains, etc., and
discourages routes that use any domain member as a relay.
Special Options
The public domain version of
pathalias includes two undocumented options that rewrite named files
with intermediate data of limited usage. Here are brief descriptions:
-g file Dump graph edges into file in the form host >host for simple connections and
host@<tab>host for network connections (from hosts to networks only).
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3