You can use the ham_verbose() function to programmatically get or set (increase or decrease) the verbosity:
int ham_verbose(const char *nodename, int op, int value);
You can also use the hamctrl utility to interactively control the verbosity:
hamctrl -verbose /* increase verbosity */ hamctrl +verbose /* decrease verbosity */ hamctrl =verbose /* get current verbosity */
To operate on a remote HAM, use the hamctrl utility with the -node option:
hamctrl -node "nodename" -verbose /* increase verbosity */ hamctrl -node "nodename" +verbose /* decrease verbosity */ hamctrl -node "nodename" =verbose /* get current verbosity */
where nodename is a valid name that represents a remote (or local) node.