8.4. Red Hat 지원 도구 구성
대화형 모드에서는 config --help 명령을 입력하여 구성 옵션을 나열할 수 있습니다.
~]# redhat-support-tool
Welcome to the Red Hat Support Tool.
Command (? for help): config --help
Usage: config [options] config.option <new option value>
Use the 'config' command to set or get configuration file values.
Options:
-h, --help show this help message and exit
-g, --global Save configuration option in /etc/redhat-support-tool.conf.
-u, --unset Unset configuration option.
The configuration file options which can be set are:
user : The Red Hat Customer Portal user.
password : The Red Hat Customer Portal password.
debug : CRITICAL, ERROR, WARNING, INFO, or DEBUG
url : The support services URL. Default=https://api.access.redhat.com
proxy_url : A proxy server URL.
proxy_user: A proxy server user.
proxy_password: A password for the proxy server user.
ssl_ca : Path to certificate authorities to trust during communication.
kern_debug_dir: Path to the directory where kernel debug symbols should be downloaded and cached. Default=/var/lib/redhat-support-tool/debugkernels
Examples:
- config user
- config user my-rhn-username
- config --unset user
Interactive 모드를 사용하여 Red Hat 지원 도구 등록
대화형 모드를 사용하여 Red Hat 지원 도구를 고객 포털에 등록하려면 다음과 같이 진행하십시오.
다음 명령을 입력하여 툴을 시작합니다.
~]# redhat-support-toolRed Hat Customer Portal 사용자 이름을 입력합니다.
Command (? for help): config user username사용자 이름을 글로벌 구성 파일에 저장하려면
-g옵션을 추가합니다.Red Hat 고객 포털 암호를 입력합니다.
Command (? for help): config password Please enter the password for username:
8.4.1. 설정 파일에 설정 저장 링크 복사링크가 클립보드에 복사되었습니다!
달리 지시하지 않는 한 Red Hat 지원 도구는 ~/.redhat-support-tool/redhat-support-tool.conf 구성 파일을 사용하여 현재 사용자의 홈 디렉터리에 값 및 옵션을 로컬에 저장합니다. 필요한 경우 특정 사용자만 읽을 수 있으므로 이 파일에 암호를 저장하는 것이 좋습니다. 도구가 시작되면 글로벌 구성 파일 /etc/redhat-support-tool.conf 및 로컬 구성 파일에서 값을 읽습니다. 로컬에 저장된 값 및 옵션은 전역에 저장된 설정보다 우선합니다.
암호가 base64 로 인코딩되고 쉽게 디코딩될 수 있기 때문에 글로벌 /etc/redhat-support-tool.conf 구성 파일에 암호를 저장하지 않는 것이 좋습니다. 또한 이 파일은 쉽게 읽을 수 있습니다.
전역 구성 파일에 값 또는 옵션을 저장하려면 다음과 같이 -g, --global 옵션을 추가합니다.
Command (? for help): config setting -g value
-g, --global 옵션을 사용하여 설정을 전역적으로 저장하려면 일반 사용자가 /etc/redhat-support-tool.conf 에 쓰는 데 필요한 권한이 없으므로 Red Hat 지원 도구를 루트로 실행해야 합니다.
로컬 구성 파일에서 값 또는 옵션을 제거하려면 다음과 같이 -u, --unset 옵션을 추가합니다.
Command (? for help): config setting -u value
이렇게 하면 사용 가능한 경우 도구에서 매개 변수를 지우고 설정 해제하고 글로벌 구성 파일에서 동등한 설정으로 돌아갑니다.
권한이 없는 사용자로 실행하는 경우 -u, --unset 옵션에 저장된 값은 -u, --unset 옵션을 사용하여 제거할 수 없지만 -g, --global 옵션과 동시에 -u, --unset 옵션을 사용하여 툴의 현재 실행 중인 인스턴스에서 선택을 해제할 수 있습니다. 루트 로 실행하는 경우 -g, --global 를 -u, --unset 옵션과 동시에 사용하여 전역 구성 파일에서 값 및 옵션을 제거할 수 있습니다.