構成コマンドの呼び出し、 および WebSphere Application Server 構成のエレメントの作成または変更 (例えばデータ・ソースの作成) を行う場合には、 AdminConfig オブジェクトを使用します。
操作がローカルに限定されている場合には、サーバーを実行せずにスクリプト・クライアントを開始できます。 ローカル・モードで実行するには、-conntype NONE オプションを使用して、 スクリプト・クライアントを開始します。 ローカル・モードで実行中であるというメッセージを受け取ります。 サーバーが現在稼働中の場合、AdminConfig ツールをローカル・モードで実行することはお勧めしません。 これは、ローカル・モードで行った構成変更は稼働サーバーの構成に反映されず、 稼働サーバーで行った構成変更はローカル・モードの構成に反映されないためです。 競合する構成を保管すると、 構成が破損するおそれがあります。
デプロイメント・マネージャー環境では、 スクリプト・クライアントがデプロイメント・マネージャーに接続されている場合にのみ、 構成の更新が可能です。
ノード・エージェントまたは管理対象アプリケーション・サーバーに 接続されている場合は、構成を更新することはできません。これらのサーバー・プロセスの構成が、 デプロイメント・マネージャーにあるマスター構成の コピーであるためです。このコピーは、デプロイメント・マネージャーとノード・エージェントの間で 構成の同期が行われる際に、ノード・マシン上に作成されます。サーバー・プロセスに対する構成変更は、 スクリプト・クライアントをデプロイメント・マネージャーに接続して 行います。このため、構成を変更する際には、 ノード・マシン上でスクリプト・クライアントをローカル・モードで実行しないでください。 そのような構成はサポートされません。
所定のタイプの最上位の属性のリストを戻すには、attributes コマンドを使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
"properties Property*" "serverSecurity ServerSecurity" "server Server@" "id Long" "stateManagement StateManageable" "name String" "moduleVisibility EEnumLiteral(MODULE, COMPATIBILITY, SERVER, APPLICATION)" "services Service*" "statisticsProvider StatisticsProvider"
例
$AdminConfig attributes ApplicationServer
print AdminConfig.attributes('ApplicationServer')
checkin コマンドは、文書 URI で記載されている構成リポジトリーにファイルをチェックインするために使用します。 このメソッドは、デプロイメント・マネージャー構成にのみ適用されます。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
"properties Property*" "serverSecurity ServerSecurity" "server Server@" "id Long" "stateManagement StateManageable" "name String" "moduleVisibility EEnumLiteral(MODULE, COMPATIBILITY, SERVER, APPLICATION)" "services Service*" "statisticsProvider StatisticsProvider"
例
$AdminConfig checkin cells/MyCell/Node/MyNode/serverindex.xml c:¥¥mydir¥myfile $obj
$AdminConfig checkin cells/MyCell/Node/MyNode/serverindex.xml ¥mydir¥myfile $obj
print AdminConfig.checkin('cells/MyCell/Node/MyNode/serverindex.xml', 'c:¥mydir¥myfile', obj)
print AdminConfig.checkin('cells/MyCell/Node/MyNode/serverindex.xml', '¥mydir¥myfile', obj)
convertToCluster コマンドは、新規サーバー・クラスターの 1 番目のメンバーになるようにサーバーを変換するために使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
myCluster(cells/mycell/clusters/myCluster|cluster.xml#ClusterMember_2)
例
set serverid [$AdminConfig getid /Server:myServer/] $AdminConfig convertToCluster $serverid myCluster
serverid = AdminConfig.getid('/Server:myServer/') print AdminConfig.convertToCluster(serverid, 'myCluster')
create コマンドを使用して、構成オブジェクトを作成します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
ds1(cells/mycell/nodes/DefaultNode/servers/server1|resources.xml#DataSource_6)
例
set jdbc1 [$AdminConfig getid /JDBCProvider:jdbc1/] $AdminConfig create DataSource $jdbc1 {{name ds1}}
jdbc1 = AdminConfig.getid('/JDBCProvider:jdbc1/') print AdminConfig.create('DataSource', jdbc1, '[[name ds1]]')
jdbc1 = AdminConfig.getid('/JDBCProvider:jdbc1/') print AdminConfig.create('DataSource', jdbc1, [['name', 'ds1']])
createClusterMember コマンドを使用して、新規のサーバー・オブジェクトを、node id パラメーターで指定するノード上に作成します。 このサーバーは、cluster id パラメーターで指定される既存クラスターの新規メンバーとして作成され、member attributes パラメーターで指定される属性を含みます。 このサーバーは、template id 属性で指定されるサーバー・テンプレートを使用して作成され、 memberName 属性で指定される名前を含みます。 memberName 属性は必須です。テンプレート・オプションは、最初に作成するクラスター・メンバーについてのみ 選択可能です。最初のメンバー以後に作成するクラスター・メンバーは、 すべて同一になります。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
myCluster(cells/mycell/clusters/myCluster|cluster.xml#ClusterMember_2)
例
set clid [$AdminConfig getid /ServerCluster:myCluster/] set nodeid [$AdminConfig getid /Node:mynode/] $AdminConfig createClusterMember $clid $nodeid {{memberName newMem1} {weight 5}}
clid = AdminConfig.getid('/ServerCluster:myCluster/') nodeid = AdminConfig.getid('/Node:mynode/') print AdminConfig.createClusterMember(clid, nodeid, '[[memberName newMem1] [weight 5]]')
clid = AdminConfig.getid('/ServerCluster:myCluster/') nodeid = AdminConfig.getid('/Node:mynode/') print AdminConfig.createClusterMember(clid, nodeid, [['memberName', 'newMem1'], ['weight', 5]])
createDocument は、構成リポジトリー内に新規文書を作成する場合に使用するコマンドです。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。例
$AdminConfig createDocument cells/mycell/myfile.xml c:¥¥mydir¥¥myfile
$AdminConfig createDocument cells/mycell/myfile.xml ¥mydir¥¥myfile
AdminConfig.createDocument('cells/mycell/myfile.xml', 'c:¥mydir¥myfile')
AdminConfig.createDocument('cells/mycell/myfile.xml', '¥mydir¥myfile')
createUsingTemplate は、所定の親を持つオブジェクト・タイプをテンプレートを使用して作成する場合に使用するコマンドです。 このコマンドは、 APPLICATION_SERVER タイプのサーバーを作成する場合にしか使用できません。APPLICATION_SERVER 以外の タイプのサーバーを作成する場合は、createGenericServer コマンド または createWebServer コマンドを使用してください。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
出力例
myCluster(cells/mycell/clusters/myCluster|cluster.xml#ClusterMember_2)
例
set node [$AdminConfig getid /Node:mynode/] set templ [$AdminConfig listTemplates JDBCProvider "DB2 JDBC Provider (XA)"] $AdminConfig createUsingTemplate JDBCProvider $node {{name newdriver}} $templ
node = AdminConfig.getid('/Node:mynode/') templ = AdminConfig.listTemplates('JDBCProvider', "DB2 JDBC Provider (XA)") print AdminConfig.createUsingTemplate('JDBCProvider', node, '[[name newdriver]]', templ)
node = AdminConfig.getid('/Node:mynode/') templ = AdminConfig.listTemplates('JDBCProvider', "DB2 JDBC Provider (XA)") print AdminConfig.createUsingTemplate('JDBCProvider', node, [['name', 'newdriver']], templ)
defaults コマンドは、所定のタイプの属性のデフォルト値を表示する場合に使用します。 このメソッドは、特定のタイプのオブジェクトに含まれる可能性のある属性をすべて表示します。 属性がデフォルト値を持つ場合、このメソッドは属性ごとに型とデフォルト値も表示します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
Attribute Type Default usingMultiRowSchema Boolean false maxInMemorySessionCount Integer 1000 allowOverflow Boolean true scheduleInvalidation Boolean false writeFrequency ENUM writeInterval Integer 120 writeContents ENUM invalidationTimeout Integer 30 invalidationSchedule InvalidationSchedule
例
$AdminConfig defaults TuningParams
print AdminConfig.defaults('TuningParams')
deleteDocument コマンドは、構成リポジトリーから文書を削除する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。例
$AdminConfig deleteDocument cells/mycell/myfile.xml
AdminConfig.deleteDocument('cells/mycell/myfile.xml')
existsDocument コマンドは、構成リポジトリーに文書が存在するかどうかを検査する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
1
例
$AdminConfig existsDocument cells/mycell/myfile.xml
print AdminConfig.existsDocument('cells/mycell/myfile.xml')
extract コマンドは、文書 URI で指定される構成リポジトリー・ファイルを抽出して、filename で指定されたファイルに入れる場合に使用します。 このメソッドは、デプロイメント・マネージャー構成にのみ適用されます。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
このコマンドは、checkin コマンドを使用してファイルをチェックインし返す場合に使用する、 内容が見えない「ダイジェスト」オブジェクトを返します。
例
set obj [$AdminConfig extract cells/MyCell/nodes/MyNode/serverindex.xml c:¥¥mydir¥myfile]
set obj [$AdminConfig extract cells/MyCell/nodes/MyNode/serverindex.xml ¥mydir¥myfile]
obj = AdminConfig.extract('cells/MyCell/nodes/MyNode/serverindex.xml', 'c:¥mydir¥myfile')
obj = AdminConfig.extract('cells/MyCell/nodes/MyNode/serverindex.xml', '¥mydir¥myfile')
getCrossDocumentValidationEnabled コマンドを使用して、現行のクロス文書使用可能設定を含むメッセージを戻します。 このメソッドは、クロス文書妥当性検査が使用可能であれば、true を戻します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。
オプション・パラメーター
なし。
出力例
WASX7188I: Cross-document validation enablement set to true
例
$AdminConfig getCrossDocumentValidationEnabled
print AdminConfig.getCrossDocumentValidationEnabled()
getid コマンドは、オブジェクトの構成 ID を戻す場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。
出力例
Db2JdbcDriver(cells/testcell/nodes/testnode|resources.xml#JDBCProvider_1)
例
$AdminConfig getid /Cell:testcell/Node:testNode/JDBCProvider:Db2JdbcDriver/
print AdminConfig.getid('/Cell:testcell/Node:testNode/JDBCProvider:Db2JdbcDriver/')
getObjectName コマンドは、対応する実行中の MBean のオブジェクト名のストリング・バージョンを戻す場合に使用します。 対応する実行中の MBean がない場合、このメソッドは空ストリングを戻します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。
出力例
WebSphere:cell=mycell,name=server1,mbeanIdentifier=cells/mycell/nodes/mynode/servers/server1/ server.xml#Server_1,type=Server,node=mynode,process=server1,processType=UnManagedProcess
例
set server [$AdminConfig getid /Node:mynode/Server:server1/] $AdminConfig getObjectName $server
server = AdminConfig.getid('/Node:mynode/Server:server1/') print AdminConfig.getObjectName(server)
ターゲット・オブジェクト
なし。必須パラメーター
なし。
オプション・パラメーター
なし。
出力例
rollbackOnConflict
例
$AdminConfig getSaveMode
print AdminConfig.getSaveMode()
getValidationLevel コマンドは、リポジトリーからファイルを抽出するときに使用する妥当性検査を戻す場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。
オプション・パラメーター
なし。
出力例
WASX7189I: Validation level set to HIGH
例
$AdminConfig getValidationLevel
print AdminConfig.getValidationLevel()
getValidationSeverityResult コマンドは、最新の妥当性検査から、指定された重大度を持つ妥当性検査メッセージの数を戻す場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。
出力例
16
例
$AdminConfig getValidationSeverityResult 1
print AdminConfig.getValidationSeverityResult(1)
hasChanges コマンドは、未保管の構成変更がないかどうかを確認する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。
オプション・パラメーター
なし。
出力例
1
例
$AdminConfig hasChanges
print AdminConfig.hasChanges()
help コマンドは、AdminConfig オブジェクトに関する静的ヘルプ情報を表示する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。
オプション・パラメーター
なし。
出力例
WASX7053I: The AdminConfig object communicates with the configuration service in a WebSphere Application Server to manipulate configuration data for an Application Server installation. The AdminConfig object has commands to list, create, remove, display, and modify configuration data, as well as commands to display information about configuration data types. Most of the commands supported by the AdminConfig object operate in two modes: the default mode is one in which the AdminConfig object communicates with the Application Server to accomplish its tasks. A local mode is also possible, in which no server communication takes place. The local mode of operation is invoked by bringing up the scripting client without a server connected using the command line "-conntype NONE" option or setting the "com.ibm.ws.scripting.connectionType=NONE" property in the wsadmin.properties file. The following commands are supported by the AdminConfig object; more detailed information about each of these commands is available by using the help command of the AdminConfig object and by supplying the name of the command as an argument. attributes Shows the attributes for a given type checkin Checks a file into the configuration repository. convertToCluster Converts a server to be the first member of a new server cluster create Creates a configuration object, given a type, a parent, and a list of attributes, and optionally an attribute name for the new object createClusterMember Creates a new server that is a member of an existing cluster. createDocument Creates a new document in the configuration repository. installResourceAdapter Installs a J2C resource adapter with the given RAR file name and an option string in the node. createUsingTemplate Creates an object using a particular template type. defaults Displays the default values for the attributes of a given type. deleteDocument Deletes a document from the configuration repository. existsDocument Tests for the existence of a document in the configuration repository. extract Extracts a file from the configuration repository. getCrossDocumentValidationEnabled Returns true if cross-document validation is enabled. getid Show the configuration ID of an object, given a string version of its containment getObjectName Given a configuration ID, returns a string version of the ObjectName for the corresponding running MBean, if any. getSaveMode Returns the mode used when "save" is invoked getValidationLevel Returns the validation that is used when files are extracted from the repository. getValidationSeverityResult Returns the number of messages of a given severity from the most recent validation. hasChanges Returns true if unsaved configuration changes exist help Shows help information list Lists all the configuration objects of a given type listTemplates Lists all the available configuration templates of a given type. modify Changes the specified attributes of a given configuration object parents Shows the objects which contain a given type queryChanges Returns a list of unsaved files remove Removes the specified configuration object required Displays the required attributes of a given type. reset Discards the unsaved configuration changes save Commits the unsaved changes to the configuration repository setCrossDocumentValidationEnabled Sets the cross-document validation enabled mode. setSaveMode Changes the mode used when "save" is invoked setValidationLevel Sets the validation used when files are extracted from the repository. show Shows the attributes of a given configuration object showall Recursively shows the attributes of a given configuration object, and all the objects that are contained within each attribute. showAttribute Displays only the value for the single attribute that is specified. types Shows the possible types for configuration validate Invokes validation
例
$AdminConfig help
print AdminConfig.help()
installResourceAdapter コマンドは、所定のリソース・アダプター・アーカイブ (RAR) ファイル名およびオプション・ストリングを使用して、Java 2 コネクター (J2C) リソース・アダプターをノードにインストールする場合に使用します。 インストール済みアプリケーションを組み込み RAR で編集すると、 既存の J2C 接続ファクトリー、J2C アクティベーション・スペック、および J2C 管理オブジェクトのみが編集されます。 新規の J2C オブジェクトは作成されません。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
rar.archivePath は、このファイルを抽出するパスの名前です。 このオプションを指定しないと、アーカイブは $¥{CONNECTOR_INSTALL_ROOT¥} ディレクトリーに抽出されます。 rar.classpath オプションは追加のクラスパスです。
name String value String type String *desc String *required true/false * means the item is optionalプロパティーの各属性は、 {} で指定します。プロパティーは、{} で指定します。複数のプロパティーを、 {} で指定することもできます。
出力例
myResourceAdapter(cells/mycell/nodes/mynode|resources.xml#J2CResourceAdapter_1)
例
$AdminConfig installResourceAdapter c:/rar/mine.rar mynode {-rar.name myResourceAdapter -rar.desc "My rar file"}
$AdminConfig installResourceAdapter /rar/mine.rar mynode{-rar.name myResourceAdapter -rar.desc "My rar file"}
print AdminConfig.installResourceAdapter('c:/rar/mine.rar', 'mynode', '[-rar.name myResourceAdapter -rar.desc "My rar file"]')
print AdminConfig.installResourceAdapter('/rar/mine.rar', 'mynode', '[-rar.name myResourceAdapter -rar.desc "My rar file"]')
list コマンドは、所定のタイプで、親の有効範囲に入っている可能性のあるもののリストを戻す場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。
出力例
Db2JdbcDriver(cells/mycell/nodes/DefaultNode|resources.xml#JDBCProvider_1) Db2JdbcDriver(cells/mycell/nodes/DefaultNode/servers/deploymentmgr|resources.xml#JDBCProvider_1) Db2JdbcDriver(cells/mycell/nodes/DefaultNode/servers/nodeAgent|resources.xml#JDBCProvider_1)
例
$AdminConfig list JDBCProvider
print AdminConfig.list('JDBCProvider')
listTemplates コマンドは、テンプレート・オブジェクト ID のリストを表示する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
"Cloudscape JDBC Provider (XA)(templates/servertypes/APPLICATION_SERVER/servers/ defaultZOS_60X|resources.xml#builtin_jdbcprovider)" "Cloudscape JDBC Provider (XA)(templates/servertypes/APPLICATION_SERVER/servers/ default_60X|resources.xml#builtin_jdbcprovider)" "Cloudscape JDBC Provider (XA)(templates/servertypes/PROXY_SERVER/servers/proxy_ server_60X|resources.xml#builtin_jdbcprovider)" "Cloudscape JDBC Provider (XA)(templates/servertypes/PROXY_SERVER/servers/proxy_ server_zos_60X|resources.xml#builtin_jdbcprovider)" "Cloudscape JDBC Provider (XA)(templates/system|jdbc-resource-provider-templates .xml#JDBCProvider_db2j_4)" "Cloudscape JDBC Provider Only (XA)(templates/system|jdbc-resource-provider-only -templates.xml#JDBCProvider_db2j_4)" "Cloudscape JDBC Provider Only(templates/system|jdbc-resource-provider-only-temp lates.xml#JDBCProvider_db2j_3)" "Cloudscape JDBC Provider(templates/servertypes/APPLICATION_SERVER/servers/defau ltZOS_5X|resources.xml#JDBCProvider_1)" "Cloudscape JDBC Provider(templates/servertypes/APPLICATION_SERVER/servers/defau lt_5X|resources.xml#JDBCProvider_1)" "Cloudscape JDBC Provider(templates/system|jdbc-resource-provider-templates.xml#J DBCProvider_db2j_3)" "Cloudscape Network Server Using Universal JDBC Driver Provider Only(templates/s ystem|jdbc-resource-provider-only-templates.xml#JDBCProvider_db2jN_1)" "Cloudscape Network Server Using Universal JDBC Driver(templates/system|jdbc-res ource-provider-templates.xml#JDBCProvider_db2jN_1)" "DB2 Legacy CLI-based Type 2 JDBC Driver (XA)(templates/system|jdbc-resource-pro vider-templates.xml#JDBCProvider_4)"
例
$AdminConfig listTemplates JDBCProvider
print AdminConfig.listTemplates('JDBCProvider')
modify コマンドは、オブジェクト属性の変更をサポートする場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。例
$AdminConfig modify ConnFactory1(cells/mycell/nodes/DefaultNode/servers/deploymentmgr|resources.xml# GenericJMSConnectionFactory_1) {{userID newID} {password newPW}}
AdminConfig.modify('ConnFactory1(cells/mycell/nodes/DefaultNode/servers/deploymentmgr|resources.xml# GenericJMSConnectionFactory_1)', '[[userID newID] [password newPW]]')
AdminConfig.modify('ConnFactory1(cells/mycell/nodes/DefaultNode/servers/deploymentmgr|resources.xml# GenericJMSConnectionFactory_1)', [['userID', 'newID'], ['password', 'newPW']])
parents コマンドは、オブジェクト・タイプに関する情報を取得する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
Cell Node
例
$AdminConfig parents JDBCProvider
print AdminConfig.parents('JDBCProvider')
queryChanges コマンドは、未保管の構成ファイルを戻す場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。オプション・パラメーター
なし。出力例
WASX7146I: The following configuration files contain unsaved changes: cells/mycell/nodes/mynode/servers/server1|resources.xml
例
$AdminConfig queryChanges
print AdminConfig.queryChanges()
remove コマンドは、構成オブジェクトを削除する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。例
$AdminConfig remove ds1(cells/mycell/nodes/DefaultNode/servers/server1:resources.xml#DataSource_6)
AdminConfig.remove('ds1(cells/mycell/nodes/DefaultNode/servers/server1:resources.xml#DataSource_6)')
required コマンドは、特定のタイプのオブジェクトに含まれる必須の属性を表示する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
Attribute Type streamHandlerClassName String protocol String
例
$AdminConfig required URLProvider
print AdminConfig.required('URLProvider')
reset コマンドは、構成への更新を保持する一時ワークスペースをリセットする場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。オプション・パラメーター
なし。例
$AdminConfig reset
AdminConfig.reset()
save コマンドは、変更内容を構成リポジトリーに保存する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。オプション・パラメーター
なし。出力例
save コマンドは出力を返しません。
例
$AdminConfig save
AdminConfig.save()
setCrossDocumentValidationEnabled コマンドを使用して、クロス文書妥当性検査の使用可能モードを設定します。 値には true または false があります。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
WASX7188I: Cross-document validation enablement set to true
例
$AdminConfig setCrossDocumentValidationEnabled true
print AdminConfig.setCrossDocumentValidationEnabled('true')
setSaveMode コマンドは、save コマンドの振る舞いを変更する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
setSaveMode コマンドは出力を返しません。
例
$AdminConfig setSaveMode overwriteOnConflict
AdminConfig.setSaveMode('overwriteOnConflict')
setValidationLevel コマンドは、ファイルをリポジトリーから抽出するときに使用する妥当性検査を設定する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
WASX7189I: Validation level set to HIGH
例
$AdminConfig setValidationLevel high
print AdminConfig.setValidationLevel('high')
show コマンドは、所定のオブジェクトの最上位の属性を戻す場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
[name "Sample Datasource"] [description "Data source for the Sample entity beans"]
例
$AdminConfig show Db2JdbcDriver(cells/mycell/nodes/DefaultNode|resources.xmlJDBCProvider_1)
print AdminConfig.show('Db2JdbcDriver(cells/mycell/nodes/DefaultNode|resources.xmlJDBCProvider_1)')
showall コマンドは、所定の構成オブジェクトの属性を再帰的に表示する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
[datasourceHelperClassname com.ibm.websphere.rsadapter.CloudscapeDataStoreHelper] [description "Datasource for the WebSphere Default Application"] [jndiName DefaultDatasource] [name "Default Datasource"] [propertySet [[resourceProperties [[[description "Location of Cloudscape default database."] [name databaseName] [type string] [value ${WAS_INSTALL_ROOT}/bin/DefaultDB]] [[name remoteDataSourceProtocol] [type string] [value []]] [[name shutdownDatabase] [type string] [value []]] [[name dataSourceName] [type string] [value []]] [[name description] [type string] [value []]] [[name connectionAttributes] [type string] [value []]] [[name createDatabase] [type string] [value []]]]]]] [provider "Cloudscape JDBC Driver(cells/pongo/nodes/pongo/servers/server1|resources.xml#JDBCProvider_1)"] [relationalResourceAdapter "WebSphere Relational Resource Adapter(cells/pongo/nodes/pongo/servers/server1|resources.xml#builtin_rra)"] [statementCacheSize 0]
例
$AdminConfig showall "Default Datasource(cells/mycell/nodes/DefaultNode/servers/server1:resources.xml#DataSource_1)
print AdminConfig.showall("Default Datasource(cells/mycell/nodes/DefaultNode/servers/server1:resources.xml#DataSource_1)")
showAttribute コマンドは、指定した 1 つの属性の値のみを表示する場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
なし。出力例
mynode
例
set ns [$AdminConfig getid /Node:mynode/] $AdminConfig showAttribute $ns hostName
ns = AdminConfig.getid('/Node:mynode/') print AdminConfig.showAttribute(ns, 'hostName')
types コマンドは、操作可能な構成オブジェクト・タイプのリストを戻す場合に使用します。
ターゲット・オブジェクト
なし。必須パラメーター
なし。オプション・パラメーター
なし。出力例
AdminService Agent ApplicationConfig ApplicationDeployment ApplicationServer AuthMechanism AuthenticationTarget AuthorizationConfig AuthorizationProvider AuthorizationTableImpl BackupCluster CMPConnectionFactory CORBAObjectNameSpaceBinding Cell CellManager Classloader ClusterMember ClusteredTarget CommonSecureInteropComponent
例
$AdminConfig types
print AdminConfig.types()
uninstallResourceAdapter コマンドは、所定の J2C リソース・アダプター構成 ID およびオプション・リストを使用して、Java 2 コネクター (J2C) リソース・アダプターをアンインストールする場合に使用します。 J2CResourceAdapter オブジェクトを構成リポジトリーから除去すると、 そのインストール・ディレクトリーは、同期を行うときに除去されます。 除去された J2CResourceAdapter MBean には、停止要求が送信されます。
アンインストールターゲット・オブジェクト
なし。必須パラメーター
オプション・パラメーター
出力例
WASX7397I: The following J2CResourceAdapter objects are removed: MyJ2CRA(cells/juniarti/nodes/juniarti|resources.xml#J2CResourceAdapter_1069433028609)
例
set j2cra [$AdminConfig getid /J2CResourceAdapter:MyJ2CRA/] $AdminConfig uninstallResourceAdapter $j2cra {-force} $AdminConfig save
j2cra = AdminConfig.getid('/J2CResourceAdapter:MyJ2CRA/') print AdminConfig.uninstallResourceAdapter(j2cra, '[-force]') AdminConfig.save()
validate コマンドは、ワークスペースにあるファイル、クロス文書妥当性検査使用可能フラグ、および妥当性検査レベル設定に基づき、構成の妥当性検査結果を要求する場合に使用します。 オプションで、有効範囲を設定するための構成 ID を指定することができます。構成 ID を指定した場合、この要求の有効範囲は、configuration ID パラメーターで指定されるオブジェクトになります。
ターゲット・オブジェクト
なし。必須パラメーター
なし。オプション・パラメーター
出力例
WASX7193I: Validation results are logged in c:¥WebSphere5¥AppServer¥logs¥wsadmin.valout: Total number of messages: 16 WASX7194I: Number of messages of severity 1: 16
例
$AdminConfig validate
print AdminConfig.validate()