3.7.0 HP StorageWorks HP Scalable NAS File Serving Software command reference guide HP Scalable NAS for Linux (AG513-96003, October 2009)

To connect to a different server, include the --matrix option and specify the server
name on the command line. For example, the following command connects to server
acme1 as user admin using the password secret1.
mx --matrix srv1 server status
Use wildcards
You can use wildcards in the .matrixrc file to match machine names:
srv* root secret1
srv3 root secret1 default
In the following command, --matrix srv8 matches the wildcard. When the
--matrix option is not specified, the connection is made to srv3, the default; the
machine specified as the default cannot contain a wildcard.
mx --matrix srv8 server status
If you specify any server names in addition to the wildcard, the wildcard must be at
the end of the list of servers as in the above example. The wildcard matches servers
according to the order in which they are listed in the file and can mask other entries
that appear below it in the list.
Group servers
This method allows mx to connect to any available server in the cluster without the
need to specify a server name on the command line. To use this method, enclose the
server entries in brackets, as in the following example for the prod cluster.
# production cluster
prod {
srv1 root secret1
srv2 root secret1
srv3 root secret1 default
}
To connect to the cluster, include the option --matrix prod in the mx command.
mx first attempts to access srv3, the default. If that server is not available, the command
tries the other servers in the group.
If your servers mostly use the same username and password, to simplify configuring
the .matrixrc file, you can specify those values following the cluster name. You
then only need to specify the values if they are different for a particular server.
In the following example, the values root, secret1, and default are specified.
The default value tells mx to first attempt to connect to the default server, and then
HP Scalable NAS File Serving Software command reference guide 87