コンソール・セッション有効期限の変更
ここにあげる JACL スクリプトを実行することにより、Integrated Solutions Console のログイン・セッションの有効期限までの使用期間を設定します。
このタスクについて
手順
- 以下のスクリプトをファイルにコピーします。
set dep [$AdminConfig getid /Deployment:isclite/] set appDep [$AdminConfig list ApplicationDeployment $dep] set sesMgmt [$AdminConfig list SessionManager $appDep] # check if existing sesMgmt there or not, if not then create a new one, if exist then modify it if {$sesMgmt == ""} { # get applicationConfig to create new SessionManager set appConfig [$AdminConfig list ApplicationConfig $appDep] if {$appConfig == ""} { # create a new one set appConfig [$AdminConfig create ApplicationConfig $appDep {}] # then create a new SessionManager using new Application Config just created set sesMgmt [$AdminConfig create SessionManager $appConfig {}] } else { # create new SessionManager using the existing ApplicationConfig set sesMgmt [$AdminConfig create SessionManager $appConfig {}] } } # get tuningParams config id set tuningParams [$AdminConfig showAttribute $sesMgmt tuningParams] if {$tuningParams == ""} { # create a new tuningParams $AdminConfig create TuningParams $sesMgmt {{invalidationTimeout <timeout value>}} } else { #modify the existing one $AdminConfig modify $tuningParams {{invalidationTimeout <timeout value>}} } # saving the configuration changes $AdminConfig save
- このサンプルの 2 行にある <timeout value> を セッションの新しい有効期限値に変更します。この数値により、コンソールが非活動の間にセッションを保持する分数を指定します。
- 例えば、ファイル名 timeout.jacl を使用して、任意のディレクトリーにこのファイルを保存します。
- <WAS-install>/profiles/<profile_name>/bin ディレクトリーから wsadmin スクリプト・ クライアントを開始します。
- 以下のコマンドを発行します。
wsadmin -f <path to jacl file>/timeout.jacl


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=cons_sessionto
ファイル名:cons_sessionto.html