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/
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 hs url)
Open a browser url: (browse-to hs "github.com")
Open a browser url: (browse-to hs "github.com")
(copy-file hs src dest)
Copy a local file to hosts
Copy a local file to hosts
(cpu-persist hs)
Collect CPU and idle usage with persistence (metrics collection): (cpu-persist hs)
Collect CPU and idle usage with persistence (metrics collection): (cpu-persist hs)
(deploy {:keys [auth] :as hs} bin)
Deploy re-gent and setup .curve remotely: (deploy hs "re-gent/target/re-gent")
Deploy re-gent and setup .curve remotely: (deploy hs "re-gent/target/re-gent")
(du-persist hs)
Collect disk usage with persist (metrics collection): (du-persist hs)
Collect disk usage with persist (metrics collection): (du-persist hs)
(failing hs)
A workflow that always fail: (failing hs)
A workflow that always fail: (failing hs)
(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 ))
Filter a sub group out of the provided hosts, the filtering function gets OS information: (filter-hosts hs (fn [os] TODO ))
(host-info hs)
Hosts information using oshi: (host-info hs)
Hosts information using oshi: (host-info hs)
(host-scan hs network)
Scan for running hosts on the network: (host-scan hs "192.168.1.0/24")
Scan for running hosts on the network: (host-scan hs "192.168.1.0/24")
(inactive-firewall hs)
Find hosts with inactive firewall: (inactive-firewall hs)
Find hosts with inactive firewall: (inactive-firewall hs)
(install hs pkg)
Install a package on hosts: (install hs "openjdk8-jre")
Install a package on hosts: (install hs "openjdk8-jre")
(kill hs)
Kill a re-gent process on all of the hosts: (kill hs)
Kill a re-gent process on all of the hosts: (kill hs)
(launch {:keys [auth] :as hs})
Start a re-gent process on hosts: (launch hs)
Start a re-gent process on hosts: (launch hs)
(listing hs)
List directories under / on the remote hosts: (listing hs)
List directories under / on the remote hosts: (listing hs)
(load-persist hs)
Read average load and persist is (metrics collection): (load-persist hs)
Read average load and persist is (metrics collection): (load-persist hs)
(low-disk hs f)
Detect machines with low available disk space: (low-disk (fn [p] TODO))
Detect machines with low available disk space: (low-disk (fn [p] TODO))
(net-persist hs)
Collect networking in/out kbps and persist (metric collection): (net-persist hs)
Collect networking in/out kbps and persist (metric collection): (net-persist hs)
(open-file hs src)
Open a file using a remote browser: (open-file hs "/home/foo/bar.pdf")
Open a file using a remote browser: (open-file hs "/home/foo/bar.pdf")
(pakage-fix hs)
Attempt to fix a broken package provider (like apt) by applying common known fixes. (package-fix hs)
Attempt to fix a broken package provider (like apt) by applying common known fixes. (package-fix hs)
(port-scan hs network)
Scan for running open ports on the network: (port-scan hs "192.168.1.0/24")
Scan for running open ports on the network: (port-scan hs "192.168.1.0/24")
(ports-persist hs network)
Scan for open ports and persist into ES: (ports-persist hs "192.168.1.0/24")
Scan for open ports and persist into ES: (ports-persist hs "192.168.1.0/24")
(process-matching hs target)
Find processes matching target name: (process-matching hs "ssh"); find all ssh processes
Find processes matching target name: (process-matching hs "ssh"); find all ssh processes
(provision hs {:keys [src args]})
Sync Reconf source code into the remote machine and apply it: (provision hs {:src "base-sandbox"})
Sync Reconf source code into the remote machine and apply it: (provision hs {:src "base-sandbox"})
(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"})
Pull latest git repository changes: (pull hs {:repo "re-core" :branch "master" :remote "git://github.com/re-ops/re-mote.git"})
(puppet-run hs {:keys [src args]})
Sync Puppet source code into the remote machine and apply it: (provision hs {:src "base-sandbox"})
Sync Puppet source code into the remote machine and apply it: (provision hs {:src "base-sandbox"})
(ram-persist hs)
Collect free and used RAM usage with persistence (metrics collection): (ram-persist hs)
Collect free and used RAM usage with persistence (metrics collection): (ram-persist hs)
(setup)
Setup Re-mote environment as a part of the Reload workflow
Setup Re-mote environment as a part of the Reload workflow
(single h & m)
Create a single hosts instance
Create a single hosts instance
(spec hs src target)
Run spec test against hosts (spec hs "/home/foo/base-sandbox" "minimal")
Run spec test against hosts (spec hs "/home/foo/base-sandbox" "minimal")
(temperature-persist hs)
Collect CPU temperature (using lm-sensors) and persist (metric collection): (temperature-persist hs)
Collect CPU temperature (using lm-sensors) and persist (metric collection): (temperature-persist hs)
(tofrom desc)
Email configuration used to send emails
Email configuration used to send emails
(update hs)
Update the package repository of the hosts: (update hs)
Update the package repository of the hosts: (update hs)
(upgrade hs)
Run package update followed by an upgrade on hosts that were updated successfully: (upgrade hs)
Run package update followed by an upgrade on hosts that were updated successfully: (upgrade hs)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close