Next: network_set, Previous: sclose, Up: Cluster execution [Index]

### 3.6 Get network information

Loadable Function: network_get_info (connections)

  Return an informational structure-array with one entry for each machine specified by connections.

  This function can only be successfully called at the client machine. See `pconnect` for a description of the connections variable. connections can contain all connections of the network, a subset of them, or a single connection. For the local machine (client), if contained in connections, some fields of the returned structure may be empty.

  The fields of the returned structure are `local_machine`: true for the connection representing the local machine, `nproc`: number of usable processors of the machine, `nlocaljobs`: configured number of local processes on the machine, `peername`: name of the machine (empty for local machine), `open`: true if the connection is open, `network_id`: uuid of the network, `real_node_id`: internal id assigned to node, `0` for client, servers starting with `1`.

  See also: pconnect, pserver, reval, psend, precv, sclose, parallel_generate_srp_data, select_sockets.