등록 정보는 컨텍스트와 연관되는 입력된 이름/값 쌍입니다. 특정 컨텍스트에 대한 등록 정보는 "help properties" 명령을 실행하여 확인할 수 있습니다. 다음은 사용자의 환경 설정과 연관된 등록 정보를 검색하는 예입니다.
dory:configuration preferences> help properties Properties that are valid in this context: locale => Locality login_screen => Initial login screen session_timeout => Session timeout session_annotation => Current session annotation advanced_analytics => Make available advanced analytics statistics
특정 컨텍스트의 등록 정보는 get 명령을 사용하여 검색할 수 있습니다. 다음은 get 명령을 사용하여 사용자의 환경 설정을 검색하는 예입니다.
dory:configuration preferences> get locale = C login_screen = status/dashboard session_timeout = 15 session_annotation = advanced_analytics = false
get 명령을 실행하면 인수로 제공된 모든 등록 정보가 반환됩니다. 예를 들어, login_screen 등록 정보의 값을 가져오려면 다음과 같이 입력합니다.
dory:configuration preferences> get login_screen login_screen = status/dashboard
get 명령은 사용 가능한 등록 정보의 이름을 사용하여 탭 완성됩니다. 예를 들어, iSCSI 서비스에 사용 가능한 등록 정보 목록을 확인하려면 다음과 같이 입력합니다.
dory:> configuration services iscsi get tab <status> isns_server radius_secret target_chap_name isns_access radius_access radius_server target_chap_secret
set 명령을 실행하면 등록 정보가 지정된 값으로 설정됩니다. 이때 등록 정보 이름과 해당 값은 등호로 구분됩니다. 예를 들어, login_screen 등록 정보를 "shares"로 설정하려면 다음과 같이 입력합니다.
dory:configuration preferences> set login_screen=shares login_screen = shares (uncommitted)
어플라이언스에서 상태를 구성하는 등록 정보의 경우 등록 정보를 설정하면 값이 변경되는 대신 설정된 값이 기록되고 등록 정보의 값이 커밋되지 않았음이 표시됩니다.
설정된 등록 정보 값을 강제로 적용하려면 여러 값이 일관된 단일 변경 사항으로 변경될 수 있게 하여 해당 등록 정보 값을 명시적으로 커밋해야 합니다. 커밋되지 않은 등록 정보 값을 커밋하려면 commit 명령을 사용합니다.
dory:configuration preferences> get login_screen login_screen = shares (uncommitted) dory:configuration preferences> commit dory:configuration preferences> get login_screen login_screen = shares
커밋되지 않은 등록 정보가 포함된 컨텍스트를 나가려고 하면 해당 컨텍스트를 나갈 경우 설정된 등록 정보 값이 취소된다는 경고가 표시되고 나가기 작업을 확인하는 메시지가 표시됩니다. 예를 들어, 다음과 같습니다.
dory:configuration preferences> set login_screen=maintenance/hardware login_screen = maintenance/hardware (uncommitted) dory:configuration preferences> done You have uncommitted changes that will be discarded. Are you sure? (Y/N)
컨텍스트의 등록 정보가 다른 컨텍스트에서 설정된 경우, 즉 컨텍스트를 변경하는 명령에 set 명령이 추가된 경우 커밋이 암시되고 제어가 시작 컨텍스트로 반환되기 전에 발생합니다. 예를 들어, 다음과 같습니다.
dory:> configuration preferences set login_screen=analytics/worksheets login_screen = analytics/worksheets dory:>
일부 등록 정보에는 값 목록이 사용됩니다. 이러한 등록 정보의 경우 목록 요소를 콤마로 구분해야 합니다. 예를 들어, NTP의 servers 등록 정보를 NTP 서버 목록으로 설정할 수 있습니다.
dory:configuration services ntp> set servers=0.pool.ntp.org,1.pool.ntp.org servers = 0.pool.ntp.org,1.pool.ntp.org (uncommitted) dory:configuration services ntp> commit
등록 정보 값에 콤마, 등호, 따옴표 또는 공백이 포함되어 있는 경우 값 전체를 따옴표로 묶어야 합니다. 예를 들어, 기본 프로젝트의 sharenfs 공유 등록 정보를 읽기 전용으로 설정하지만 "kiowa" 호스트에 대한 읽기/쓰기 액세스를 제공하려면 다음과 같이 입력합니다. 자세한 내용은 Chapter 12, 공유, 프로젝트 및 스키마를 참조하십시오.
dory:> shares select default dory:shares default> set sharenfs="ro,rw=kiowa" sharenfs = ro,rw=kiowa (uncommitted) dory:shares default> commit
일부 등록 정보는 변경할 수 없습니다. 즉, 해당 값을 가져올 수 있지만 설정할 수는 없습니다. 변경할 수 없는 등록 정보를 설정하려고 하면 오류가 발생합니다. 예를 들어, 기본 프로젝트의 변경할 수 없는 space_available 등록 정보를 설정하려고 하면 다음과 같이 됩니다. 자세한 내용은 Chapter 12, 공유, 프로젝트 및 스키마를 참조하십시오.
dory:> shares select default dory:shares default> get space_available space_available = 1.15T dory:shares default> set space_available=100P error: cannot set immutable property "space_available"
일부 기타 등록 정보는 특정 조건에서만 변경할 수 없습니다. 이러한 등록 정보의 경우에는 set 명령이 유효하지 않습니다. 예를 들어, 이름이 bmc인 사용자가 네트워크 사용자이면 fullname 등록 정보를 변경할 수 없게 됩니다.
dory:> configuration users select bmc set fullname="Rembrandt Q. Einstein" error: cannot set immutable property "fullname"