LSF Version 7.3 - Platform LSF Configuration Reference
Operating system Naming convention
UNIX
LSF_SERVERDIR\egroup
Windows
LSF_SERVERDIR\egroup.exe
or
LSF_SERVERDIR\egroup.bat
•
Run when invoked by the commands egroup –m hostgroup_name and egroup –u
usergroup_name. When mbatchd finds an exclamation mark (!) in the
GROUP_MEMBER column of lsb.hosts or lsb.users, mbatchd runs the egroup
command to invoke your egroup executable.
•
Output a space-delimited list of group members (hosts, users, or both) to stdout.
•
Retrieve a list of static hosts only. You cannot use the egroup executable to retrieve hosts
that have been dynamically added to the cluster.
The following example shows a simple egroup script that retrieves both host and user group
members:
#!/bin/sh
if [ "$1"="-m" ]; then #host group
if [ "$2"="linux_grp" ]; then #Linux hostgroup
echo "linux01 linux 02 linux03 linux04"
elif [ "$2"="sol_grp" ]; then #Solaris hostgroup
echo "Sol02 Sol02 Sol03 Sol04"
fi
else #user group
if [ "$2"="srv_grp" ]; then #srvgrp user group
echo "userA userB userC userD"
elif [ "$2"="dev_grp" ]; then #devgrp user group
echo "user1 user2 user3 user4"
fi
fi
External host and user groups behavior
On restart and reconfiguration, mbatchd invokes the egroup executable to retrieve external
host and user groups and then creates the groups in memory; mbatchd does not write the
groups to lsb.hosts or lsb.users. The egroup executable runs under the same user
account as mbatchd. By default, this is the root account on UNIX hosts and the cluster
administrator account on Windows hosts.
Once LSF creates the groups in memory, the external host and user groups work the same way
as any other LSF host and user groups, including configuration and batch command usage.
Configuration to modify external host and user groups
Not applicable: There are no parameters that modify the behavior of the egroup executable.
By defining additional parameters in lsb.hosts and lsb.users, however, you can
configure the behavior of your external host and user groups the same way as you would for
any LSF host or user group.
Feature: External host and user groups
118 Platform LSF Configuration Reference