Create a file that has all of your hosts listed within it:
Then, on the central host:
I'm sure that there's an awk command to skip the first line, but it escapes me at the moment....
The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Hi all,
i am copying .gz files from production server to development server using
"scp" command.my requirement is after copying .gz files i want to delete old
.gz files(two days back) in development server from production server.
like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
I am trying to write a script that logs into an SMTP server and authenticates as a user or verifies that a user exists. I can do all this from the command line but I don't know how to write a script to do this for me, I login and then the script stops, I'm sure this is some basic principle. ... (3 Replies)
My question is very strange.
I can run ls command on remote host using ssh successfully. but when i try to run /sbin/md5 command on remote host. it doesnt run and get back to me on command prompt.
md5 command is exist on remote host.
This is what i tried which ran successfully.
Query -... (1 Reply)
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1.
When I do a who -m from A2, I see the "connected from" as "A1".
=> who -m
userid pts/2 2010-03-27 08:47 (A1)
I want to identify who is the local host who initiated the connection to... (3 Replies)
Hi All
I am having VxVm on two Solaris hosts. host1 is using disk group dgHR. right now this server went down due to hardware fault. Not I need to import this dgHR into host2 server. Please let me know the procedure for the same. (1 Reply)
Hi,
i want to write script where it will login into 50 hosts and if login is successful it print message "login to host1 is
successful" if not it should print message "Not able to login to host1". once connection to the host is succesful it should fire df command to check filesystem if df is... (3 Replies)
Hi,
Given addresses of 2 remote machines, using a shell script is it possible to
get the state of running processes in "src"
stop all the processes in "src"
exit out of "src"
ssh into "dest"
resume the state of executing processes captured in step 1 in "dest"
Assumption:
"src" is... (3 Replies)
Geeks,
Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s).
Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
5 Replies
LEARN ABOUT DEBIAN
slurm::hostlist
Slurm::Hostlist(3pm) User Contributed Perl Documentation Slurm::Hostlist(3pm)NAME
Slurm::Hostlist - Hostlist functions in libslurm
SYNOPSIS
use Slurm;
$hostnames = "node1,node[2-5,12]";
$hl = Slurm::Hostlist::create($hostnames);
$cnt = $hl->count;
$hl->push("node21,node[27-34]");
while($host = $hl->shift()) {
print $host, "
";
}
print $hl->ranged_string(), "
";
DESCRIPTION
The Slurm::Hostlist class is a wrapper of the hostlist functions in libslurm. This package is loaded and bootstrapped with package Slurm.
METHODS
$hl = Slurm::Hostlist::new($str);
Create a new hostlist from a string representation. Returns an opaque hostlist object. This is a CLASS METHOD.
The string representation ($str) may contain one or more hostnames or bracketed hostlists separated by either `,' or whitespace. A
bracketed hostlist is denoted by a common prefix followed by a list of numeric ranges contained within brackets: e.g. "tux[0-5,12,20-25]".
To support systems with 3-D topography, a rectangular prism may be described using two three digit numbers separated by "x": e.g.
"bgl[123x456]". This selects all nodes between 1 and 4 inclusive in the first dimension, between 2 and 5 in the second, and between 3 and 6
in the third dimension for a total of 4*4*4=64 nodes.
If $str is omitted, and empty hostlist is created and returned.
$cnt = $hl->count();
Return the number of hosts in the hostlist.
$pos = $hl->find($hostname);
Searches hostlist $hl for the first host matching $hostname and returns position in list if found.
Returns -1 if host is not found.
$cnt = $hl->push($hosts);
Push a string representation of hostnames onto a hostlist. The $hosts argument may take the same form as in create().
Returns the number of hostnames inserted into the list,
$cnt = $hl->push_host($hostname);
Push a single host onto the hostlist hl.
This function is more efficient than slurm_hostlist_push() for a single hostname, since the argument does not need to be checked for
ranges.
Return value is 1 for success, 0 for failure.
$str = $hl->ranged_string();
Return the string representation of the hostlist $hl. ranged_string() will write a bracketed hostlist representation where possible.
$host = $hl->shift();
Returns the string representation of the first host in the hostlist or `undef' if the hostlist is empty or there was an error allocating
memory. The host is removed from the hostlist.
$hl->uniq();
Sort the hostlist $hl and remove duplicate entries.
SEE ALSO
Slurm
AUTHOR
This library is created by Hongjia Cao, <hjcao(AT)nudt.edu.cn> and Danny Auble, <da(AT)llnl.gov>. It is distributed with SLURM.
COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2012-03-16 Slurm::Hostlist(3pm)