WebSphere Application Server, Version 6.0.x   
             オペレーティング・システム: AIX , HP-UX, Linux, Solaris, Windows

             目次と検索結果のパーソナライズ化

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

wsadmin スクリプト・ツールを使用して、Jacl スクリプトを呼び出し、スケジューラー・テーブルを除去します。

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

# Example JACL Script to drop the scheduler tables

# The name of the scheduler to drop the tables for
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 with name: $schedName could not be found."
    puts ""
    exit
}

# Invoke the dropTables method on the helper MBean.

puts ""
puts "Dropping tables for:"
puts "$myScheduler"
puts ""

if {[catch {
    set result [$AdminControl invoke $schedHelper dropTables $myScheduler]
    if {$result} {
        puts ""
        puts "Successfully dropped the tables."
        puts ""
    } else {
        puts ""
        puts "The tables were already dropped."
        puts ""
    }
  } errorInfo ] } {
    puts ""
    puts $errorInfo
    puts ""
}



関連タスク
構成スケジューラー
Java Management Extensions を使用したスケジューラーの構成
スクリプトおよび Java Management Extensions を使用したスケジューラー・テーブルの作成
関連資料
スケジューラー・テーブルの管理機能
参照トピック    

ご利用条件 | フィードバック

最終更新: Jan 22, 2008 12:07:38 AM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/scheduler/xmp/xsch_drop.html