salzman%gaucho@RAND.ORG (Isaac Salzman) (11/16/89)
setting up WP is a bit of a hassle and the doc's are somewhat incomplete. but hey, it's beta. it would be nice if WP could be more easily configured for non-AFS sites. right now, for non-AFS sites to use WP, you need to setup /afs/CELLNAME/service/wp for each machine that wants to use this stuff. it would be nice if the WP directory could be a configuration option in AndrewSetup. on a network of NFS'd Suns, setting that directory to something shareable (like /usr/local/lib/wp or /usr/andrew/lib/wp) would be ideal. another problem is that CELLNAME ends up to get set to host.domain, where host is the hostname (fine), and domain is the Yellow Pages domain name, which is usually not the same as a "real" domain (i.e. rand.org in our case). so i have to set ThisDomain to gaucho.rand.org (the full host name) in AndrewSetup (if i want the system to reference the real domain name of this machine). the problem with that is AndrewSetup is not shareable since ThisDomain reall means ThisHost. ThisDomain should really reference the domain name only (e.g. rand.org). * Isaac J. Salzman ---- * The RAND Corporation - Information Sciences Dept. /o o/ / * 1700 Main St., PO Box 2138, Santa Monica, CA 90406-2138 | v | | * AT&T : +1 213-393-0411 x6421 or x7923 (ISL lab) _| |_/ * Internet : salzman@rand.org / | | * UUCP : !uunet!rand.org!salzman | | | * CompuServe: 76167,1046
nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) (11/16/89)
I think -- this could be ancient information, but it might be still right -- that you can put a line like "ThisDomain:*" in AndrewSetup to indicate that you should use the full host name as ThisDomain. That might at least solve your problem with machine-specific AndrewSetup files. Beyond that, I'll leave your questions to be answered by the real authorities... --- NB
cfe+@ANDREW.CMU.EDU ("Craig F. Everhart") (11/16/89)
Well, you're right in that WP use for non-AFS sites is not well-lived-in. Having a non-AFS override for the WP selection wouldn't be a bad idea. At the moment, the WP is in a conventional location that's supposed to be determined solely by the AFS cell name. What ``ThisDomain'' means is the fully-qualified host name (as opposed to what you might call ``ThisHost,'' which would refer only to the first component of a fully-qualified name, ``apollo'' rather than ``apollo.andrew.cmu.edu''). We try to get the fully-qualified host name by calling gethostname(), then conditionally appending a domain name. If you have the AndrewSetup preference ``ThisDomainSuffix'', we'll append its value to the gethostname() result; if not, and the definition of GETDOMAIN_ENV says that you have a getdomainname() call, we append the result of that call to the gethostname() result. In both cases, the appending is done only if it doesn't appear to have been done already, so (sensible) hosts whose gethostname() call returns a fully-qualified host name won't be bothered by this. At least, that's the intent. I'd argue that you should set ThisDomainSuffix to ``rand.org'' in your AndrewSetup, which then becomes shareable. That doesn't make the WP code try to use the /afs/rand.org/service... path, but it might make you happier in other ways. Craig
cfe+@ANDREW.CMU.EDU ("Craig F. Everhart") (11/18/89)
Nope, using ``ThisDomain: *'' just means to use the (fully-qualified) workstation name as ThisDomain, which in most cases is the default action. (It's certainly the case without AFS.) There's this additional layer, though, in the GetHostDomainName() function (in overhead/util/lib/hname.c) that tries to derive the fully-qualified workstation name by combining the results from gethostname(), AndrewSetup value ThisDomainSuffix, and (under GETDOMAIN_ENV) getdomainname(). Craig
salzman%gaucho@RAND.ORG (Isaac Salzman) (11/18/89)
> Excerpts from info-andrew-pend: 16-Nov-89 Re: WP setup for non AFS sites > "Craig F. Everhart"@andr (1348) > We try to get the fully-qualified host name by calling gethostname(), > then conditionally appending a domain name. If you have the AndrewSetup > preference ``ThisDomainSuffix'', we'll append its value to the > gethostname() result; i > bothered by this. At least, that's the intent. > I'd argue that you should set ThisDomainSuffix to ``rand.org'' in your > AndrewSetup, which then becomes shareable. That doesn't make the WP > code try to use the /afs/rand.org/service... path, but it might make you > happier in other ways. yup, setting ThisDomainSuffix does the trick. thanks! but i don't think i saw that documented anywhere.... no, it doesn't make WP work any better, but it does make me happier! :-) -Isaac (salzman@rand.org).