mcd

Description

This command change the current working directory to the specified directory in the $FWDIR directory in the context of a Domain Management Server.

Syntax

mdsenv <IP Address or Name of Domain Management Server>

mcd <Name of Directory in $FWDIR>

Example

[Expert@MDS:0]# mdsstat
+-----------------------------------------------------------------------------------------------------+
|                                      Processes status checking                                      |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| Type | Name               | IP address      | FWM         | FWD         | CPD         | CPCA        |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| MDS  |          -         | 192.168.3.51    | up 15312    | up 15310    | up 10227    | up 15475    |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| CMA  | MyDomain_Server    | 192.168.3.240   | up 17225    | up 17208    | up 17101    | up 18402    |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+
| Total Domain Management Servers checked: 1     1 up   0 down                                        |
| Tip: Run mdsstat -h for legend                                                                      |
+-----------------------------------------------------------------------------------------------------+
[Expert@MDS:0]#
[Expert@MDS:0]#
[Expert@MDS:0]# mdsenv MyDomain_Server
[Expert@MDS:0]#
[Expert@MDS:0]# mcd
changing to /opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1/
[Expert@MDS:0]#
[Expert@MDS:0]# pwd
/opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1
[Expert@MDS:0]#
[Expert@MDS:0]# ls -1
av
bin
conf
cpm-server
database
doc
hash
lib
libsw
log
scripts
state
tmp
[Expert@MDS:0]#
[Expert@MDS:0]# mcd av
changing to /opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1/av
[Expert@MDS:0]#
[Expert@MDS:0]# mcd bin
changing to /opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1/bin
[Expert@MDS:0]#
[Expert@MDS:0]# mcd conf
changing to /opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1/conf
[Expert@MDS:0]#
[Expert@MDS:0]# mcd log
changing to /opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1/log
[Expert@MDS:0]#
[Expert@MDS:0]# mcd scripts
changing to /opt/CPmds-R81/customers/MyDomain_Server/CPsuite-R81/fw1/scripts
[Expert@MDS:0]#