static char rcsid_module_c[] = "$Header$";
#endif lint
-/* This is the file menus.c for the SMS Client, which allows a nieve
- * user to quickly and easily maintain most parts of the SMS database.
+/* This is the file menus.c for the MOIRA Client, which allows a nieve
+ * user to quickly and easily maintain most parts of the MOIRA database.
* It Contains: All menu definitions.
*
* Created: 4/11/88
#include "f_defs.h"
#include "globals.h"
+
/* ------------------------- Second Tier Menus ------------------------- */
/*
{"label", "Label Identifing the data: "},
{"data", "The data to be added: "},
} },
- { RemoveClusterData, NULLMENU, 4, {
- {"delete", "Remove Data to a given Cluster"},
+ { RemoveClusterData, NULLMENU, 3, {
+ {"delete", "Remove Data from a given Cluster"},
{"clus", "Cluster's Name: "},
{"label", "Label Identifing the data: "},
- {"data", "The data to be removed: "},
} },
SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
}
NULLFUNC,
NULLFUNC,
"List Information Menu",
- 5,
+ 3,
{
SIMPLEFUNC("member",
"Show all lists to which a given member belongs",
SIMPLEFUNC("admin",
"Show all items which a given member can administer",
ListByAdministrator),
- SIMPLEFUNC("groups", "Show all lists which are groups",
- ListAllGroups),
SIMPLEFUNC("public", "Show all public mailing lists",
ListAllPublicMailLists),
- SIMPLEFUNC("maillists", "Show all mailing lists",
- ListAllMailLists)
}
};
NULLFUNC,
NULLFUNC,
"Quota Menu",
- 7,
+ 8,
{
SIMPLEFUNC("shdef", "Show default user quota (in KB)", ShowDefaultQuota),
{ChangeDefaultQuota, NULLMENU, 2, {
{"chdef", "Change default user quota"},
{"quota", "New quota (in KB): "}
} },
- SIMPLEFUNC("shquota", "Show a user's disk quota on a filesytem",
- ShowUserQuota),
- SIMPLEFUNC("addquota", "Add a new disk quota for user on a filesytem",
- AddUserQuota),
- SIMPLEFUNC("chquota", "Change a user's disk quota on a filesytem",
- ChangeUserQuota),
- SIMPLEFUNC("rmquota", "Remove a user's disk quota on a filesytem",
- RemoveUserQuota),
+ SIMPLEFUNC("getquota", "Show a quota on a filesystem",
+ GetQuota),
+ SIMPLEFUNC("getfsquotas", "Show all quotas on a filesystem",
+ GetQuotaByFilesys),
+ SIMPLEFUNC("addquota", "Add a new disk quota on a filesystem",
+ AddQuota),
+ SIMPLEFUNC("upquota", "Change a quota on a filesystem",
+ UpdateQuota),
+ SIMPLEFUNC("delquota", "Delete a quota on a filesystem",
+ DeleteQuota),
SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
}
};
+Menu fsgroup_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Filesystem Group Menu",
+ 6,
+ {
+ { GetFS, NULLMENU, 2, {
+ {"get", "Get individual or group filesystem information"},
+ {"name", "Name of Filesystem: "}
+ } },
+ { AddFSToGroup, NULLMENU, 3, {
+ {"add", "Add a new filesystem to an FS group"},
+ {"group", "FS Group name: "},
+ {"filsys", "Filesystem name: "}
+ } },
+ { RemoveFSFromGroup, NULLMENU, 3, {
+ {"remove", "Remove a filesystem from an FS group"},
+ {"group", "FS Group name: "},
+ {"filsys", "Filesystem name: "}
+ } },
+ { ChangeFSGroupOrder, NULLMENU, 2, {
+ {"order", "Change the order of filesystems in a group"},
+ {"group", "FS Group name: "}
+ } },
+ SIMPLEFUNC("help", "Info on Filesystem Groups", FSGroupHelp),
+ SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
+ }
+};
+
+Menu service_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "DCM Service Menu",
+ 6,
+ {
+ { showserv, NULLMENU, 2, {
+ { "showserv", "Show service information" },
+ { "service name", "Name of service: " },
+ } },
+ { addserv, NULLMENU, 2, {
+ { "addserv", "Add a new service" },
+ { "service name", "Name of service: " },
+ } },
+ { updateserv, NULLMENU, 2, {
+ { "updateserv", "Update service information" },
+ { "service name", "Name of service: " },
+ } },
+ { resetsrverr, NULLMENU, 2, {
+ { "resetsrverr", "Reset service error" },
+ { "service name", "Name of service: " },
+ } },
+ { resetsrvc, NULLMENU, 2, {
+ { "resetsrvc", "Reset service state" },
+ { "service name", "Name of service: " },
+ } },
+ { delserv, NULLMENU, 2, {
+ { "delserv", "Delete service info" },
+ { "service name", "Name of service: " },
+ } },
+ }
+};
+
+Menu host_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "DCM Host Menu",
+ 7,
+ {
+ { showhost, NULLMENU, 3, {
+ { "showhost", "Show service/host tuple information" },
+ { "service name", "Name of service: " },
+ { "host name", "Name of machine: " },
+ } },
+ { addhost, NULLMENU, 3, {
+ { "addhost", "Add a new service/host tuple" },
+ { "service name", "Name of service: " },
+ { "host name", "Name of machine: " },
+ } },
+ { updatehost, NULLMENU, 3, {
+ { "updatehost", "Update a service/host tuple" },
+ { "service name", "Name of service: " },
+ { "host name", "Name of machine: " },
+ } },
+ { resethosterr, NULLMENU, 3, {
+ { "resethosterr", "Reset service/host error" },
+ { "service name", "Name of service: " },
+ { "host name", "Name of machine: " },
+ } },
+ { resethost, NULLMENU, 3, {
+ { "resethost", "Reset service/host state" },
+ { "service name", "Name of service: " },
+ { "host name", "Name of machine: " },
+ } },
+ { sethostor, NULLMENU, 3, {
+ { "override", "Set service/host override" },
+ { "service name", "Name of service: " },
+ { "host name", "Name of machine: " },
+ } },
+ { delhost, NULLMENU, 3, {
+ { "delhost", "Delete service/host tuple" },
+ { "service name", "Name of service: " },
+ { "host name", "Name of machine: " },
+ } },
+ }
+};
+
/* ------------------------- First Tier Menus ------------------------- */
/*
{"get", "Get Filesystem Name Information"},
{"name", "Name of Filesystem: "}
} },
+ { GetFSM, NULLMENU, 2, {
+ {"getmach", "Get Filesystems by Machine"},
+ {"name", "Name of Server: "}
+ } },
{ AddFS, NULLMENU, 2, {
{"add", "Add New Filesystem to Database"},
{"name", "name: "},
{"delete", "Delete Filesystem"},
{"name", "Filesystem Name: "}
} },
+ SUBMENU("fsgroups", "File System Groups Menu", &fsgroup_menu),
{ GetFSAlias, NULLMENU, 2, {
{"check", "Check An Association"},
{"name", "alias name : "}
{"name", "alias name : "},
} },
SUBMENU("quotas","Quota Menu", "a_menu),
- SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode),
- SIMPLEFUNC("help", "Help ..", AttachHelp)
+/* SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode), */
+/* SIMPLEFUNC("help", "Help ..", AttachHelp) */
}
};
NULLFUNC,
NULLFUNC,
"List Menu",
- 10,
+ 9,
{
{ ShowListInfo, NULLMENU, 2, {
{"show", "Display information about a list"},
SUBMENU("list_info", "List Info Menu",
&list_info_menu),
SUBMENU("quotas","Quota Menu", "a_menu),
- SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode),
+/* SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode), */
SIMPLEFUNC("help", "Print Help", ListHelp)
}
};
}
};
+Menu krbmap_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "User Kerberos Mapping Menu",
+ 3,
+ {
+ { GetKrbmap, NULLMENU, 3, {
+ { "show", "Show Kerberos Mappings" },
+ { "user", "User login name: " },
+ { "principal", "Principal: " },
+ } },
+ { AddKrbmap, NULLMENU, 3, {
+ { "add", "Add Kerberos Mapping" },
+ { "user", "User login name: " },
+ { "principal", "Principal (this is case sensitive): " },
+ } },
+ { DeleteKrbmap, NULLMENU, 3, {
+ { "delete", "Delete Kerberos Mapping" },
+ { "user", "User login name: " },
+ { "principal", "Principal: " },
+ } },
+ }
+};
+
/*
* User Menu
*/
{"modify", "Change all user fields"},
{"login", "Login name: "}
} },
-/* SIMPLEFUNC("chpw", "Change a user's password", change_user_password), */
SIMPLEFUNC("adduser", "Add a new user to the database",
AddNewUser),
SIMPLEFUNC("register", "Register a user", RegisterUser),
{"expunge", "Expunge user"},
{"login", "Login name: "}
} },
-/* {DeleteUserByUid, NULLMENU, 2, {
- {"udelete", "Delete user by uid"},
- {"uid", "User ID (not MIT ID!): "}
- } }, */
SUBMENU("pobox", "Post Office Box Menu", &pobox_menu),
SUBMENU("quota", "Quota Menu", "a_menu),
- SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
+ SUBMENU("krbmap", "User Kerberos Mappings", &krbmap_menu),
}
};
+Menu dcm_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "DCM Menu",
+ 6,
+ {
+ SIMPLEFUNC("enable", "Enable/disable DCM", EnableDcm),
+ SUBMENU("service", "DCM Service Menu", &service_menu),
+ SUBMENU("host", "DCM Host Menu", &host_menu),
+ SIMPLEFUNC("active", "Display entries currently being updated",
+ InProgress),
+ SIMPLEFUNC("failed", "Display entries with errors to be reset",
+ DcmFailed),
+ SIMPLEFUNC("dcm", "Invoke a DCM update now", Dcm),
+ }
+};
+
+/*
+ * Printcap Printer Menu
+ */
+
+Menu printer_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Printer Menu",
+ 4,
+ {
+ { GetPcap, NULLMENU, 2, {
+ {"get", "Get Printcap Entry Information"},
+ {"name", "Name of Printer: "}
+ } },
+ { AddPcap, NULLMENU, 2, {
+ {"add", "Add New Printcap Entry to Database"},
+ {"name", "name: "},
+ } },
+ { ChngPcap, NULLMENU, 2, {
+ {"change", "Update Printer Information"},
+ {"name", "name: "},
+ } },
+ { DeletePcap, NULLMENU, 2, {
+ {"delete", "Delete Printcap Entry"},
+ {"name", "Printer Name: "}
+ } }
+ }
+};
+
+
+/*
+ * Palladium Printer Menu
+ */
+
+Menu palladium_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Printer Menu",
+ 7,
+ {
+ { GetPalladium, NULLMENU, 2, {
+ {"get", "Get Palladium Server/Supervisor Information"},
+ {"name", "Name of Printer: "}
+ } },
+ { AddPalladium, NULLMENU, 2, {
+ {"add", "Add New Palladium Server/Supervisor to Database"},
+ {"name", "Supervisor/server name: "},
+ } },
+ { ChngPalladium, NULLMENU, 2, {
+ {"change", "Update Palladium Server/Supervisor Information"},
+ {"name", "name: "},
+ } },
+ { DeletePalladium, NULLMENU, 2, {
+ {"delete", "Delete Palladium Server/Supervisor Entry"},
+ {"name", "Printer Name: "}
+ } },
+ { ShowPalladiumAlias, NULLMENU, 3, {
+ {"getprinter", "Show Logical Printers"},
+ {"newname", "Printer name: "},
+ {"server", "Supervisor or Server name: "},
+ } },
+ { AddPalladiumAlias, NULLMENU, 3, {
+ {"addprinter", "Add Logical Printer"},
+ {"newname", "New printer: "},
+ {"server", "Supervisor or Server name: "},
+ } },
+ { DeletePalladiumAlias, NULLMENU, 3, {
+ {"delprinter", "Remove Logical Printer"},
+ {"newname", "Printer name: "},
+ {"server", "Supervisor or Server name: "},
+ } },
+ }
+};
+
+
+
+/*
+ * Zephyr Menu
+ */
+
+Menu zephyr_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Zephyr Menu",
+ 5,
+ {
+ { GetZephyr, NULLMENU, 2, {
+ {"get", "Get Zephyr Class Information"},
+ {"name", "Name of class: "}
+ } },
+ { AddZephyr, NULLMENU, 2, {
+ {"add", "Add New Zephyr class restrictions"},
+ {"name", "Class name: "},
+ } },
+ { ChngZephyr, NULLMENU, 2, {
+ {"change", "Update Zephyr class restrictions"},
+ {"name", "Class name: "},
+ } },
+ { DeleteZephyr, NULLMENU, 2, {
+ {"delete", "Delete Zephyr class restriction"},
+ {"name", "Class Name: "}
+ } },
+ { NULLFUNC, &list_member_menu, 2, {
+ {"members", "Member Menu - Change/Show Members of a List."},
+ {"list name", "Name of list: "}
+ } },
+ }
+};
+
+
+/*
+ * Miscellaneous Menu
+ */
+
+Menu misc_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Miscellaneous Menu",
+ 4,
+ {
+ SIMPLEFUNC("statistics", "Show database statistics", TableStats),
+ SIMPLEFUNC("clients", "Show active Moira clients", ShowClients),
+ { ShowValue, NULLMENU, 2, {
+ {"getval", "Show a database variable value"},
+ {"name", "variable name: "},
+ } },
+ { ShowAlias, NULLMENU, 3, {
+ {"getalias", "Show an alias relation"},
+ {"name", "Alias name: "},
+ {"type", "Alias type: "},
+ } },
+ }
+};
+
+
/* ------------------------- Root Menu ------------------------- */
/*
- * Sms top menu
+ * Moira top menu
*/
-Menu sms_top_menu = {
+Menu moira_top_menu = {
NULLFUNC,
NULLFUNC,
- "Sms Database Manipulation",
- 6,
+ "Moira Database Manipulation",
+ 11,
{
SUBMENU("cluster","Cluster Menu",&cluster_menu),
SUBMENU("filesys","Filesystem Menu", &filesys_menu),
SUBMENU("list","Lists and Group Menu", &list_menu),
SUBMENU("machine","Machine Menu",&machine_menu),
SUBMENU("nfs","NFS Physical Menu", &nfsphys_menu),
- SUBMENU("user","User Menu", &user_menu)
+ SUBMENU("user","User Menu", &user_menu),
+ SUBMENU("printcap", "Printcap Printer Menu", &printer_menu),
+ SUBMENU("palladium", "Palladium Printer Menu", &palladium_menu),
+ SUBMENU("zephyr", "Zephyr ACLS Menu", &zephyr_menu),
+ SUBMENU("dcm", "DCM Menu", &dcm_menu),
+ SUBMENU("misc", "Miscellaneous Menu", &misc_menu)
}
};
-