X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fcussh.pl;h=320bf73b047323e71e56189bb58e67363469aedb;hb=e391ecd14e8c0f153d46e11213e0effc662ff3b8;hp=7357ad785e327ee71e73bc80e59602d46665dc6e;hpb=522aa06512b8c20dfda353ef3a74defe5ec66e4a;p=collectd.git diff --git a/contrib/cussh.pl b/contrib/cussh.pl index 7357ad78..320bf73b 100755 --- a/contrib/cussh.pl +++ b/contrib/cussh.pl @@ -186,7 +186,14 @@ sub putid { =cut sub cmd_help { - print < < < [ ...] + +Submits a value to the daemon. +HELP + getval => < + +Retrieves the current value or values from the daemon. +HELP + flush => <] [timeout=] [identifier=] [...] + +Sends a FLUSH command to the daemon. +HELP + listval => < < [...] message= + +Sends a notifications message to the daemon. +HELP + ); + + if (!$cmd) + { + $cmd = 'help'; + } + if (!exists ($text{$cmd})) + { + print STDOUT "Unknown command: " . uc ($cmd) . "\n\n"; + $cmd = 'help'; + } + + print STDOUT $text{$cmd}; + return 1; } # cmd_help