getChildren getTypes getValue help list

wsadmin Command Reference 5-7 Examples The following example returns a wrapper object for the OracleAdminServer. server = OracleMWConfig.getChildByNameServer,OracleAdminServer The following example returns a wrapper object for the OracleAdminServer on Test01Node03. server = OracleMWConfig.getChildByNameServer,OracleAdminServer,TEST01Node03

5.1.9 getChildren

Returns a list of wrapper objects of the specified type. Syntax OracleMWConfig.getChildrentype Example This example lists all servers: servers = OracleMWConfig.getChildrenServer print servers Serverdmgr, ServerOracleAdminServer, Servernodeagent, Serversoa_server1, Servertest, ServerMyserver

5.1.10 getTypes

Returns a subset of the child elements of was-config from the config-was schema, plus JDBC. Syntax OracleMWConfig.getTypes Example This example shows the output of getTypes. OracleMWConfig.getTypes array[SIBus, Server, ServerCluster, JDBC, ClusterMember], java.lang.String

5.1.11 getValue

Returns the value for the specified attribute. See setValue for related information. Syntax Object.getValueattributeName Argument Definition type The child element type. Use the getTypes command to list valid types Argument Definition attributeName The name of the attribute whose value you want to retrieve 5-8 Configuration Guide for IBM WebSphere Application Server Example This example retrieves the node name for the adminServer object, which is defined as the Administration Server OracleAdminServer. adminServer = OracleMWConfig.getChildByName’Server’,’OracleAdminServer’ print adminServer.getValue’NodeName’ Node01

5.1.12 help

Displays help information for the specified OracleMWConfig command. If you omit the argument, this command displays the list of OracleMWConfig commands. For more information about displaying help, see Using the Oracle Fusion Middleware wsadmin Command-Line Online Help in Oracle Fusion Middleware Third-Party Application Server Guide. Syntax OracleMWConfig.helptopic Example The following command displays the help for the OracleMWConfig.copyFile command: print OracleMWConfig.helpcopyFile Copies a file or directory to a location within WebSpheres configuration repository. Syntax: OracleMWConfig.copyFilesrc, scope, wasRelativePath, configGroup src - path of the file or directory to be copied. scope - one of these values: cell, node, cluster or server. wasRelativePath - destination path, which is relative to the oracle directory within the WebSphere profile. configGroup - a server group name defined in config-groups.xml. This is ignored if the scope is cell. Example: OracleMWConfig.copyFilecompDomainDir, cell, fmwconfig, NoneOracleMWConfig.copyFilecompServerDir, server, fmwconfig, JRF-ADMIN-SVR

5.1.13 list

Lists the names of all elements of the specified type, which must be an assignable type. Syntax OracleMWConfig.listassignableType Argument Definition topic The command for which you want to display help wsadmin Command Reference 5-9 Example The following example lists all application elements in the cell. OracleMWConfig.listApplication array[wsil-wls, FMW Welcome Page Application_11.1.0.0.0], java.lang.String

5.1.14 loadTemplates