Remote Commands

Community post

Shared by the Applicare community. It has not been re-checked against Applicare 10.0, so confirm the steps in your environment or contact Support.

Remote Commands can be used to execute scripts or processes on servers where Applicare agents are running. They can be configured to run as specific users (On Unix based systems where sudo is available) and scheduled to run periodically using cron like schedules.

Open Remote Commands

Click the "Menu" icon at the top right corner of the screen and select "Remote Commands".

[Screenshot 1 is not available on this page.]

[Screenshot 2 is not available on this page.]

Configuration

Click the "Settings" icon at the top right corner of the screen for configuration.

[Screenshot 3 is not available on this page.]

Commands

NameA unique name to identify the command in Applicare console
ServerApplicare agent which will be running this command
CommandScript or command to execute
Start in (optional)Specify the path from where the command should execute
Timeout (Minutes)Applicare will automatically terminate the process if it does not complete by the number of minutes specified here
Username (optional)You can execute the commands as a specific user on the target server. This can be overridden when executing commands manually. (Only supported on operating systems with sudo installed)
Password (optional)Password of the user if you have specified a username. This can be overridden when executing commands manually

Command configuration

  1. Enter the command name.
  2. Select the server from the server dropdown.
  3. Enter the command to execute.
  4. Specify the timeout duration. By default, it will be 1.
  5. Click the Save button to save the settings.
  6. The below grid will display all the saved commands.

[Screenshot 4 is not available on this page.]

Run the command

Select the command from the grid and click the "Run" button to run the command.

[Screenshot 5 is not available on this page.]

Provide the username and password if needed and click the "Run" button in the alert.

[Screenshot 6 is not available on this page.]

View the Execution Results

Click the "arrow" icon at the top right corner of the screen to view the execution results.

[Screenshot 7 is not available on this page.]

Individual command Results

In the grid, the status column specifies whether the command is executed successfully or not.

Select the command from the grid to view the individual results.

[Screenshot 8 is not available on this page.]

Success Command

[Screenshot 9 is not available on this page.]

Failed Command

[Screenshot 10 is not available on this page.]

Edit command

  1. Select the row from the command grid and click the "Edit" button to edit the command details.
  2. Update the needed details and click the "Update" button to save the settings.

Note: Name field is non-editable.

[Screenshot 11 is not available on this page.]

Delete command

  1. Select the row from the command grid and click the "Delete" button to delete the command.

[Screenshot 12 is not available on this page.]

Command Groups

You can group multiple commands on a server into a group. Commands in the group will be executed in the order specified. As with commands its possible to execute the group as a specific user on operating systems where sudo is available.

Command Group Configuration

Click the "Settings" icon at the top right corner of the screen for configuration.

[Screenshot 13 is not available on this page.]

Command Group Configuration

  1. Enter the command name.
  2. Select the server from the server dropdown.
  3. Click the "plus" icon. It will display all the saved commands for that server.
  4. Select one or more commands from the grid and click the "Add" button to add the commands.
  5. Click the Save button to save the settings.
  6. The below grid will display all the saved commands.

[Screenshot 14 is not available on this page.]

Run the Command Group

Select the command from the grid and click the "Run" button to run the command.

[Screenshot 15 is not available on this page.]

Provide the username and password if needed and click the "Run" button in the alert.

[Screenshot 16 is not available on this page.]

Click the "OK" button in the alert.

[Screenshot 17 is not available on this page.]

View the Execution Results

Click the "arrow" icon at the top right corner of the screen to view the execution results.

[Screenshot 18 is not available on this page.]

By Selecting the group command from the top grid will display the subgrid which contains individual commands for that particular group

[Screenshot 19 is not available on this page.]

Command Group Results

In the subgrid, the status column specifies whether the command is executed successfully or not.

Select the command from the grid to view the Standard output or error for that particular command.

Success Command

[Screenshot 20 is not available on this page.]

Failed Command

[Screenshot 21 is not available on this page.]

Edit command

  1. Select the row from the command grid and click the "Edit" button to edit the command details.
  2. Update the needed details and click the "Save" button to save the settings.

Note: Name field is non-editable.

[Screenshot 22 is not available on this page.]

Delete command

  1. Select the row from the command grid and click the "Delete" button to delete the command.

[Screenshot 23 is not available on this page.]

Command Schedules

It's possible to schedule commands and command groups to run periodically using Cron like scheduling expressions.

Please refer the below link for Cron Expressions

https://helpdesk.arcturustech.com/hc/en-us/community/posts/360043215552-Cron-Expression

Click the "Settings" icon at the top right corner of the screen for configuration.

[Screenshot 24 is not available on this page.]

Command Schedule Configuration

  1. Select the server from the server dropdown.
  2. Select the commands from the Command/Group dropdown.
  3. Enter the cron expression.
  4. Click the "Save" button to save the settings.
  5. The below grid will display all the saved commands.

[Screenshot 25 is not available on this page.]

View the Execution Results

Click the "arrow" icon at the top right corner of the screen to view the execution results.

[Screenshot 26 is not available on this page.]

[Screenshot 27 is not available on this page.]

Edit command

  1. Select the row from the command grid and click the "Edit" button to edit the command details.
  2. Update the needed details and click the "Update" button to save the settings.

[Screenshot 28 is not available on this page.]

Delete command

  1. Select the row from the command grid and click the "Delete" button to delete the command.

[Screenshot 29 is not available on this page.]

Join the discussion

Comments, voting and following are kept by Zendesk and need a Help Center account. This button opens the original discussion there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support