Networking :: How To Find Least Busy Host Given Hardcoded Host List?

Oct 12, 2010

I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh.Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host.Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine)

View 1 Replies


ADVERTISEMENT

Ubuntu Networking :: Transfer Files From Cluster To Host And Then Host To Another?

Mar 4, 2010

I am working on a cluster for a molecular dynamics class and I have to edit my FORTRAN code (only the newest and best for me!). In order to get through to the cluster I have to ssh in. The network on which the cluster resides is behind a firewall, so I have to ssh through the firewall into the network first.

this is fine, I can login and move files and folders as needed, including sftp-ing into host 1, then into the cluster so I can transfer files from cluster to host and then host to me. This gets rather tiresome, so it would be nice to edit the files in place.

The problem is that when I access my code with emacs it launches the emacs client on Host 1, with no mouse support. I know the purists will howl about how I should be using keyboard shortcuts, but I am a chemist and not a programmer, so the mouse is very nice for me. Is there any way I can perhaps mount the cluster using sshfs so that when I open my code it launches a local instance of emacs? Sorry if this is the wrong forum, but I thought it was network related.

View 3 Replies View Related

Networking :: Very Low Network Performance In Host-to-host Connections

Jan 27, 2009

The internal network is behind nat done by the PC Router.The TP Link is recieving wireless signal from outdoors and it has switching and basic routing capabilities. I'm using the PC router for better routing options.PC Router (or R for short) is a triple-booting machine - Linux, FreeBSD and Windows. It has two lan cards - external (ext_if) - 100Mbps Realtek 8139 and internal (int_if) - 1Gbps integrated Realtek 8169.The problem is that all traffic from R to the network is slow - about 5-20K, while the traffic in the oppoiste direction is all right - about 10MB that is fine for 100Mbps cables, NICs and switches. The problem persist no matter the OS the pc R is running.I've tried some debugging on the situation as follows:

- put another PC at the place of R - everything is fine. That exclude the possibility of damaged cables, RJ-45s, switches and etc.
- connected both of the NICs to the Internet while the internal network is being disconnected and they both work fine (no delays)
- traffic shaping is not running
- there is nothing in firewalls except NATing the internal network (and it is working fine). Actually these firewall rules have been operational for more than months and everything was fine untill a week or two ago.
- changed the internal NIC with another
- connected the internal network directly to the TP and all of the PCs are getting good network performance. Then connected the R machine to the TP as well and there was good performance between the internal network PCs and R.
- R has good performance to the TP. In fact everything has good performance directly to the TP (when not connecting trough R).
- the problem persist only between R and machines from the internal network.

View 2 Replies View Related

Ubuntu Networking :: Host Able To Ssh To FreeBSD Host?

May 19, 2010

So here's the setup:

Ubuntu 10.04 host inbound port 22 open
FreeBSD 8.0 host no inbound ports open

Both hosts are running sshd currently. What would you do for the Ubuntu host to be able to ssh to the FreeBSD host? A tunnel?

View 6 Replies View Related

Red Hat / Fedora :: CUPS 1.3.7 - "recoverable: Network Host 'xx.xx.x.xxx' Is Busy"?

May 2, 2010

We just migrated from Solaris to RHEL 5 this weekend. All our printers are working fine using CUPS except for one model. Zebra QL 320+ mobile/wireless printers. We can ping the IP and printer-id from the server fine. But when you try to print a job to it from the command line or a test page from the CUPS interface, the printer status in CUPS shows ""recoverable: Network host 'xx.xx.x.xxx' is busy".This is a major issue for us as we have lots of these printers. All other printers - all Ethernet are fine; including Ethernet Zebra printers.

View 2 Replies View Related

Server :: Host Unknown Error:Sendmail / Stat=Host Unknown (Name Server: Def-fgh.com.: Host Not Found)?

Sep 8, 2009

Many of mails sent from my mail server that are in Queue;The main reason is deffered by domains like yahoo,aol,etc.but there is one more error that i keep getting and that is Host Unknown,Below is an example from mail log,The catch is,test mail sent on the same email id sent from my personal mail from the same server i.e. url was deliveredHowever,another mail containing client information sent from customercare@mycompanysdomain ended up in queue.

There are more examples of the same,around 20 domain have the same problem.

