Skip to content

Automation: Verify Server Configuration

@AlanOrlikoski edited this page Mar 21, 2018 · 8 revisions

Must complete the steps to setup the CCF-VM automation script found on Automation-Setup: CCF-VM prior to running these tests

Testing OS Commands

Stop a Service (and the expected response)

~$ ssh -t -i otto_rsa ottomate@localhost os --service stop $(echo timesketch|base64)
Executing Operating System command
Attempting to stop/start/restart a service
WARNING!! This requires sudo privledges and the process will hang if a password is required
WARNING!! It is advised to only use this function with key-pair authentication
Stoping: timesketch
SUCCESS: CCF-VM Automation Engine Completed
Connection to localhost closed.

Verify TimeSketch service is stopped

~$ systemctl is-active timesketch
inactive

Start a Service (and the expected response)

~$ ssh -t -i otto_rsa [email protected] os --service start $(echo timesketch|base64)
Executing Operating System command
Attempting to stop/start/restart a service
WARNING!! This requires sudo privledges and the process will hang if a password is required
WARNING!! It is advised to only use this function with key-pair authentication
Starting / Restarting: timesketch
SUCCESS: CCF-VM Automation Engine Completed
Connection to 10.1.0.43 closed.

Verify TimeSketch service is started

~$ systemctl is-active timesketch
active