Server Wildcards

Reference:        Wildcard Toolbar
                        Wildcard Definitions
                        Alphabetical Commands List
                        Topical Commands List

The following wildcards may be used as placeholders for the server names.  Note that the length limitations are optional.  These wildcards are particularly useful when you are collecting the same file from a number of different locations using a server list.

%LN [ :<number> ]

Name of the local server.  May be limited to <number> characters using the options colon.

%RN [ :<number> ]

Name of the remote server.  May be limited to <number> characters using the options colon.

 

The %RN wildcard is resolved in two ways:

For any action that specifies a remote server, regardless of where it occurs.

For local actions occurring within an Each_Server conditional scope where the %RN appears somewhere in the text for the action.

This second case is extremely useful when you are processing multiple servers using the Each_Server scoping.  For example, the following command:

         :Log: Server name %RN

will be processed for each server as it “passes” through that section of the script.  However the command:

         :Log: Start server processing

will be processed just once.  This usage of %RN applies to all actions within the Each_Server scope.  It allows you to do purely local copies, runs, and writes, for each server.  It is also processed for file presence checking:

         :if: Present C:\Temp\%RN\Incoming.Txt
            :Log:  File present from %RN
         :End_if:

Finally, it may be used as a server name {%RN}, allowing you to write scripts that include a dynamic server list and process everything using this wildcard.