시스템에서 새 엔티티를 만들 때는 새 엔티티와 연관된 컨텍스트가 커밋되지 않은 상태로 만들어지는 경우가 많습니다. 예를 들어, configuration alerts threshold 컨텍스트에서 create 명령을 실행하여 Chapter 9, 경보 구성을 만듭니다.
dory:> configuration alerts thresholds create dory:configuration alerts threshold (uncommitted)>
프롬프트의 (uncommitted)는 이 엔티티가 커밋되지 않은 컨텍스트임을 나타냅니다. 커밋되지 않은 엔티티는 commit 명령을 통해 커밋됩니다. 커밋되지 않은 컨텍스트를 종료하려고 하면 확인 메시지가 표시됩니다.
dory:configuration alerts threshold (uncommitted)> cd / Leaving will abort creation of "threshold". Are you sure? (Y/N)
커밋되지 않은 엔티티를 커밋할 때는 새 엔티티와 연관된 등록 정보가 검증되고 엔티티를 만들 수 없는 경우 오류가 생성됩니다. 예를 들어, 새 임계값 경보를 만들려면 통계 이름을 지정해야 합니다. 통계 이름을 설정하지 못하면 오류가 발생합니다.
dory:configuration alerts threshold (uncommitted)> commit error: missing value for property "statname"
문제를 해결하려면 오류를 처리하고 다시 커밋합니다.
dory:configuration alerts threshold (uncommitted)> set statname=cpu.utilization statname = cpu.utilization (uncommitted) dory:configuration alerts threshold (uncommitted)> commit error: missing value for property "limit" dory:configuration alerts threshold (uncommitted)> set limit=90 limit = 90 (uncommitted) dory:configuration alerts threshold (uncommitted)> commit dory:configuration alerts thresholds> list THRESHOLD LIMIT TYPE STATNAME threshold-000 90 normal cpu.utilization