Sep 7 14:33:46 server2 sendmail[24591]: n8793jiC024589: to=<abc@xyz.fi>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=163672, relay=xyz.fi., dsn=5.1.2, stat=Host unknown (Name server: xyz.fi.: host not found)

Sep 7 22:09:42 server2 sendmail[6407]: n87Gdffa006403: to=<abc@def-fgh.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=152474, relay=def-fgh.com., dsn=5.1.2, stat=Host unknown (Name server: def-fgh.com.: host not found)

View 2 Replies View Related

Fedora Networking :: VM Can Ping Host And Internet But Host Can't Ping VM

Jan 19, 2010

Host - Fedora 12 64bit
KVM
VM - Windows Server 2008 64 bit
bridge-utils

VM can ping host and Internet but host can't ping VM.

I set VM static IP 192.168.0.205.

It turns out dynamic IP - 192.168.0.55

On host:

View 2 Replies View Related

General :: Transfer Large Number Of Files Host To Host

Oct 20, 2010

I have two servers, one has an empty / and the other has a subdirectory with a large number (4 gig) with many, many files. I need a way to transfer the files en masse from the server with the large number of files to the one that is essentially blank.I don't have space on the used host to simply gzip all the files. I've googled this and see that there may be some combination of tar and/or gzip that will let me do this with some sort of redirection.

I really need and example line of how this can be accomplished. If my explanation seems rather sparse, I can supply more details.

View 3 Replies View Related

Server :: Apache2 Virtual Host Defaulting To Default Host

Oct 30, 2009

Bit of an odd one, this. I've migrated a website from my old server to a new machine. Both servers run Ubuntu + Apache2. Both only serve a single site, apart from the default site.I've flipped the domain name to the new IP address.The trouble is that after moving the virtual host config over into sites-available, with the necessary link in sites-enabled, Apache attempts to serve from the default web root (/var/www) rather than the actual site content (in /var/www/technology). So for example, an attempt to browse.

View 1 Replies View Related

Software :: Get Synergy Up And Running Between Windows 7 Host And Arch Host

Jul 3, 2011

I'm trying to get Synergy up and running between my Windows 7 (server) host and my Arch Linux (client) host. In rare exception, synergy works perfect on my windows host, however every time I try and run Synergy on my linux machine I get the following error in messages.log:

[code]...

I'm running Arch with a barebones Xorg install and SLiM with LXDE. I'm not sure what in the world is causing the problem and haven't been able to find anything of substance in a search.

View 2 Replies View Related

General :: Ssh: Connect To Host 192.168.100.xxx Port 22: No Route To Host

Mar 9, 2011

I'm trying to ssh from my laptop to my desktop (both fedora 14) over a local network. I can ping my desktop and get responses, but if I ssh to it, I receive

ssh: connect to host 192.168.100.xxx port 22: No route to host

I can ssh from the desktop to itself.

View 4 Replies View Related

General :: Get The Ip Address Of Host Using Of Host And Nslookup Command?

Oct 20, 2010

HOW TO GET THE IP ADDRESS OF HOST IN LINUX WITH USING OF HOST AND NSLOOKUP COMMAND and after getting the ip address how to assign it in the variable

View 4 Replies View Related

Programming :: Getting A Particular Field Replaced In A Host List?

Sep 30, 2010

I'm having a bit of a trouble getting a particular field replaced in a host list. I have a MasterHostList which has a comma delimiter for fields and a new line to separate servers.

server1,random,random,group1,random,random
server2,random,random,group1,random,random

I then have a file.list file with a grouping of server names. What I need is to search the MasterHostList and for each server that is in the file.list I need to change the fourth field from group1 to group2 without changing the order or position of anything in the MasterHostList. Obviously the above names are arbitrary.

Failed attempts have been: for SERVER in `cat file.list`; do sed /$SERVER/s/,group1,/,group2,/ MasterHostList MasterHostList.tmp && mv -f MasterHostList.tmp MasterHostList; done for SERVER in `cat file.list`;do awk 'BEGIN { FS=OFS="," } /^${SERVER}/ { $4 = "group2" } 1' ./MasterHostList MasterHostList.tmp && mv -f MasterHostList.tmp MasterHostList; done

Both of these would in various output tests find the correct lines, but it wouldn't change them all correctly.

View 3 Replies View Related

Programming :: Parse Text For Host List?

