I've found it easier than both clusterssh and mtputty. I'm a bash scripting novice so likely not the most efficient or best option but seems to be pretty easy to manage. In addition to using clusterssh or mtputty, a simpile bash script can login to a list of remote servers using ssh, copy a file to each using scp and execute a script on each of the servers. this is my first post here so I cant upload images. You will need to create a folder named temp inside putty main folder and you might need to customize putty logging to save a file per ip or pear session. Putty -ssh -pw paaswd -m commands.txt 192.168.0.22 user_name paaswd Putty -ssh -pw paaswd -m commands.txt 192.168.0.21 user_name paaswd If you want to run the exact command list on every machine then you save it to a file and use another sheet to generate the command-line batch. cmd Command ip user name password Command templateĮcho /snmp set enabled=yes >temp\10.10.0.9.txt| putty -ssh -pw passwd -m temp\10.10.0.9.txt 10.10.0.9 user_name passwd /snmp set enabled=yesĮcho /snmp set enabled=yes >temp\10.10.0.31.txt| putty -ssh -pw passwd2 -m temp\10.10.0.31.txt 10.10.0.31 user_name2 passwd2 /snmp set enabled=yes it works like magic even if you have to customize the command for each server. I used an excel sheet to build cmd commands including putty ssh log-in then copy past the columns in a cmd window. And SendEnv in the local system's /etc/ssh/ssh_config or the user's local ~/.ssh/config is set to send it.I have recently figure out a way to do this easily. If AcceptEnv in the remote system's /etc/ssh/sshd_config is set to allow it. If you'd like to set it for an ssh session from the local end, you can do: TERM=termtype ssh. You can set that terminal type using TERM=termtype at a Bash prompt or in your ~/.bashrc or by doing this: TERM=termtype nmon One of those terminals has a good chance of working for you. ``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~ Look for lines that do not look like this: Replace "/lib/terminfo" with the path to your terminfo files. Or: for t in $(find /lib/terminfo -type f -print) do echo $t infocmp $(basename $t)| grep acsc done Try this command: for t in $(find /lib/terminfo -type f -print) do echo echo -n "$t " tput -T$(basename $t) acsc done Try modifying the commands below to look for them instead of acsc. Sgr0=\E[m\E(B, smcup=\E[?7h\E[?1l\E(B\E=, smkx=\E=,Īix uses two capabilities called box1 and box2. XMB Free 211.7MB 2021.8MB | Page Cycles 0.0 | Free x XMB Used 7980.3MB 26.2MB | Page Scans 0.0 | System 1x X Physical PageSpace | pages/sec In Out | FileSystemCx lqnmonqqqqqqqqr=ResourcesqqqqqqqqHost=sigloprodqqqqqqRefresh=2 secsqqq11:29.ġ Memory qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx For example nmon displays lqqx instead of the line drawing characters. I manage many AIX machines, generally version 5.3.īasic terminal function works just fine, but it seems like some things don't.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |