mdsenv

Description

Use the mdsenv command to set shell environment variables to run commands on a specified Domain Management Server.

When run without an argument, the command sets the shell for Multi-Domain Server level commands (mdsstart, mdsstop, and so on).

Syntax

mdsenv [<Name or IP address of Domain Management Server>]

Parameters

Parameter

Description

<Name or IP address of Domain Management Server>

Specifies the Domain Management Server by its name or IPv4 address.

Example

[Expert@MyMDS:0]# mdsstat
+-----------------------------------------------------------------------------------------------------+
|                                      Processes status checking                                      |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| Type | Name               | IP address      | FWM         | FWD         | CPD         | CPCA        |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| MDS  |          -         | 192.168.3.51    | up 10086    | up 11422    | up 5427     | up 11440    |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| CMA  | MyDomain_Server    | 192.168.3.240   | up 10891    | up 8199     | up 7670     | up 9536     |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| Total Domain Management Servers checked: 1     1 up   0 down                                        |
| Tip: Run mdsstat -h for legend                                                                      |
+-----------------------------------------------------------------------------------------------------+
[Expert@MyMDS:0]#
[Expert@MyMDS:0]# mdsenv MyDomain_Server
[Expert@MyMDS:0]#
[Expert@MyMDS:0]# echo $FWDIR
/opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1
[Expert@MyMDS:0]#