Skip to content
Michiel TJampens edited this page Jun 15, 2021 · 5 revisions

Commands

This page aims to give an overview of all the commands that aren't tied to a specific module. Because those can be found on the page of the module (at some point).

General

admin

  • admin:adddebugnode Adds a debug node with default values
  • admin:clock Get the current timestamp
  • admin:gc Fore a java garbage collection
  • admin:getlogs Get the latest logfiles
  • admin:gettasklog Get the taskmananger log
  • admin:haw Stop all workers
  • admin:ipv4 Get the IPv4 and MAC of all network interfaces
  • admin:ipv6 Get the IPv6 and MAC of all network interfaces
  • admin:methodcall Get the time passed since a certain LabelWorker method was called
  • admin:reboot Reboot the computer (linux only)
  • admin:regex,<regex>,<match> Test a regex
  • admin:sms Send a test SMS to the admin number

cmds

  • cmds List all available commands
  • cmds:word List all commands that start with the word
  • cmds:regex List all commands that match the regex

listthread

  • listthread or lt Give a list of all active threads

serialports

  • serialports Get a list of all serialports on the system (note: on linux this doesn't show the virtual ones)

shutdown

  • shutdown or sd Shutdown dcafs
  • shutdown:reason or sd:reason Shutdown dcafs but log the reason for it (will be included in the notification email)

sleep

  • sleep:rtc,period Let the pc sleep for the given time using the chosen rtc module (fe. sleep:1,5m) !only works on linux!

stop

  • stop Remove the origin of this command from the target lists (as in, remove its src's)

Handle xml's

retrieve

  • retrieve:tmscript,tmid,emailref/emailaddress If the TaskManager exists, send the script to the email address
  • retrieve:settings,emailref/emailaddress Send the settings.xml to the email address

Note: when send via email, if the email part is missing the from address will be used

update

  • update:tmscript,tmid Checks if the TaskManager exists, if so backup current script (to oldname_yyMMdd_HHmm.xml) and replace the original with the one in the attachment folder.
  • update:settings Backups the current settings.xml (to settings_yyMMdd_HHmm.xml). and replaces the original with the one in the attachment folder

Storing data

store

  • store:rtvalname,value Store the given value as the rtval with the name
Clone this wiki locally