1 | .TH GETCLUSTER 8 "20 April 1987" |
---|
2 | .SH NAME |
---|
3 | getcluster \- retrieve service cluster info from Hesiod as environment vars |
---|
4 | .SH SYNOPSIS |
---|
5 | getcluster [-b] hostname version |
---|
6 | |
---|
7 | # C shell example |
---|
8 | .br |
---|
9 | getcluster `hostname` 5.3 > file; source file |
---|
10 | |
---|
11 | # Bourne shell example |
---|
12 | .br |
---|
13 | getcluster -b `hostname` 5.3 > file; . file |
---|
14 | |
---|
15 | .PP |
---|
16 | .SH DESCRIPTION |
---|
17 | .I Getcluster |
---|
18 | queries the Hesiod database for service cluster information associated |
---|
19 | with the workstation on which it is run. It writes a set of environment |
---|
20 | variable assignments on its standard output in a format acceptable |
---|
21 | to the C shell, or, if the -b flag is present, in Bourne shell syntax. |
---|
22 | If any errors are encountered in querying the Hesiod database or |
---|
23 | during the output of the information, the standard |
---|
24 | output is truncated to size 0, ensuring that partial data will not |
---|
25 | remain in the file. |
---|
26 | .I Getcluster |
---|
27 | also returns an exit status of -1 if any errors were encountered. |
---|
28 | |
---|
29 | .I Getcluster |
---|
30 | is usually invoked from a suitable shell script in /etc/rc |
---|
31 | to retrieve environment variables which will be used by applications during |
---|
32 | the session. These are placed, if successful, in the files |
---|
33 | .I /etc/athena/clusterinfo |
---|
34 | and |
---|
35 | .I /etc/athena/clusterinfo.bsh |
---|
36 | to be accessed by the C shell in a user's .login file |
---|
37 | and the Bourne shell in a user's .profile, respectively. |
---|
38 | It may also be invoked directly by any user. |
---|
39 | .PP |
---|
40 | Getcluster uses the Hesiodnametypes "clustername" and "cluster". |
---|
41 | .SH FILES |
---|
42 | /etc/athena/clusterinfo |
---|
43 | /etc/athena/clusterinfo.bsh |
---|
44 | .SH "SEE ALSO" |
---|
45 | `Hesiod - Project Athena Technical Plan -- Name Service' |
---|
46 | .SH AUTHOR |
---|
47 | Steve Dyer, IBM/Project Athena |
---|
48 | .br |
---|
49 | Copyright 1987, Massachusetts Institute of Technology |
---|
50 | .br |
---|
51 | .SH BUGS |
---|