GetPreferredSubnet

(RPC Manager Library)

Description: Returns the highest priority CIDR representation of subnet for the given machine name.
Warning: This statement should be used by advanced users only.
Returns: A CIDRClosed Classless Inter-Domain Routing format subnet address matching that provided in the NetPriority section or as provided to SetSubnetPriority
Usage: Script or Steady State
Function Groups: Network
Related to: GetSubnetPriority |GetLastUsedSubnet | SetSubnetPriority
Format: GetPreferredSubnet(RemoteMachine)
Parameters:  
RemoteMachine
Required text. A single string for the machine name of the remote system.
Comments:

Any setting done through this module is lost on restart of VTScada.

Returns a valid CIDR format string only if a priority is configured for the local system.

(See: [RPCMANAGER-NETPRIORITY] Section)