작업을 제출하여 원격 호스트에서 명령 실행
원격 호스트에서 명령 실행 작업을 제출하여 원격 호스트에서 startServer, wsadmin 명령 또는 운영 체제 명령과 같은 명령행 유틸리티를 실행할 수 있습니다. 원격 호스트의 WebSphere® Application Server 설치는 제품 명령을 실행하는 데 필요하지만 비제품 명령에는 필요하지 않습니다.
시작하기 전에
원격 호스트에서 명령 실행 작업을 실행하려면 먼저 다음 단계를 완료하십시오.
이 태스크 정보
작업 관리자 또는 배치 관리자의 관리 콘솔을 사용하여 원격 호스트에서 명령을 실행하는 작업을 제출할 수 있습니다. 콘솔에서 원격 호스트에서 명령 실행 작업을 선택하고, 원격 호스트 컴퓨터를 지정하고, 실행할 명령을 지정하고, 요약을 검토한 후 작업을 제출하십시오. 작업 제출 후, 작업 관리자는 지정된 명령을 실행하고 작업 관리자 stdErr.txt 또는 stdOut.txt 로그에 모든 메시지를 기록합니다.
원격 호스트에서
명령 실행 작업은 IBM i 대상 호스트에서 QShell 명령 실행을
지원합니다.
콘솔을 사용하는 대신, AdministrativeJobs 명령 그룹의 runCommand 작업 스크립트를 실행할 수 있습니다. 관리 작업 유형 주제를 참조하십시오.
또한 작업에서 wsadmin 명령을 실행하기 위해, 스크립트 매개변수를 지정할 수 있는 wsadmin 스크립트 실행 작업을 사용할 수 있습니다. "작업을 제출하여 wsadmin 스크립트 실행"을 참조하십시오.
프로시저
결과
작업 관리자가 작업을 실행합니다. 작업 옵션이 명령 이름 및 경로를 올바르게 지정하는 경우, 명령이 호스트에서 실행되고 명령으로 인해 나타난 모든 메시지는 작업 관리자 로그에 기록됩니다.
versionInfo 예제의 경우, 다음과 같은 메시지가 profile_root/JobMgr01/config/temp/JobManager/job_ID/host_name/logs 디렉토리의 stdOut.txt 파일에 기록됩니다.
--------------------------------------------------------------------------------
IBM WebSphere Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time August 30, 2010 11:20:50 AM EDT
Installation
--------------------------------------------------------------------------------
Product Directory C:\WAS_v850\IBM\WebSphere\AppServer
Version Directory C:\WAS_v850\IBM\WebSphere\AppServer\properties\version
DTD Directory C:\WAS_v850\IBM\WebSphere\AppServer\properties\version\dtd
Log Directory C:\Documents and Settings\All Users\Application Data\IBM\Installation Manager\logs
Product List
--------------------------------------------------------------------------------
ND installed
Installed Product
--------------------------------------------------------------------------------
Name IBM WebSphere Application Server - ND
Version 8.0.0.0
ID ND
Build Level build_2464
Build Date 8/17/10
Architecture x86 (32 bit)
Installed Features EJBDeploy tool for pre-EJB 3.0 modules
Sample applications
Stand-alone thin clients and resource adapters
--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------
server1을 시작하는 startServer 예제의 경우, 명령이 호스트에서 server1을 시작합니다. 다음과 같은 메시지는 profile_root/JobMgr01/config/temp/JobManager/job_ID/host_name/logs 디렉토리의 stdOut.txt 파일에 기록됩니다.
ADMU0116I: Tool information is being logged in file
C:\WAS_v850\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1\startServer.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server server1 open for e-business; process id is 5384
다음에 수행할 작업
작업 상태 페이지에서 runCommand 작업의 ID를 클릭하고 작업 상태를 보십시오. 작업에 실패하는 경우 작업 실행 결과로 나타나는 오류 메시지를 확인하고 오류 조건을 정정한 다음 작업을 다시 제출하십시오.