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/
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)
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-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)
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)
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)
upgrade
(upgrade hs)
Run package update followed by an upgrade on hosts that were updated successfully: (upgrade hs)