}
};
+
+/*
+ * Miscellaneous Menu
+ */
+
+Menu misc_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Miscellaneous Menu",
+ 4,
+ {
+ SIMPLEFUNC("statistics", "Show database statistics", TableStats),
+ SIMPLEFUNC("clients", "Show active SMS 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 ------------------------- */
/*
NULLFUNC,
NULLFUNC,
"Sms Database Manipulation",
- 8,
+ 9,
{
SUBMENU("cluster","Cluster Menu",&cluster_menu),
SUBMENU("filesys","Filesystem Menu", &filesys_menu),
SUBMENU("nfs","NFS Physical Menu", &nfsphys_menu),
SUBMENU("user","User Menu", &user_menu),
SUBMENU("printer", "Printer Menu", &printer_menu),
- SUBMENU("dcm", "DCM Menu", &dcm_menu)
+ SUBMENU("dcm", "DCM Menu", &dcm_menu),
+ SUBMENU("misc", "Miscellaneous Menu", &misc_menu)
}
};