2002-09-30 15:08:56 +04:00
|
|
|
.\" $NetBSD: hesinfo.1,v 1.5 2002/09/30 11:09:03 grant Exp $
|
1999-01-26 01:45:55 +03:00
|
|
|
.\"
|
|
|
|
.\" from: #Id: hesinfo.1,v 1.9 1996/11/07 01:57:12 ghudson Exp #
|
|
|
|
.\"
|
|
|
|
.\" Copyright 1987, 1996 by the Massachusetts Institute of Technology.
|
|
|
|
.\"
|
|
|
|
.\" Permission to use, copy, modify, and distribute this
|
|
|
|
.\" software and its documentation for any purpose and without
|
|
|
|
.\" fee is hereby granted, provided that the above copyright
|
|
|
|
.\" notice appear in all copies and that both that copyright
|
|
|
|
.\" notice and this permission notice appear in supporting
|
|
|
|
.\" documentation, and that the name of M.I.T. not be used in
|
|
|
|
.\" advertising or publicity pertaining to distribution of the
|
|
|
|
.\" software without specific, written prior permission.
|
|
|
|
.\" M.I.T. makes no representations about the suitability of
|
|
|
|
.\" this software for any purpose. It is provided "as is"
|
|
|
|
.\" without express or implied warranty.
|
|
|
|
.TH HESINFO 1 "27 October 1996"
|
|
|
|
.FM mit
|
|
|
|
.SH NAME
|
|
|
|
hesinfo \- find out what is stored in the Hesiod database
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
|
|
|
hesinfo \fI[-bl]\fR \fIHesiodName\fR \fIHesiodNameType\fR
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I hesinfo
|
|
|
|
takes two arguments, a name to be resolved and a string, known
|
2002-09-30 15:08:56 +04:00
|
|
|
as a HesiodNameType.
|
|
|
|
It then prints the information returned by
|
1999-01-26 01:45:55 +03:00
|
|
|
the Hesiod nameserver.
|
|
|
|
.PP
|
|
|
|
The value returned by
|
|
|
|
.B hesinfo
|
|
|
|
is of the type
|
|
|
|
.I HesiodNameType.
|
|
|
|
.PP
|
|
|
|
.I hesinfo
|
|
|
|
understands the following options:
|
|
|
|
.TP
|
|
|
|
.B -l
|
|
|
|
Selects long format.
|
|
|
|
.TP
|
|
|
|
.B -b
|
|
|
|
Prints the fully-qualified string passed to the nameserver.
|
|
|
|
|
|
|
|
.PP
|
|
|
|
.SS VALID Hesiod_Names
|
|
|
|
The following types of identifiers may be used in the
|
|
|
|
.I HesiodName
|
|
|
|
argument to
|
|
|
|
.B hesinfo.
|
|
|
|
These values will be resolved by accessing the
|
|
|
|
.B hesiod
|
|
|
|
database.
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]username\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
the 8-character-or-less string used to identify users or classes
|
|
|
|
(e.g. joeuser, root, 1.00, etc).
|
|
|
|
Used with the
|
|
|
|
.I Hesiod_Name_Types
|
|
|
|
.BR passwd,
|
|
|
|
.BR pobox,
|
|
|
|
and
|
|
|
|
.BR filsys.
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]uid\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
the id number assigned to a user.
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]groupid\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
the id number assigned to a group.
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]groupname\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
a name identifying a unique group.
|
|
|
|
|
2001-12-01 19:43:07 +03:00
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]file-system-name\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
the name of an athena file system.
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]rvd server\*[Gt]:\*[Lt]pack\*[Gt]
|
2001-07-22 17:33:58 +04:00
|
|
|
the name of an rvd's server and pack separated by a colon.
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]nfs server\*[Gt]:\*[Lt]partition\*[Gt]
|
2001-07-22 17:33:58 +04:00
|
|
|
the name of an nfs server and its partition separated by a colon.
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]workstation-name\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
the machine name of an Athena workstation (e.g. E40-343-3).
|
|
|
|
|
2001-12-01 19:43:07 +03:00
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]service-name\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
name of an Athena service (e.g. Zephyr).
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]service-type\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
name of Unix service (valid entries are defined in /etc/services).
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]printer-name\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
name of a printer.
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]printer-cluster-name\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
name of an Athena print cluster.
|
|
|
|
|
|
|
|
.TP
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \\*[Lt]foo\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
some
|
|
|
|
.B hesinfo
|
2001-12-01 19:43:07 +03:00
|
|
|
calls (e.g.
|
1999-01-26 01:45:55 +03:00
|
|
|
.B prclusterlist
|
|
|
|
) do not require a specific
|
|
|
|
.I HesiodName
|
2002-09-30 15:08:56 +04:00
|
|
|
argument.
|
|
|
|
However, you must include a dummy string (e.g. 'foo') for
|
1999-01-26 01:45:55 +03:00
|
|
|
.B hesinfo
|
|
|
|
to work properly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PP
|
|
|
|
.SS VALID Hesiod_Name_Types
|
|
|
|
The following symbols are valid substitutions for the
|
|
|
|
.I HesiodNameType
|
|
|
|
argument to
|
|
|
|
.B hesinfo.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ passwd
|
|
|
|
returns string suitable for inclusion in
|
|
|
|
.I /etc/passwd,
|
|
|
|
searching with
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]username\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ pobox
|
|
|
|
returns information on the pobox assigned to the user specified by
|
|
|
|
.I HesiodName,
|
|
|
|
searching with
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]username\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
|
|
|
|
.TP
|
2001-12-01 19:43:07 +03:00
|
|
|
.B \ uid
|
1999-01-26 01:45:55 +03:00
|
|
|
returns string suitable for inclusion in
|
|
|
|
.I /etc/passwd,
|
|
|
|
searching with
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]uid\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
2001-12-01 19:43:07 +03:00
|
|
|
.B \ gid
|
1999-01-26 01:45:55 +03:00
|
|
|
returns string suitable for inclusion in
|
|
|
|
.I /etc/group,
|
|
|
|
searching with
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]groupid\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ group
|
|
|
|
returns string suitable for inclusion in
|
|
|
|
.I /etc/group,
|
|
|
|
searching with
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]groupname\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ grplist
|
|
|
|
returns subgroups included in superset
|
2001-12-01 19:43:07 +03:00
|
|
|
defined by
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]groupname\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ filsys
|
|
|
|
returns file system type, export point, server, mount mode, and import point
|
|
|
|
for the following valid
|
|
|
|
.I HesiodNames
|
|
|
|
(see above)
|
2002-02-08 04:36:18 +03:00
|
|
|
.B - \*[Lt]file system name\*[Gt], \*[Lt]username\*[Gt], \*[Lt]rvd server\*[Gt]:\*[Lt]pack\*[Gt],
|
|
|
|
.B and \*[Lt]nfs server\*[Gt]:\*[Lt]partition\*[Gt]
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ cluster
|
|
|
|
returns information about the local cluster the workstation, specified by
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]workstation name\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
Included is information about the local file and print servers. This
|
2001-12-01 19:43:07 +03:00
|
|
|
information is accesses by
|
|
|
|
.B clusterinfo
|
1999-01-26 01:45:55 +03:00
|
|
|
at boot time.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ sloc
|
|
|
|
returns network name of service host for
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]service-name\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ service
|
|
|
|
returns Internet protocol type and protocol service port for
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]service-type\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \ pcap
|
|
|
|
returns a valid entry for /etc/printcap for
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]printer-name\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
2001-12-01 19:43:07 +03:00
|
|
|
.TP
|
1999-01-26 01:45:55 +03:00
|
|
|
.B \ prcluserlist
|
|
|
|
returns a list of print clusters.
|
|
|
|
|
2001-12-01 19:43:07 +03:00
|
|
|
.TP
|
1999-01-26 01:45:55 +03:00
|
|
|
.B \ prcluster
|
|
|
|
returns a list of printers in a cluster specified by
|
2002-02-08 04:36:18 +03:00
|
|
|
.B \*[Lt]printer-cluster-name\*[Gt].
|
1999-01-26 01:45:55 +03:00
|
|
|
|
|
|
|
.SH FILES
|
|
|
|
/etc/hesiod.conf
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
`Hesiod - Project Athena Technical Plan -- Name Service', named(8), hesiod(3)
|
|
|
|
.SH AUTHOR
|
|
|
|
Steve Dyer, IBM/Project Athena
|
|
|
|
.br
|
|
|
|
Copyright 1987, 1988, 1996 by the Massachusetts Institute of Technology.
|
|
|
|
.br
|