ADDHOSTS(1CLPVM)

NAME
pvm-addhosts - CLPVM Add hosts to the virtual machine.

SYNOPSIS
CL    (pvm-addhost clhost clnhost clinfo)

PARAMETERS

clhost
    A CL string of host names where names are separated with space or tab.

clnhost
    Integer specifying the number of hosts to be added.

clinfo
    A CL variable which returns the status for each host. Values less than zero indicate an error, while positive values are TIDs of the new hosts.

DISCUSSION
The routine pvm-addhosts adds the computers named in clhost to the configuration of computers making up the virtual machine. The names should have the same syntax as lines of a pvmd hostfile (see man page for pvmd3): A hostname followed by options of the form xx=y.

If pvm-addhosts is successful, it returns a integer that is equal to clnhost. Partial success is indicated by returning a integer between 0 and clnhost, and total failure by returning a integer < 0. The array clinfos can be checked to determine which host caused the error.

The status of hosts can be requested by the application using pvm-mstat and pvm-config. If a host fails it will be automatically deleted from the configuration. Using pvm-addhosts a replacement host can be added by the application, however it is the responsibility of the application developer to make his application tolerant of host failure. Another use of this feature would be to add more hosts as they become available, for example on a weekend, or if the application dynamically determines it could use more computational power.

EXAMPLES
CL:
	(pvm-addhosts "snake.mcs.kent.edu goat.mcs.kent.edu
			tiger.mcs.kent.edu" 3 'pids)

SEE ALSO
pvm-delhosts(1CLPVM), pvm-config(1CLPVM), pvm-mstat(1CLPVM)