ls_clusterinfo
Returns general information about LSF clusters.This routine returns general configuration information about LSF clusters.
ls_clusterinfo returns an array of clusterInfo data structures, as defined in <lsf/lsf.h>. Each entry contains information about one cluster. The information includes cluster name, cluster status, the master host name, LSF primary administrator login name (for backward compatibility), LSF primary administrator user Id (for backward compatibility), total number of server hosts, total number of client hosts, available resource names, host types, host models, total number of LSF administrators, LSF administrator user Ids and LSF administrator login names.
The parameter resreq is designed to select eligible clusters that satisfy the given resource requirements from candidate clusters. This parameter is currently ignored. clusterlist gives a list of cluster names whose information should be returned, if they satisfy the resreq. If clusterlist is NULL, then all clusters known to LSF satisfying resreq will be returned. listsize gives the size of the clusterlist. If numhosts is not NULL, then *numhosts will be modified to return the number of clusters selected. The parameter options is currently ignored.
This routine returns a pointer to dynamically allocated data which can be freed in subsequent calls.
#include <lsf/lsf.h>
struct clusterInfo *ls_clusterinfo(char *resreq, int *numclusters, char **clusterlist, int listsize, int options)
Data Structures: Define Statements:
- Parameters:
*resreq Select eligible clusters that satisfy the given resource requirements from candidate clusters. This parameter is currently ignored. *numclusters If numclusters is not NULL, then *numclusters will be modified to return the number of clusters selected. **clusterlist Gives a list of cluster names whose information should be returned, if they satisfy the resreq. If clusterlist is NULL, then all clusters known to LSF satisfying resreq will be returned. listsize The size of the clusterlist. option The parameter options is currently ignored.
- none
Errors:
- Returns:
- struct clusterInfo *:A pointer to the cluster information.
Function was successful.NULL
Function failed.Equivalent line commands:
- If the function fails, lserrno is set to indicate the error.
Files:
- none
- $LSF_CONFDIR/lsf.shared
$LSF_CONFDIR/lsf.cluster.cluster_name
- See also:
- none
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.