例: スクリプトを使用したスケジューラー用テーブルの検証

wsadmin スクリプト・ツールを使用して、Jacl スクリプトを呼び出し、 スケジューラー用のテーブルと索引を検査します。

以下に例示した Jacl スクリプトは、テーブルと索引がスケジューラー用に正しく作成されていることを 検証するというもので、wsadmin スクリプト・ツールを使用して呼び出すことができます。 スケジューラーの作成について詳しくは、 トピックスケジューラーの構成を参照してください。

# Example JACL Script to verify the scheduler tables

# The name of the scheduler to verify
set schedName "My Scheduler"

puts ""
puts "Looking-up Scheduler Configuration Helper MBean"
puts ""
set schedHelper [$AdminControl queryNames WebSphere:*,type=WASSchedulerCfgHelper]

#Access the configuration object.
set myScheduler [$AdminConfig getid /SchedulerConfiguration:$schedName/]

if {$myScheduler == ""} {
    puts ""
    puts "Error: Scheduler $schedName could not be found."
    puts ""
    exit}

# Invoke the verifyTables method on the helper MBean.

puts ""
puts "Verifying tables for:"
puts "$myScheduler"
puts ""

if { [catch {$AdminControl invoke $schedHelper verifyTables $myScheduler} errorInfo] } {
    puts ""
    puts "Error verifying tables: $errorInfo"
    puts ""
} else {
    puts ""
    puts "Tables verified successfully."
    puts ""
}

トピックのタイプを示すアイコン 参照トピック



タイム・スタンプ・アイコン 最終更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=xsch_verify
ファイル名:xsch_verify.html