}
};
+Menu subnet_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Network Menu",
+ 5,
+ {
+ { ShowSubnetInfo, NULLMENU, 2, {
+ {"show","Get network information"},
+ {"name","Network's Name: "}
+ } },
+ { AddSubnet, NULLMENU, 2, {
+ {"add","Add a new network"},
+ {"name","Network's Name: "},
+ } },
+ { UpdateSubnet, NULLMENU, 2, {
+ {"update","Update network information"},
+ {"name","Network's Name: "},
+ } },
+ { DeleteSubnet, NULLMENU, 2, {
+ {"delete","Delete this network"},
+ {"name","Network's Name: "}
+ } },
+ SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
+ }
+};
+
+Menu cname_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Host Alias Menu",
+ 4,
+ {
+ { ShowCname, NULLMENU, 3, {
+ {"show","Get host alias information"},
+ {"alias","Alias Name (Cname): "},
+ {"host","Canonical Host Name: "}
+ } },
+ { AddCname, NULLMENU, 3, {
+ {"add","Add a new host alias"},
+ {"alias","Alias Name (Cname): "},
+ {"host","Canonical Host Name: "}
+ } },
+ { DeleteCname, NULLMENU, 3, {
+ {"delete","Delete this alias"},
+ {"alias","Alias Name (Cname): "},
+ {"host","Canonical Host Name: "}
+ } },
+ SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
+ }
+};
+
/*
* Machine Menu
*/
NULLFUNC,
NULLFUNC,
"Machine Menu",
- 6,
+ 7,
{
{ ShowMachineInfo, NULLMENU, 2, {
{"show","Get machine information"},
{"name","Machine's Name: "}
} },
+ { ShowMachineQuery, NULLMENU, 4, {
+ {"query", "Lookup machines"},
+ {"name", "Machine Name (or leave empty to match any): "},
+ {"address", "Address in dotted notation (or leave empty to match any): "},
+ {"location", "Location (or leave empty to match any): "},
+ {"contact", "Contact person (or leave empty to match any): "}
+ } },
{ AddMachine, NULLMENU, 2, {
{"add","Add a new machine"},
- {"name","Machine's Name: "},
+ {"network","Network assignment: "},
} },
{ UpdateMachine, NULLMENU, 2, {
{"update","Update machine information"},
{"delete","Delete this machine"},
{"name","Machine's Name: "}
} },
+ SUBMENU("cnames","Alias names for machines", &cname_menu),
SUBMENU("mappings","Machine To Cluster Mappings Menu", &mappings_menu),
- SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
}
};
{ShowUserByClass, NULLMENU, 2, {
{"class", "Show names of users in a given class"},
{"login name", "Desired class: "}
- } },
+ } },
+ {ShowUserById, NULLMENU, 2, {
+ {"id", "Show user information by ID number"},
+ {"ID number", "ID number: "}
+ } },
{UpdateUser, NULLMENU, 2, {
{"modify", "Change all user fields"},
{"login", "Login name: "}
{"login", "Login name: "}
} },
SUBMENU("pobox", "Post Office Box Menu", &pobox_menu),
- SUBMENU("quota", "Quota Menu", "a_menu),
SUBMENU("krbmap", "User Kerberos Mappings", &krbmap_menu),
}
};
NULLFUNC,
NULLFUNC,
"Moira Database Manipulation",
- 11,
+ 12,
{
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("machine","Machine Menu", &machine_menu),
+ SUBMENU("network", "Network Menu", &subnet_menu),
SUBMENU("nfs","NFS Physical Menu", &nfsphys_menu),
- SUBMENU("user","User Menu", &user_menu),
- SUBMENU("printcap", "Printcap Printer Menu", &printer_menu),
SUBMENU("palladium", "Palladium Printer Menu", &palladium_menu),
+ SUBMENU("printcap", "Printcap Printer Menu", &printer_menu),
+ SUBMENU("user","User Menu", &user_menu),
SUBMENU("zephyr", "Zephyr ACLS Menu", &zephyr_menu),
SUBMENU("dcm", "DCM Menu", &dcm_menu),
SUBMENU("misc", "Miscellaneous Menu", &misc_menu)