source: trunk/third/moira/man/mitch.1 @ 24319

Revision 24319, 4.6 KB checked in by broder, 15 years ago (diff)
New Moira snapshot from SVN.
RevLine 
[23095]1.TH MITCH 1 "22 Jan 2003" "MIT Athena"
[24319]2\" RCSID: $HeadURL: svn+ssh://svn.mit.edu/moira/trunk/moira/man/mitch.1 $ $Id: mitch.1 3956 2010-01-05 20:56:56Z zacheiss $
[23095]3.SH NAME
4mitch \- examine and modify informtion about containers in Moira
5.SH SYNOPSIS
6.B mitch containername [options]
7.SH DESCRIPTION
8.I Mitch
9is a tool for updating information about containers in Moira.  It
10supports all container modification commands and options to list, add,
11and remove machines to and from containers.
12
13If no options are specified, it will assume \fI-info\fR, which will
14result in all information about the specified container being displayed.
15
16.SH OPTIONS
17
18.IP \fB-info\ \fRor\ \fB-i\fR
19Display information about a container. This is the default mode if no
20other options are given. The output is similar to that of moira.
21
22.IP \fB-desc\ \fIdescription\ \fRor\ \fB-d\ \fIdescription\fR
23Update the description field for the specified container to \fIdescription\fR.
24.IP \fB-location\ \fIlocation\ \fRor\ \fB-l\ \fIlocation\fR
25Update the location field for the specified container to \fIlocation\fR.
26.IP \fB-contact\ \fIcontact\ \fRor\ \fB-c\ \fIcontact\fR
27Update the contact field for the specified container to \fIcontact\fR.
28
29.IP \fB-owner\ \fIowner\ \fRor\ \fB-O\ \fIowner\fR
30Set the owner of the specified container to \fIowner\fR.
31
32You may specify an owner explicitly, as user:username, list:listname, or
33kerberos:principal_name; or the type may be left off if the owner name
34is non ambiguous.
35.B Mitch
36will try first as a user, and if that fails will try the owner as a
37list.
38
39.IP \fB-memacl\ \fImembership_acl\ \fRor\ \fB-MA\ \fImembership_acl\fR
40Set the mebership acl of the container; members of this acl will be
41allowed to add and remove members of the container, but not update any
42other characteristics. The membership acl is specified like a list
43member, except that it can never be a string.  To return a container to
44having default membership access control conditions, set the membership
45acl to "NONE".
46
47.IP \fB-public\ \fR(\fB-P\fR)\ \fRor\ \fB-private\ \fR(\fB-NP\fR)
48Make the container public or private. (Anyone can add a machine to a
49public container.)
50
51.IP \fB-unformatted\ \fRor\ \fB-u\fR
52Display container information with each field on a seperate line, in the
53form "fieldname: value".
54.IP \fB-verbose\ \fRor\ \fB-v\fR
55Give more information.  With this flag, mitch will display the
56queries it is making to the moira server.
57.IP \fB-noauth\ \fRor\ \fB-n\fR
58Do not attempt to perform Kerberos authentication with the Moira server.
59Most lookup operations should be still possible without tickets.
60.IP \fB-database\ \fIhost:port\ \fRor\ \fB-db\ \fIhost:port\fR
61Use the specified host and port to contact the Moira database instead of
62the default server.  Both may be symbolic names or numbers.  If the
63port is left off, the default Moira server port will be assumed.  The
64database chosen will be the one specified on the command line, specified
65in the MOIRASERVER environment variable, the hesiod "moira" sloc entry,
66or the compiled in default, in that order or preference.
67
68.IP \fB-create\ \fRor\ \fB-C\fR
69This will create the specified container, with information provided by
70other options.
71.IP \fB-delete\ \fRor\ \fB-D\fR
72This will delete the specified container, if the container contains no
73machines.
74.IP \fB-rename\ \fInewname\ \fRor\ \fB-R\ \fInewname\fR
75This will rename the specified container to \fInewname\fR.
76
77.IP \fB-recursive\ \fRor\ \fB-r\fR
78When specified along with the
79\fB-listmach\fR
80or
81\fB-listsub\fR
82options, will provide a recursive listing.
83
84.IP \fB-listmach\ \fRor\ \fB-lm\fR
85This will list the machines that are members of the container. Use the
86\fB-r\fR
87flag for a recursive listing.
88.IP \fB-addmach\ \fIhostname\ \fRor\ \fB-am\ \fIhostname\fR
89This will add \fIhostname\fR to the specified container.
90.IP \fB-deletemach\ \fIhostname\ \fRor\ \fB-dm\ \fIhostname\fR
91This will remove \fIhostname\fR from the specified container.
92
93.IP \fB-listsub\ \fRor\ \fB-ls\fR
94This will list subcontainers of the specified container.  Use the
95\fB-r\fR
96flag for a recursive listing.
97
98.SH AUTHORS
99Garry Zacheiss, MIT Information Systems.
100.SH SEE ALSO
101moira(1)
102
103.SH DIAGNOSTICS
104An exit status of 2 indicates a problem contacting the server. An exit
105status of 1 indicates that the arguments could not be parsed or some
106query to the moira server returned an error. An exit status of 0
107indicates that all operations requested completed successfully.
108
109.SH NOTES
110The container name doesn't actually have to be the first argument, but
111if you put it anywhere else, it's easy to get the other arguments in the
112wrong order and do something other than what you intended.
113
Note: See TracBrowser for help on using the repository browser.