Go to main content

Oracle® ZFS Storage Appliance 관리 설명서, 릴리스 OS8.8.x

인쇄 보기 종료

업데이트 날짜: 2021년 8월
 
 

CLI를 사용하여 워크플로우 실행

  1. 워크플로우를 실행하려면 선택한 워크플로우의 컨텍스트 내에서 run 명령을 사용합니다.
    hostname:maintenance workflow-000> run
  2. 이 컨텍스트는 매개변수가 있는 워크플로우에 대해 매개변수를 지정해야 하는 고정 컨텍스트가 됩니다.
    hostname:maintenance workflow-000> run
    hostname:maintenance workflow-000 run(uncommitted)> get
                             type = (unset)
                        overwrite = (unset)

    매개변수가 없는 워크플로우의 경우 고정 컨텍스트를 입력한 후 바로 커밋할 수 있습니다.

    hostname:maintenance workflow-000> run
    hostname:maintenance workflow-000 run(uncommitted)> commit
    hello world!
  3. 먼저 필수 매개변수를 지정하지 않고 워크플로우 실행을 커밋하려고 하면 명시적 오류가 발생합니다.
    hostname:maintenance workflow-000 run(uncommitted)> commit
    error: cannot execute workflow without setting property "type"
  4. 워크플로우를 실행하려면 지정된 매개변수를 설정한 다음 commit 명령을 사용합니다.
    hostname:maintenance workflow-000 run (uncommitted)> set type=system
                             type = system
    hostname:maintenance workflow-000 run (uncommitted)> set overwrite=true
                        overwrite = true
    hostname:maintenance workflow-000 run (uncommitted)> commit
  5. 워크플로우에 지정된 단계가 있는 경우 해당 단계가 CLI를 통해 표시됩니다. 예를 들면 다음과 같습니다.
    hostname:maintenance workflow-000 run (uncommitted)> commit
    Checking for existing worksheet ... done
    Finding disks of specified type ... done
    Creating worksheet ... done