LSF API being called hosts loader:
int lsb_init(char *appname); Initializes the LSF batch library (LSBLIB), and obtains the configuration environment.
struct hostInfoEnt *lsb_hostinfo(char **hosts, int *numHosts); This is similar to calling the bhosts command.