Copyright (C) 2000-2012 |
GNU Info (am-utils.info)in_network Selector Functionin_network Selector Function ............................ If the current host has any network interface that is locally attached to the network specified in ARG (either via name or number), this selector evaluates to true. Otherwise it evaluates to false. For example, suppose you have two servers that have an exportable `/opt' that smaller clients can NFS mount. The two servers are say, `serv1' on network `foo-net.site.com' and `serv2' on network `123.4.5.0'. You can write a map to be used by all clients that will attempt to mount the closest one as follows: opt in_network(foo-net.site.com);rhost:=serv1;rfs:=/opt \ in_network(123.4.5.0);rhost:=serv2;rfs:=/opt \ rhost:=fallback-server automatically generated by info2www version 1.2.2.9 |