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
- make
- sudo make install
- cd
- 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.
$ tentakel
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
$ tentakel
interactive mode
tentakel(default)> quit
$
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.
No comments:
Post a Comment