cmx_list_model (Get a Web system information model)
- Organization of this page
Format
-
To acquire the Web system information model
cmx_list_model [Common-arguments] -modeltype {SERVER|APPLICATION|RESOURCE|RESADAPTER|RESJAVABEANS|SERVEREX} [{-s web-system-name|-all|-r}]
-
To acquire a list of logical servers that are not associated with Web systems
cmx_list_model [Common-arguments] -ns
Function
-
To acquire the Web system information model
This command acquires the registered Web system information model and outputs the acquired results to standard output.
If the Web system name is specified in the -s option or in the cmx.websystem.name key of the .cmxrc file or the cmxclient.properties file, only that Web system name is the target.
-
To acquire a list of logical servers that are not associated with the Web system
This command acquires the list of logical servers that are not associated with the Web system and outputs the acquired results to standard output. The list also displays the logical server type.
Arguments
- -modeltype
-
Specifies the display targets.
-
SERVER
Displays the list of logical servers in the Web system information model.
-
APPLICATION
Displays the list of J2EE applications in the Web system information model.
-
RESOURCE#
Displays the list of resource adapters in the Web system information model.
-
RESADAPTER
Displays the list of resource adapters in the Web system information model.
-
RESJAVABEANS
Displays the list of JavaBeans resources in the Web system information model.
-
SERVEREX
Displays the list of logical servers in the Web system information model. The list also displays the logical server type.
# This is a compatibility argument. We recommend that you use RESADAPTER.
-
- -s web-system-name
-
Specifies the Web system name.
If you omit this option, the value set in the cmx.websystem.name key of the .cmxrc file or the cmxclient.properties file is used.
- -all
-
Displays all the registered Web systems.
- -r
-
Specify this option to display a list of J2EE applications or resource adapters.
- -ns
-
Displays the list of logical servers that are not associated with the Web system.
Output format
The cmx_list_model command is output in the CSV format.
-
To acquire the Web system information model
-
For the list of logical servers (when SERVER is specified)
logical-server-name, host-name, tier-type#, service-unit-name, web-system-name
- #
-
For logical user servers, a null character is output as the tier type.
-
For the list of logical servers (when SERVEREX is specified)
logical-server-name, logical-server-type, host-name, tier-type#, service-unit-name, web-system-name
- #
-
For logical user servers, a null character is output as the tier type.
-
For the list of applications associated with the Web system
application-display-name, application-version, web-system-name
-
For the list of registered J2EE applications
application-display-name, application-version
-
For the list of resource adapters associated with the Web system
resource-adapter-display-name, web-system-name
-
For the list of registered resource adapters
resource-adapter-display-name
-
For the list of JavaBeans resources associated with the Web system
JavaBeans-resource-display-name, web-system-name
-
For the list of registered JavaBeans resources
JavaBeans-resource-display-name
-
List of logical servers that are not associated with the Web system
logical-server-name, logical-server-type, host-name
Input and Output examples
-
List of logical servers (when SERVER is specified)
>cmx_list_model -modeltype SERVER cmx_Web01_Unit01_PRF_01, Host01, combined-tier, Unit01, Web01 cmx_Web01_Unit01_J2EE_01, Host01, combined-tier, Unit01, Web01 cmx_Web01_Unit01_HTTP_01, Host01, combined-tier, Unit01, Web01 cmx_Web01_Unit02_PRF_01, Host01, combined-tier, Unit02, Web01 cmx_Web01_Unit02_J2EE_01, Host01, combined-tier, Unit02, Web01 cmx_Web01_Unit02_HTTP_01, Host01, combined-tier, Unit02, Web01 cmx_Web02_Unit01_PRF_01, Host01, combined-tier, Unit01, Web02 cmx_Web02_Unit01_USER_01, Host01, , Unit01, Web02 ..
-
List of logical servers (when SERVEREX is specified)
>cmx_list_model -modeltype SERVER cmx_Web01_Unit01_PRF_01, PRF, Host01, combined-tier, Unit01, Web01 cmx_Web01_Unit01_J2EE_01, J2EEServer, Host01, combined-tier, Unit01, Web01 cmx_Web01_Unit01_HTTP_01, Webserver, Host01, combined-tier, Unit01, Web01 cmx_Web01_Unit02_PRF_01, PRF, Host01, combined-tier, Unit02, Web01 cmx_Web01_Unit02_J2EE_01, J2EEServer, Host01, combined-tier, Unit02, Web01 cmx_Web01_Unit02_HTTP_01, Webserver, Host01, combined-tier, Unit02, Web01 cmx_Web02_Unit01_PRF_01, PRF, Host01, combined-tier, Unit01, Web02 cmx_Web02_Unit01_USER_01, UserServer, Host01, , Unit01, Web02 ..
-
List of applications associated with Web systems
>cmx_list_model -modeltype APPLICATION App01, Ver01, Web01 App02, Ver02, Web02 App03, Ver01, Web02
-
List of registered applications
>cmx_list_model -modeltype APPLICATION -r App01, Ver01 App02, Ver01 App02, Ver02 App03, Ver01
-
List of resource adapters associated with Web systems
>cmx_list_model -modeltype RESADAPTER Rar01, Web01 Rar02, Web02
-
List of registered resource adapters
>cmx_list_model -modeltype RESADAPTER -r Rar01 Rar02 Rar03 Rar04
-
List of JavaBeans resources associated with Web systems
>cmx_list_model -modeltype RESJAVABEANS Jar01, Web01 Jar02, Web02
-
List of registered JavaBeans resources
>cmx_list_model -modeltype RESJAVABEANS -r Jar01 Jar02 Jar03 Jar04
-
List of logical servers that are not associated with Web systems
>cmx_list_model -ns PRF_01, PRF, Host01 J2EE_01, J2EEServer, Host01 HTTP_01, Webserver, Host01 ..
Return values
- 0:
-
The command is terminated normally.
- 1:
-
The command is terminated with a warning.
- 64:
-
The command is terminated abnormally.
Notes
-
If the -s option , the -all option , and the cmx.websystem.name key in the .cmxrc file or the cmxclient.properties file are all omitted, all the registered Web systems will be displayed.
-
When the Web system name is specified in the cmx.websystem.name key of the .cmxrc file or the cmxclient.properties file, you specify the -all option to acquire all the Web system models.
-
If modeltype SERVER and the -r option are specified simultaneously, an error occurs.
-
For Web systems of the integrated naming scheduler server, if you specify APPLICATION, RESOURCE, RESADAPTER, or RESJAVABEANS in the -modeltype option, nothing will be displayed.