'tsshbatch' Version 1.204 is now released and available for download at:
http://www.tundraware.com/Software/tsshbatch This is a major update with many bug fixes and improvements. Existing users will want to update sooner rather than later. The last public release was 1.177. --------------------------------------------------------------------- What Is 'tsshbatch'? -------------------- 'tsshbatch' is a server automation tool to enable you to issue commands to many servers without having to log into each one separately. When writing scripts, this overcomes the 'ssh' limitation of not being able to specify the password on the command line. 'tsshbatch' also understands basic 'sudo' syntax and can be used to access a server, 'sudo' a command, and then exit. 'tsshbatch' thus allows you to write complex, hands-off scripts that issue commands to many servers without the tedium of manual login and 'sudo' promotion. System administrators, especially, will find this helpful when working in large server farms. 'tsshbatch' is written in Python and requires the 'paramiko library. It has been tested on various Linux and FreeBSD variants. WHATSNEW For 'tsshbatch' 1.204 (Thu Dec 4 17:49:30 CST 2014) ---------------------------------------------------------------------- [NEW FEATURES] - Added the following builtin variables: __DATE__ # Date in YYYYMMDD format __DATETIME__ # Date and time in YYYYMMDDHHMMSS format __HOSTNAME__ # Full name of current host as passed to program __HOSTNUM__ # Count of host being processed, starting at 1 __HOSTSHORT__ # Leftmost component of hostname as passed to program __TIME__ # Time in HHMMSS format - Added an "execution variable". This runs a command of your choosing (on the local machine) and assigns the results to a user-defined variable. - Added -E to redirect all stderr output to stdout instead, - Added -T timeout option (default is 15 sec). - Added -a to allow program to continue after file transfer error. - Added -l logging option. Defaults to /dev/null. This fixes the error that was previously being reported: "No handlers could be found for logger "paramiko.transport" - Added -q for "quieter" output. [CHANGES] - File transfers now properly preserve the file's permissions. - Changed hostname separator from ':' to '-' when using the -G command. - The <HOSTNAME> and <HOSTSHORT> builtins have been replaced with the new builtins described above. - Error messages now more consistent and clear. - Test mode now expands variable references to their values for all variables except the builtins above (which are only evaluated at runtime). - Documentation has been rewritten and improved considerably. [BUG FIXES] - Fixed bug that prevented the proper dereferencing of __HOSTNAME|SHORT__ (formerly <HOSTNAME|SHORT>) in file transfer specifications. - Fixed bug that prevented variable substitution in hostnames. - Fixed bug that prevented '.define' variables from being substituted in file transfer specifications. - Fixed bug that only recognized sudo invocations if they were the first statement on a command line. All instances of the string "sudo " will now force sudo password prompting and processing. That string is ignored if it appears inside single- or double quotes. - Fixed a bug that intermittently occurred during password-based auth sessions because ssh-agent and key searching were still being used. - Fixed error reporting blowout when key-exchange auth fails. ---------------------------------------------------------------------------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ -- ---------------------------------------------------------------------------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ -- ---------------------------------------------------------------------------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ -- https://mail.python.org/mailman/listinfo/python-list