Feb 22, 2011

To run a parallel chemistry program, I need to build the host list. The cluster already has SGE(grid engine) installed and it generates a host list file with the following contents:

compute-1-1.local 2 all.q@compute-1-1.local UNDEFINED
compute-2-1.local 2 all.q@compute-1-1.local UNDEFINED

The important bits are hostname(ex compute-1-1) and number of cpus to use(ex 2). And for this program, it wants them in this form, a shell variable: HOSTLIST=hostname:cpus=X hostname:cpus=X .... I've tried this script, but it doesn't work

Code:

#!/bin/bash
spacer=":cpus="
let count=0

[code]....

View 5 Replies View Related

CentOS 5 Server :: VirtualHost Only Loads First Host In The List?

Dec 5, 2009

I am a novice with linux but I pick up stuff pretty quick so far I have been able to figure everything else out except this, I have read all the documentation on apache 2 and getting virtual hosts to work and it appears I have everything setup right but yet I still can't get it to work, I have googgled my brains out and I still can not figure out whats going on here is my setup.I have two websites that I am trying to get to load[URL]I have webmin installed and I'm using their utilities to setup virtualhost. heres how it looks in my http config:NameVirtualHost 24.189.245.44:80 ( I have tryed * in place of my external ip)

<VirtualHost *:80>
DocumentRoot /var/www/html/gamerbreed
ServerName gamerbreed.com

[code]....

View 3 Replies View Related

Ubuntu :: Copying A File By Rcp To Rcp Host To Host

May 9, 2011

I am a bit of a n00b when it come to linux but I am setting up a test environment were I have a appliance monitoring network traffic. Part of my test requires me to copy a file via RCP from one host to another host. I have two ubuntu boxes. I have allowed the subnet in the etchost.allow for ALL. I have installed rsh-server

When I try to copy the file it looks like it tried to use SCP instad of RCP because it connects to 22 instead of 544. Also note that traffic must be unecrypted thus me trying to use Is there anyway to make ubuntu go old school to allow me to use rcp instead?

Code:
testuser1@ubuntu:~$ rcp /home/testuser1/test.txt testuser1@10.46.41.38:/home/testuser1
ssh: connect to host 10.46.41.38 port 22: Connection refused
lost connection
testuser1@ubuntu:~$ rcp
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[Code]....

View 3 Replies View Related

CentOS 5 :: Should /etc/hosts Contain 127.0.0.1 Host.domain Host?

Nov 14, 2009

I have installed CentOS 5.4 machine named test.example.com (192.168.1.1)File /etc/hosts contains:127.0.0.1 test.example.com test localhost.localdomain localhostI have read that the loopback addres should not be assigned to host name,only to localhost and the host name should be assigned to 192.168.1.1, like this:127.0.0.1 localhost.localdomain localhost192.168.1.1 test.example.com testIs there any reason why it should be one or another way?

View 6 Replies View Related

Ubuntu :: Separate Virtual Host To List And Display All Contents In /var/lib/php5?

Apr 3, 2011

I have an ubuntu 8.04 server running a couple of web sites using virtual hosts , apache2, mysql and php. I have noticed that by default php sessions are created in /var/lib/php5 and all stored in plain text.

I have quickly created a php script in a separate virtual host to list and display all contents in /var/lib/php5 , and it seems incredibly easy to see what details the other accounts are storing in sessions.

View 1 Replies View Related

General :: What Do Host.allow And Host.deny Do Exactly?

Aug 5, 2009

What do host.allow and host.deny do exactly? what are they??

View 3 Replies View Related

Programming :: Bash/Perl Script - Provide List Of Hosts To Choose From And Ssh To Chosen Host?

Apr 6, 2010

I'm not sure if this is best done in Perl or Bash. I'm thinking surely someone else has created something close to what I'm looking for. The results of the script would be that someone would kick off "linux_hosts.sh" r whatever you want to call it, then a top "folder" of options (with hosts contained within each of these top menu choices), then, based on which number corresponds to that top level, they're presented with a set of linux hosts that are relevant to that top level name. Example:

$ linux_hosts.sh
1. VMware hosts 4. Private Domain
2. ESX servers 5. Red Hat boxes

[code]...

View 4 Replies View Related

Ubuntu :: Can't Find Samba Host With Some Users

