Skip to content

Commit a3008c5

Browse files
kcgthbthiell
authored andcommitted
xCAT bindings: lsdef seems to be much quicker than nodels for large groups, and especially for dynamic groups (#398)
1 parent 783dfa8 commit a3008c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

conf/groups.conf.d/xcat.conf.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#
88
[xcat]
99

10-
# this will list the nodes in the specified node group
11-
map: nodels $GROUP
10+
# list the nodes in the specified node group
11+
map: lsdef -s -t node $GROUP | cut -d' ' -f1
1212

13-
# as an example here, we use a group named 'server' containing all servers
14-
all: nodels server
13+
# list all the nodes defined in the xCAT tables
14+
all: lsdef -s -t node | cut -d' ' -f1
1515

1616
# list all groups
1717
list: lsdef -t group | cut -d' ' -f1

0 commit comments

Comments
 (0)