Re: remote ssh commands
Sean, Well when I just run the 'yum update -y' it runs it just fine but the && poweroff runs on the local machine. Also I have another script that does the following: #!/bin/bash for server in $(cat serverlist.txt); do ssh $server.localdomain 'poweroff' done and also running that just powers off the host. It seems that it will execute all except the poweroff command on remote servers On Tue, May 31, 2016 at 9:37 PM, seanwrote: > Could a bad dns record or host entry point one of the lines in the file > back to itself? > > Is the yum update also being run on the host? Try a different command in > the loop, e.g. 'echo $server > /tmp/test' should be a good troubleshooting > start. > On May 31, 2016 9:34 PM, "Nadim Hoque" wrote: > >> Its a virtual to virtual setup. All the guests are on the bridge >> connection that I have made so that they are on the same network. To answer >> your question I am not touching the VM host at all. >> >> On Tue, May 31, 2016 at 9:27 PM, sean wrote: >> >>> Are you running this on a virtual machine? If so, are you powering off >>> its host machine? >>> On May 31, 2016 9:22 PM, "Nadim Hoque" wrote: >>> Fellow Pluggers, So I am trying to perform a remote poweroff command and for some reason the host powers itself off. I am able to run another command such as yum just fine but when I try to execute the poweroff command the host turns off as well. Below is the script that I am running #!/bin/bash for server in $(cat serverlist.txt); do ssh $server.localdomain 'yum update -y && poweroff' done Also note that the serverlist.txt does not contain the host itself. Thanks for the help. Nadim Hoque --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss >>> >>> --- >>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org >>> To subscribe, unsubscribe, or to change your mail settings: >>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss >>> >> >> >> >> -- >> Nadim Hoque >> >> >> --- >> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org >> To subscribe, unsubscribe, or to change your mail settings: >> http://lists.phxlinux.org/mailman/listinfo/plug-discuss >> > > --- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > http://lists.phxlinux.org/mailman/listinfo/plug-discuss > -- Nadim Hoque --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
Re: remote ssh commands
You probably have a blank line in your serverlist.txt, resulting in $server being null: ping .localdomain PING .localdomain(localhost (::1%1)) 56 data bytes 64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.017 ms 64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.022 ms On Tue, May 31, 2016 at 9:22 PM, Nadim Hoquewrote: > Fellow Pluggers, > > So I am trying to perform a remote poweroff command and for some reason the > host powers itself off. I am able to run another command such as yum just > fine but when I try to execute the poweroff command the host turns off as > well. Below is the script that I am running > > > > #!/bin/bash > > for server in $(cat serverlist.txt); do >ssh $server.localdomain 'yum update -y && poweroff' > done > > Also note that the serverlist.txt does not contain the host itself. Thanks > for the help. > > Nadim Hoque > > > --- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > http://lists.phxlinux.org/mailman/listinfo/plug-discuss --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
Re: remote ssh commands
Could a bad dns record or host entry point one of the lines in the file back to itself? Is the yum update also being run on the host? Try a different command in the loop, e.g. 'echo $server > /tmp/test' should be a good troubleshooting start. On May 31, 2016 9:34 PM, "Nadim Hoque"wrote: > Its a virtual to virtual setup. All the guests are on the bridge > connection that I have made so that they are on the same network. To answer > your question I am not touching the VM host at all. > > On Tue, May 31, 2016 at 9:27 PM, sean wrote: > >> Are you running this on a virtual machine? If so, are you powering off >> its host machine? >> On May 31, 2016 9:22 PM, "Nadim Hoque" wrote: >> >>> Fellow Pluggers, >>> >>> So I am trying to perform a remote poweroff command and for some reason >>> the host powers itself off. I am able to run another command such as yum >>> just fine but when I try to execute the poweroff command the host turns off >>> as well. Below is the script that I am running >>> >>> >>> >>> #!/bin/bash >>> >>> for server in $(cat serverlist.txt); do >>>ssh $server.localdomain 'yum update -y && poweroff' >>> done >>> >>> Also note that the serverlist.txt does not contain the host itself. >>> Thanks for the help. >>> >>> Nadim Hoque >>> >>> >>> --- >>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org >>> To subscribe, unsubscribe, or to change your mail settings: >>> http://lists.phxlinux.org/mailman/listinfo/plug-discuss >>> >> >> --- >> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org >> To subscribe, unsubscribe, or to change your mail settings: >> http://lists.phxlinux.org/mailman/listinfo/plug-discuss >> > > > > -- > Nadim Hoque > > > --- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > http://lists.phxlinux.org/mailman/listinfo/plug-discuss > --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
Re: remote ssh commands
Its a virtual to virtual setup. All the guests are on the bridge connection that I have made so that they are on the same network. To answer your question I am not touching the VM host at all. On Tue, May 31, 2016 at 9:27 PM, seanwrote: > Are you running this on a virtual machine? If so, are you powering off its > host machine? > On May 31, 2016 9:22 PM, "Nadim Hoque" wrote: > >> Fellow Pluggers, >> >> So I am trying to perform a remote poweroff command and for some reason >> the host powers itself off. I am able to run another command such as yum >> just fine but when I try to execute the poweroff command the host turns off >> as well. Below is the script that I am running >> >> >> >> #!/bin/bash >> >> for server in $(cat serverlist.txt); do >>ssh $server.localdomain 'yum update -y && poweroff' >> done >> >> Also note that the serverlist.txt does not contain the host itself. >> Thanks for the help. >> >> Nadim Hoque >> >> >> --- >> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org >> To subscribe, unsubscribe, or to change your mail settings: >> http://lists.phxlinux.org/mailman/listinfo/plug-discuss >> > > --- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > http://lists.phxlinux.org/mailman/listinfo/plug-discuss > -- Nadim Hoque --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
Re: remote ssh commands
Are you running this on a virtual machine? If so, are you powering off its host machine? On May 31, 2016 9:22 PM, "Nadim Hoque"wrote: > Fellow Pluggers, > > So I am trying to perform a remote poweroff command and for some reason > the host powers itself off. I am able to run another command such as yum > just fine but when I try to execute the poweroff command the host turns off > as well. Below is the script that I am running > > > > #!/bin/bash > > for server in $(cat serverlist.txt); do >ssh $server.localdomain 'yum update -y && poweroff' > done > > Also note that the serverlist.txt does not contain the host itself. Thanks > for the help. > > Nadim Hoque > > > --- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > http://lists.phxlinux.org/mailman/listinfo/plug-discuss > --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
remote ssh commands
Fellow Pluggers, So I am trying to perform a remote poweroff command and for some reason the host powers itself off. I am able to run another command such as yum just fine but when I try to execute the poweroff command the host turns off as well. Below is the script that I am running #!/bin/bash for server in $(cat serverlist.txt); do ssh $server.localdomain 'yum update -y && poweroff' done Also note that the serverlist.txt does not contain the host itself. Thanks for the help. Nadim Hoque --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
Re: My printer died.
I have two MFC-9440CN older and bigger but they just keep going and one MFC-9660CDN at work. I also bought a used MFC-9440CN for home use (over kill) Todd On Tue, May 31, 2016 at 7:27 PM, Keith Smithwrote: > > > Hi, > > My all-in-one HP printer just died. It gave me 8 years. > > Recently someone mentioned that Brother makes a very good quality > printer. Had one about 16 years ago and swore them off... Maybe 16 years > is long enough. Looks like Staples has > http://www.staples.com/Brother-MFCL2700DW-Mono-Laser-All-In-One-Printer/product_1174233?akamai-feo=off > on sale for $149 and the toner cartridges seem to be decent priced also. > $50 for 2600 prints. > > Any other suggestions. Fax/Printer/Copier/Scanner. Would like with rj45 > so I can config on an IP. Will be printing from a Win 7 box and a Mint > box. > > I'll be making the purchase tomorrow morning. > > Thanks in advance!! > > Keith > --- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > http://lists.phxlinux.org/mailman/listinfo/plug-discuss > -- Todd Cole Ubuntu Arizona Team 4605 S PRIEST DR LOT 3 TEMPE AZ 85282-6507 to...@azloco.com 602-677-9402 --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss
My printer died.
Hi, My all-in-one HP printer just died. It gave me 8 years. Recently someone mentioned that Brother makes a very good quality printer. Had one about 16 years ago and swore them off... Maybe 16 years is long enough. Looks like Staples has http://www.staples.com/Brother-MFCL2700DW-Mono-Laser-All-In-One-Printer/product_1174233?akamai-feo=off on sale for $149 and the toner cartridges seem to be decent priced also. $50 for 2600 prints. Any other suggestions. Fax/Printer/Copier/Scanner. Would like with rj45 so I can config on an IP. Will be printing from a Win 7 box and a Mint box. I'll be making the purchase tomorrow morning. Thanks in advance!! Keith --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: http://lists.phxlinux.org/mailman/listinfo/plug-discuss