Apr 3, 2011

If I try to connect to my Samba server with one user ("alex"), everything works fine. If I try to connect with a different user, ("guest"), I receive the error:

Code:
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Both users have been added as samba users using `smbpasswd -a`
These are the settings I've added in my smb.conf file:

[Code].....

View 6 Replies View Related

Ubuntu :: SSH Can't Find A Route To Host After Set Static IP

Apr 22, 2010

so on the host i'm trying to connect to, i have installed ssh server and it was working fine until i changed the /etc/network/interfaces file to set a static IP and then ran Code: sudo /etc/init.d/networking restart but now when i try to connect with SSH using the new static IP i get Code: ssh: connect to host 192.168.2.10 port 22: No route to host

View 6 Replies View Related

General :: Where To Find Host In Order To Put IP Address

Mar 27, 2010

a friend created an IP address for me.where do I find the Host in Linux in order to put the IP address.

View 2 Replies View Related

General :: Command To Find The OS Version Of Remote Host?

Dec 29, 2010

I'm in a situation, that I have no access to one of my remote server. And I CAN'T EVEN INSTALL ANY SOFTWARE in any linux boxes to determine the remote OS name and version.Can you please enlighten me on how could I find out the OS version of remote host without installing any software or without login to that server.

View 1 Replies View Related

Ubuntu :: How To Find Password For Email On Host Pop3.live.com ?

Nov 23, 2010

I just downloaded Ubuntu for my OS and am trying to setup my email.First it asks me for my password. How do i find the password for my email on host pop3.live.com ? Would it be the same as the one for my email account at hotmail? i don't get it. I don't remember setting up one for email on Evolution.Also when i try to send a message it says " Unable to connect to pop server pop3.live.com: No support for requested authentication mechanism.

View 9 Replies View Related

Programming :: Script To Find Local IP - Output Unknown Host

Nov 24, 2010

I want to find out my IP and I test this code from beej tutorial:

Code:
char hostname[128];
int i;
struct hostent *he;
struct in_addr **addr_list;
struct in_addr addr;

gethostname(hostname, sizeof hostname);
printf("My hostname: %s
", hostname);
he = gethostbyname(hostname);
if (he == NULL) { // do some error checking
herror("gethostbyname"); // herror(), NOT perror()
return 1;
} // print information about this host:
printf("Official name is: %s
", he->h_name);
printf("IP address: %s
", inet_ntoa(*(struct in_addr*)he->h_addr));
printf("All addresses: ");
addr_list = (struct in_addr **)he->h_addr_list;

for(i = 0; addr_list[i] != NULL; i++) {
printf("%s ", inet_ntoa(*addr_list[i]));
}
printf("
");
return 0;

But my output is this:
Code:
My hostname: vBx
gethostbyname: Unknown host

I heard that it works in windows, why isn't working in linux?

View 1 Replies View Related

Networking :: Connecting VM And Host With NFS?

Mar 4, 2010

I am currently running ubuntu on a qemu-kvm virtual machine, and the host is fedora. I would like to mount a folder of the host machine on my VM, but never succeeded. The result of the command is :

root@armnlib-kvm:~# mount -v 192.168.1.10:/nfs /nfs
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Thu Jul 7 06:02:43 2011

[code]....

And the showmount -e on the host gives :

Export list for cudak:
/nfs 10.0.2.15

View 9 Replies View Related

Networking :: Host Can't Ping VM?

Jan 19, 2010

Host - Fedora 12 64bit
KVM
VM - Windows Server 2008 64 bit
bridge-utils

VM can ping host and Internet but host can't ping VM.

I set VM static IP 192.168.0.205.

It turns out dynamic IP - 192.168.0.55

On host:
$ ping -c3 192.168.0.55
fails

View 2 Replies View Related

Networking :: Connecting VM And Host With NFS ?

Jul 7, 2011

I am currently running ubuntu on a qemu-kvm virtual machine, and the host is fedora.

I would like to mount a folder of the host machine on my VM, but never succeeded.

The result of the command is:

And the showmount -e on the host gives:

View 1 Replies View Related

Networking :: Domain Name And Host Name ?

Feb 23, 2011

Domain name which is registered on the DNS for an IP and the name of the host with that IP need not be the same. am i right? I mean domain name and host name need not be the same. Is this correct?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved