To script telnet or ssh or ftp, I use pexpect; but for system administration of similar machines, I'm trying out tentakel (on OS X and Linux) and its ssh module.
Here's where I am so far:
- Download tentakel
- Expand it
- Go into that directory
- sudo make install
- mkdir .tentakel
- cd .tentakel
- cp /usr/local/share/doc/tentakel/tentakel.conf.example ~/. tentakel/tentakel.conf
If you get an error message, set PYTHONPATH to your site-packages directory.
Traceback (most recent call last):
File "/usr/local/bin/tentakel", line 42, in ?
import lekatnet.error as error
ImportError: No module named lekatnet.error
$ export PYTHONPATH=/usr/local/lib/python2.3/site-packages
Next stop, password-less ssh! It slows down the utility of tentakel running the same command on multiple machines when I have to enter my password serially.