https://github.com/phildini/catherder
A system for managing multiple hosts.
https://github.com/phildini/catherder
Last synced: about 1 year ago
JSON representation
A system for managing multiple hosts.
- Host: GitHub
- URL: https://github.com/phildini/catherder
- Owner: phildini
- Created: 2012-02-17T22:30:30.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-17T22:42:16.000Z (over 14 years ago)
- Last Synced: 2025-03-23T18:57:13.072Z (about 1 year ago)
- Language: Shell
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Here are some friendly commands you can use for automating ssh-based network operations.
INSTALL:
$ sudo ./install.sh
and you're done!
USAGE:
$ fab is_up
(checks if the hosts in the hosts file are up and reachable)
$ fab host_type
(returns the host type of every host in the hosts file)
$ fab shutdown
(shuts down all hosts in the hosts file)
$ fab key_copy
(tries to copy your id_rsa.pub to all hosts in the hosts file, so that you can log in without a password.
Note that you must first generate a key with $ ssh-keygen -t rsa)
HOSTS FILE:
To define the hosts you want to run against, edit the hosts file with a full host string, eg:
root@192.168.1.1
Note that the user must be a user you have access to, and you need the full user@host for this script to work.
Have fun!