re-mote.repl

Main remote workflow functions of Re-mote, it includes functions for performing a range of operations from updating packages to running an Nmap scan and collecting metrics. For more info check https://re-ops.github.io/re-ops/

browse-to

(browse-to hs url)

Open a browser url: (browse-to hs “github.com”)

copy-file

(copy-file hs src dest)

Copy a local file to hosts

cpu-persist

(cpu-persist hs)

Collect CPU and idle usage with persistence (metrics collection): (cpu-persist hs)

deploy

(deploy {:keys [auth], :as hs} bin)

Deploy re-gent and setup .curve remotely: (deploy hs “re-gent/target/re-gent”)

du-persist

(du-persist hs)

Collect disk usage with persist (metrics collection): (du-persist hs)

failing

(failing hs)

A workflow that always fail: (failing hs)

filter-hosts

(filter-hosts hs f)

Filter a sub group out of the provided hosts, the filtering function gets OS information: (filter-hosts hs (fn [os] TODO ))

host-hardware-info

(host-hardware-info hs)

Hosts information using oshi: (host-info hs)

host-os-info

(host-os-info hs)

Hosts information using oshi: (host-info hs)

host-scan

(host-scan hs network)

Scan for running hosts on the network: (host-scan hs “192.168.1.0/24”)

inactive-firewall

(inactive-firewall hs)

Find hosts with inactive firewall: (inactive-firewall hs)

install

(install hs pkg)

Install a package on hosts: (install hs “openjdk8-jre”)

kill

(kill hs)

Kill a re-gent process on all of the hosts: (kill hs)

launch

(launch {:keys [auth], :as hs})

Start a re-gent process on hosts: (launch hs)

listing

(listing hs)

List directories under / on the remote hosts: (listing hs)

load-persist

(load-persist hs)

Read average load and persist is (metrics collection): (load-persist hs)

net-persist

(net-persist hs)

Collect networking in/out kbps and persist (metric collection): (net-persist hs)

open-file

(open-file hs src)

Open a file using a remote browser: (open-file hs “/home/foo/bar.pdf”)

pakage-fix

(pakage-fix hs)

Attempt to fix a broken package provider (like apt) by applying common known fixes. (package-fix hs)

port-scan

(port-scan hs network)

Scan for running open ports on the network: (port-scan hs “192.168.1.0/24”)

ports-persist

(ports-persist hs network)

Scan for open ports and persist into ES: (ports-persist hs “192.168.1.0/24”)

process-matching

(process-matching hs target)

Find processes matching target name: (process-matching hs “ssh”); find all ssh processes

provision

(provision hs {:keys [src args]})

Sync Reconf source code into the remote machine and apply it: (provision hs {:src “base-sandbox”})

pull

(pull hs {:keys [repo remote branch]})

Pull latest git repository changes: (pull hs {:repo “re-core” :branch “master” :remote "git://github.com/re-ops/re-mote.git"})

ram-persist

(ram-persist hs)

Collect free and used RAM usage with persistence (metrics collection): (ram-persist hs)

setup

(setup)

Setup Re-mote environment as a part of the Reload workflow

single

(single h & m)

Create a single hosts instance

spec

(spec hs src target)

Run spec test against hosts (spec hs “/home/foo/base-sandbox” “minimal”)

temperature-persist

(temperature-persist hs)

Collect CPU temperature (using lm-sensors) and persist (metric collection): (temperature-persist hs)

tofrom

(tofrom desc)

Email configuration used to send emails

update

(update hs)

Update the package repository of the hosts: (update hs)

upgrade

(upgrade hs)

Run package update followed by an upgrade on hosts that were updated successfully: (upgrade hs)