Skip to main content

Extendable command line utility for sysadmins

Project description

An extendable utility for doing everything with self-defined hosts/hostgroups, utilizing API of your environment, with parallel ssh out of the box with a shell mode.

Examples:

swk pssh 'frontend([0-1][0-9]|2[0-5]),-frontend00' grep '/api/do_something' /var/log/nginx/access.log
swk gather ^frontend /var/log/nginx/access.log ./nginx-logs-from-production
swk ssh foohost,barhost,zeehost uptime

Shell mode:

swk> pssh ^mysql mysql -e 'show variables like "read_only"' >> ./read_only.tmp
swk> pssh ^mysql mysql -e 'show variables like "%format%"' | grep innodb

For more examples, please refer to README at https://github.com/trueneu/swiss-knife

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swk-0.0.4a9.tar.gz (20.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page