IBM

lsb_hostinfo_cond

Returns condensed information about job server hosts.

lsb_hostinfo_cond returns condensed information about job server hosts. While lsb_hostinfo returns specific information about individual hosts, lsb_hostinfo_cond returns the number of jobs in each state within the entire host group. The condHostInfoEnt structure contains counters that indicate how many hosts are in the ok, busy, closed, full, unreach, and unavail states and an array of hostInfoEnt structures that indicate the status of each host in the host group.

#include <lsf/lsbatch.h>

struct condHostInfoEnt * lsb_hostinfo_cond (char **hosts, int *numHosts, char *resReq, int options)

Parameters:
**hosts An array of host names belonging to the host group.
*numHosts The number of host names in the host group. To get information on all hosts in the host group, set *numHosts to 0; *numHosts will be set to the actual number of hostInfoEnt structures in the host group when this call returns.
*resReq Any resource requirements called with the function.
options Any options called with the function.
Data Structures
condHostInfoEnt
hostInfoEnt
Define Statements:
none
Returns:
struct condHostInfoEnt *:
The condHostInfoEnt structure contains condensed information about the status of job server hosts in the host group. If there is no condensed host group matching the specified host, *name is set to NULL and *hostInfo contains specific host information to be displayed instead of the condensed host group information.
Function was successful.

NULL
Function failed.

<b Errors:
If the function fails, lsberrno is set to indicate the error.
Equivalent line commands:
none
Files:
none
See also:
lsb_hostinfo


     
Date Modified: 16 Jul 2014

Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.