04-10-2008
And it failed ... how?
If you get error messages and don't post them here, you are wasting time.
The double quotes are not necessary unless you need to protect something in the command line from the local shell.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would I combine something like:
localserver# ssh remoteserver
remoteserver# find blah blah blah
into a one liner that would ssh to the remote server and run the find command, so I could put it in a script to automatically go out and run things on remote servers with out needed user... (2 Replies)
Discussion started by: LordJezo
2 Replies
2. Solaris
when i run a command on ALOM via ssh i get following error
ssh root@10.23.12.51 showhosts
Password:
Waiting for daemons to initialize...
Daemons ready
shell: Invalid credentials
how can i run commands without actually loging to the sc (3 Replies)
Discussion started by: fugitive
3 Replies
3. Shell Programming and Scripting
Hi All,
i have two machines like x and y . my requirement is i should connect to machine Y from x through ssh connection . and do some operation such as copy and move and delete files in Y machine .
i tried with this code but it is doing in machine x only . and i need to exit from Y when... (1 Reply)
Discussion started by: rateeshkumar
1 Replies
4. Shell Programming and Scripting
Scenario:
I currently manager a cluster at work which is on a private network and i constantly need to ssh to other clients for diags e.t.c. I created a debain client which i use as my gateway to get to all the clients on the private network and I then created a Shell menu script which will make... (4 Replies)
Discussion started by: defamer
4 Replies
5. UNIX for Dummies Questions & Answers
how to use ssh to run shell script on a remote machine?
ssh user@remote sh ./script.unx
i ran the above command
./script.unx HAS NOHUP COMMAND IN ITS BODY, I AM GETTING ERROR AS NOHUP NOT FOUND...
i tried to run that script from remote server, its working fine
do ineed to set... (6 Replies)
Discussion started by: only4satish
6 Replies
6. Shell Programming and Scripting
Hi all,
Is it possible to make this possible ?
$ echo $SKY_HOME
/var/sink/SKY
$ echo $SKY_HOME
/home/smily/SKY
$ ssh root@xyz "echo $SKY_HOME"
root@xyz 's password: ******
/home/smily/SKY wrong output
I was expecting the output as
/var/sink/SKY (3 Replies)
Discussion started by: linuxadmin
3 Replies
7. Shell Programming and Scripting
I use Ubuntu 10.04 in 2 virtual machines. In one machine I have installed Hudson and another machine is to run klocwork. Scenario is when I trigger a build in Hudson, the script has to run successful and call the Klocwork in VM2. In the build script I have given the following command to call... (1 Reply)
Discussion started by: bsreeram
1 Replies
8. Shell Programming and Scripting
Hello,
I am trying to create a ksh script to login to server and collect gather output of some command to troubleshoot some issue.
DATE=`date +%b.%d.%Y.%M.%H`
echo " Enter emp id to login to server"
read Eid
Eid=$Eid
echo " Enter hostname of the system"
read HOST
HOST=$HOST... (2 Replies)
Discussion started by: saurabh84g
2 Replies
9. Red Hat
I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99
Source Destination was UP, with IP 192.168.1.15.
This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies
10. UNIX for Advanced & Expert Users
I am trying to run an awk command inside of ssh and it is not working. These are AIX servers.
for i in `cat servers`; do ssh $i "/bin/hostname; df -g | awk '/dev/ && $4+0 > 70'"; done
server1
server2
server3
server4
I also tried these two methods and they did not work. It just seemed... (5 Replies)
Discussion started by: cokedude
5 Replies
LEARN ABOUT DEBIAN
watch-multiple-mimedefangs
WATCH-MULTIPLE-MIMDEFANGS(8) System Manager's Manual WATCH-MULTIPLE-MIMDEFANGS(8)
NAME
watch-multiple-mimdefangs.tcl - Keep an eye on a cluster of MIMEDefang machines
SYNOPSIS
watch-multiple-mimdefangs.tcl [-archive] machine-1 machine-2 ... machine-N
DESCRIPTION
watch-multiple-mimdefangs.tcl is a Tk script that graphically displays the status of mimedefang-multiplexor(8) on a cluster of machines.
Note that Tcl/Tk 8.4 or higher is required to run watch-multiple-mimdefangs.tcl.
If you supply the -archive command-line option, then watch-multiple-mimdefangs.tcl logs the output of md-mx-ctrl rawload for each machine.
The output for machine_name is logged in:
$HOME/.watch-multiple-mimedefangs/machine_name/data.
PREREQUISITES
To use watch-multiple-mimdefangs.tcl to monitor a cluster of machines, you need the following prerequisites:
o A UNIX-like machine with Tcl/Tk 8.4, the X window system and an SSH client. You also need "xterm" to use some of the features.
o The ability to SSH as root to all of the machines you want to monitor. Ideally, you should be using the SSH agent so that you can
SSH to the monitored machines as root without being prompted for a password or pass phrase.
o The program md-mx-ctrl on root's path on all the machines you want to monitor.
DISPLAY
For each machine specified on the command line, watch-multiple-mimdefangs.tcl creates a chart with five columns. The columns are:
o A button with the name of the machine. Clicking the button pops up a menu that lets you take various actions, as described later.
If all slaves on the machine are busy, the button turns yellow.
o A label showing the number of busy slaves in the form "busy/total", where total is the total number of slaves.
o A label showing the average number of messages per second over the last 10 seconds.
o A label showing the average number of milliseconds per scan over the last 10 seconds.
o A chart that graphs the average number of busy slaves, the average number of messages per second and the average scan time in mil-
liseconds, all averaged over the last 10 seconds.
MACHINE MENU
If you click on a machine name, a menu with three options pops up:
SSH Open an xterm session and ssh as root to the machine.
Busy Slaves
Monitor the busy slaves on the machine. If you click on the process-ID of a slave, an xterm will open up and the command "strace -s
100 -t -p pid" will be executed on the remote machine. This is Linux-specific, but you can edit watch-multiple-mimdefangs.tcl to
replace the command with your particular system's command for tracing system calls.
Delete Remove the machine from the list of machines being monitored.
ADDING A MACHINE
If you need to add a machine to the display, simply type the name of the machine in the "Add Machine:" box and press Enter.
AUTHOR
watch-multiple-mimdefangs.tcl was written by David F. Skoll.
SEE ALSO
mimedefang.pl(8), mimedefang-filter(5), mimedefang(8), mimedefang-protocol(7), md-mx-ctrl(8), watch-mimedefang(8)
4th Berkeley Distribution 12 January 2007 WATCH-MULTIPLE-MIMDEFANGS(8)