1LAMNODES(1)                        LAM TOOLS                       LAMNODES(1)
2
3
4

NAME

6       lamnodes - Resolve LAM node/CPU notation to Unix hostnames.
7

SYNTAX

9       lamnodes [-chin] [<where>]
10

OPTIONS

12       -c          Suppress printing the CPU count for each node.
13
14       -h          Print the command help menu.
15
16       -i          Print IP addresses (instead of IP names)
17
18       -n          Suppress printing CPU count for each node
19

DESCRIPTION

21       The  lamnodes  command  is used to resolve LAM node/CPU nomenclature to
22       Unix hostnames.  It can be used to determine the current  running  con‐
23       figuration  of  the  LAM/MPI  run-time environment, and generate a boot
24       schema that can be used to launch LAM in the future.
25
26       By default, lamnodes will print out the node number, default  IP  name,
27       CPU  count, and per-node flags for each node in the running LAM.  geth‐
28       ostbyaddr(3) is used to obtain default hostnames.  If  gethostbyaddr(3)
29       fails, the IP number is displayed instead.
30
31       This  command  can  be  used  by  setup shell scripts (and the like) to
32       determine information from a currently-running LAM universe.  For exam‐
33       ple,  use  lamnodes to resolve particular CPUs and/or nodes to specific
34       unix hostnames.  In a batch environment, lamnodes can be used to deter‐
35       mine  which  CPUs share a common node (note that MPI_GET_PROCESSOR_NAME
36       can be used for a similar effect in an MPI program).
37
38       lamnodes also shows per-node flags.  Currently defined flags are:
39
40       origin      The node where lamboot was executed.
41
42       this_node   The node where lamnodes is running.
43
44       no_schedule The node will not be used to run MPI and  serial  processes
45                   when N and C are used to mpirun and lamexec.
46

EXAMPLES

48       lamnodes N -n
49           Display  IP names and CPU counts for all nodes.  This output can be
50           saved and later used with lamboot(1).
51
52       lamnodes C -n -c
53           Display the IP name of the nodes containing each CPU, and  suppress
54           the  LAM  node  number and CPU count.  This output can be saved and
55           later used with lamboot(1).
56

SEE ALSO

58       bhost(5), gethostbyaddr(3), lamboot(1)
59
60
61
62LAM 7.1.2                         March, 2006                      LAMNODES(1)
Impressum