[AIX 운영 체제와 장치 관리 6] AIX Runtime Expert (1) 개념, 프로파일·카탈로그, LDAP·RBAC, artex 명령으로 관리

핵심 정리

  • AIX Runtime Expert는 no·ioo·schedo·mktcpip·alog·setsecattr 같은 여러 구성 명령을 XML 구성 프로파일 하나로 묶어 한 번에 적용·추출·비교하는 틀입니다. 여러 시스템은 LDAP에 둔 프로파일이나 NIM으로 다룹니다.
  • 예제 프로파일은 /etc/security/artex/samples(값이 없는 읽기 전용 틀), 카탈로그는 /etc/security/artex/catalogs(고치지 않음)에 있습니다. 값이 없는 매개변수가 있으면 artexset은 실패하고 artexdiff는 경고합니다. blob 값은 /etc/motd 같은 파일을 base64로 담습니다.
  • LDAP에는 ibm-artexProfile 객체(Name, XMLData)로 저장하며 기본 위치는 ou=artex,cn=AIXDATA(ldap.cfg의 artexbasedn). RBAC 권한은 aix.system.config.artex.read·get·set이고 SysConfig 역할에 들어갑니다. ARTEX_CATALOG_PATH는 root만 씁니다.
  • 만들기 artexget -p all.xml > custom_all.xml, 고친 뒤 확인 artexdiff -c -r, 합치기 artexmerge a.xml b.xml > new.xml(중복 매개변수는 -f로 뒤 값 사용), 찾기 artexlist(-l은 LDAP), 적용 artexset -c(부팅마다 -b), 되돌리기 artexset -u.
  • artex.conf 옵션: ARTEX_CATALOG_PATH, ARTEX_PROFILE_PATH, DEBUG_LOG_CATEGORY, DEBUG_LOG_LEVEL(0~3), MAX_CMDS(동시 외부 명령, 기본 10).
항목 내용
버전 AIX 6.1 (5.3판에 없음 — AIX 6.1 TL4 무렵 더해진 기능)
원문 Operating system and device management — 5.3판에 없음, 6.1판 61~69쪽
파일 /etc/security/artex/samples, /etc/security/artex/catalogs, /etc/security/artex/config/artex.conf, /etc/security/ldap/ldap.cfg
관련 명령어 artexget, artexset, artexdiff, artexmerge, artexlist, mksecldap, ldapadd

AIX Runtime Expert는 AIX 인스턴스 하나 이상의 실행 환경을 모으고, 적용하고, 검증하는 데 하나의 통합 대상에 쓸 수 있는 단순화한 동작 묶음을 제공합니다.

RAS(Reliability Availability Serviceability), 보안, 커널 같은 AIX 구성 요소가 제공하는 도구로 각 구성 요소 계층의 설정을 바꿔 운영 체제를 특정 요구에 맞게 조정할 수 있습니다. AIX Runtime Expert는 확장할 수 있는 틀로 AIX에 지금 있는 여러 구성 방법을 다뤄 시스템 전체 구성을 가능하게 합니다.

AIX Runtime Expert는 구성 프로파일로 여러 구성 요소의 구성 명령을 하나의 동작으로 실행합니다. 이 프로파일로 여러 시스템에 같은 시스템 설정을 적용할 수 있습니다. AIX Runtime Expert는 시스템 하나 이상의 실행 구성을 관리하는 단순화한 대안을 제공하지만, 다른 방법으로 시스템 설정을 바꾸는 것을 막지는 않습니다.

영어 원문

AIX Runtime Expert

AIX Runtime Expert provides a simplified set of actions that can be used against a single consolidation for collecting, applying, and verifying the runtime environment for one or more AIX instances.

There are tools provided by AIX components, such as Reliability Availability Serviceability (RAS), Security, or Kernel, which allow you to change settings within each component layer in order to tune the operating system to a particular need or requirement. AIX Runtime Expert enables system-wide configuration by using an extendable framework to handle the many different configuration methods that currently exist in AIX.

AIX Runtime Expert executes multiple-component configuration commands as a single action using a configuration profile. You can use this profile to apply identical system settings across multiple systems. AIX Runtime Expert provides a simplified alternative for managing the runtime configuration of one or more systems, but it does not prevent the use of other methods to change system settings.

AIX Runtime Expert 개념

AIX Runtime Expert를 쓰기 전에 기본 지식이 있어야 합니다.

AIX Runtime Expert의 기본 기능은 AIX 시스템 하나에 대한 구성 프로파일 관리와 적용을 지원합니다. 프로파일 하나를 여러 시스템에서 확장성 있게 쓰려면, LDAP 기반 프로파일 설명을 AIX 시스템이 시작할 때나 대상 AIX 끝점에서 관리 작업이 지시할 때 찾아 쓸 수 있습니다. AIX Runtime Expert의 원격 관리는 NIM(Network Install Manager) 구성 요소로만 할 수 있습니다. 기존 NIM 기능으로 NIM 마스터 기계에서 여러 독립 NIM 클라이언트에 AIX Runtime Expert를 원격으로 실행할 수 있습니다.

AIX Runtime Expert 프로파일

AIX Runtime Expert 프로파일은 실행 중인 시스템에 값을 설정하고, 실행 중인 시스템에서 값을 추출하고, 실행 중인 시스템이나 다른 프로파일과 값을 비교하는 데 씁니다.

프로파일은 대상 기능 영역의 실행 구성 제어 하나 이상과 그 설정을 설명합니다. 프로파일은 제어 전체나 제어와 그 값의 일부를 나타낼 수 있습니다. 구성 프로파일은 표준 XML 파일입니다. AIX Runtime Expert로 프로파일을 관리하고 정의한 시스템에 적용할 수 있습니다.

프로파일에는 예제 프로파일처럼 값이 없는 구성 매개변수와 조정 매개변수가 들어 있을 수 있습니다. 매개변수 값이 없는 프로파일의 목적은 지정한 프로파일로 현재 시스템 값을 추출하는 것입니다. 값이 없는 매개변수가 하나라도 있는 프로파일에는 다음 제한이 있습니다.

  • artexset 명령을 쓰면 오류로 실패합니다.
  • artexdiff 명령을 쓰면 값이 없는 매개변수마다 경고 메시지를 돌려줍니다.

프로파일의 매개변수 값은 다음 가운데 하나일 수 있습니다.

  • 값 없음
  • blob 값: 인라인 텍스트 파일로 들어간 base64 인코딩 2진 데이터입니다. blob 값은 /etc/motd나 /etc/hosts 같은 기존 파일을 바꾸는 데 씁니다.
  • blob이 아닌 값: 정수나 문자열처럼 시스템 구성 매개변수에 할당하는 값입니다.

/etc/security/artex/samples 디렉터리에서 기존 예제 프로파일을 볼 수 있습니다. 예제 프로파일에는 AIX Runtime Expert와 함께 설치된 기본 설정이 지원하는 매개변수 이름만 들어 있습니다. 예제 프로파일의 매개변수에는 값이 없습니다. 예제 프로파일은 읽기 전용 파일입니다. 예제 프로파일을 틀로 삼아 새 구성 프로파일을 만듭니다. 기존 예제를 실행 중인 시스템에 적용할 수는 없습니다.

다음은 구성 프로파일로 제어할 수 있는 기본 구성 명령의 예입니다.

  • 네트워크 구성: no, mktcpip
  • 커널 구성: ioo, schedo
  • RAS 구성: alog
  • 보안 구성: setsecattr

예

다음 예는 여러 카탈로그와 하위 카탈로그에 대해 여러 매개변수에 값을 할당한 구성 프로파일입니다. 이 프로파일은 아무 XML 편집기나 vi 명령으로 편집해 정의된 매개변수의 기존 값을 바꿀 수 있습니다.

text
<?xml version="1.0" encoding="UTF-8" ?>
<Profile origin="get" version="1.0" date="2009-04-25T15:33:37Z">
<Catalog id="vmoParam">
<Parameter name="kernel_heap_psize" value="0" applyType="nextboot" reboot="true" />
<Parameter name="maxfree" value="1088" />
</Catalog>
<Catalog id="noParam">
<SubCat id="tcp_network">
<Parameter name="tcp_recvspace" value="16384" />
<Parameter name="tcp_sendspace" value="16384" />
</SubCat>
<SubCat id="general_network">
<Parameter name="use_sndbufpool" value="1" applyType="nextboot" reboot="true" />
</SubCat>
</Catalog>
<Catalog id="lvmoParam">
<Parameter name="max_vg_pbuf_count" value="0">
<Target class="vg" instance="rootvg" />
</Parameter>
<Parameter name="pv_pbuf_count" value="512">
<Target class="vg" instance="rootvg" />
</Parameter>
</Catalog>

관련 작업:

  • AIX Runtime Expert 프로파일 고치기: 프로파일은 XML 파일이므로 아무 XML 편집기나 텍스트 편집기로 고칠 수 있습니다.
  • AIX Runtime Expert 프로파일 만들기: /etc/security/artex/samples 디렉터리의 기존 예제로 artexget 명령을 써서 새 프로파일을 만듭니다.
  • AIX Runtime Expert 프로파일 값 얻기: artexget 명령으로 프로파일 정보를 찾습니다.
  • AIX Runtime Expert 프로파일 적용: 프로파일의 구성과 조정 매개변수로 시스템을 설정하려면 artexset 명령으로 프로파일을 적용합니다.

AIX Runtime Expert 카탈로그

카탈로그는 AIX Runtime Expert가 다룰 수 있는 구성 제어를 정의하고 지정하는 메커니즘입니다.

카탈로그는 AIX Runtime Expert가 지금 지원하는 제어에 대해 제공됩니다. 카탈로그는 구성 프로파일 값을 명령과 구성 동작을 실행하는 매개변수에 대응시키는 정의 파일입니다.

AIX Runtime Expert는 고칠 수 있는 값을 식별하는 읽기 전용 카탈로그를 /etc/security/artex/catalogs 디렉터리에 제공합니다. 이 카탈로그는 고치지 않습니다.

각 카탈로그에는 구성 요소 하나의 매개변수가 들어 있습니다. 그러나 일부 카탈로그에는 밀접하게 관련된 구성 요소 둘 이상의 매개변수가 들어 있을 수 있습니다. 카탈로그 이름은 그 안에 든 구성 요소를 설명합니다. 각 카탈로그의 <description> XML 요소가 카탈로그 설명을 제공합니다.

AIX Runtime Expert와 LDAP

AIX Runtime Expert는 LDAP(Lightweight Directory Access Protocol) 서버에서 프로파일을 가져올 수 있습니다.

AIX Runtime Expert 프로파일은 ibm-artexProfile 객체로 저장해야 하며 다음 필수 속성이 있어야 합니다.

  • Ibm-artexProfileName: AIX Runtime Expert 프로파일 이름
  • Ibm-artexProfileXMLData: octetString으로 저장한 AIX Runtime Expert 프로파일의 XML 내용

AIX Runtime Expert 프로파일을 저장하기 전에 LDAP 서버에 AIX Runtime Expert 스키마를 설치해야 합니다. AIX Runtime Expert용 LDAP 서버 설정은 사용자 인증용 LDAP 서버 설정과 비슷합니다. LDAP 설정에 관한 자세한 정보는 Setting up an ITDS security information server를 봅니다.

AIX Runtime Expert용 LDAP 클라이언트 설정은 사용자 인증용 LDAP 클라이언트 설정과 비슷합니다. 자세한 정보는 Setting up an LDAP client 항목을 봅니다. LDAP 클라이언트를 설정하려면 mksecldap -c 명령으로 secldapclntd 데몬을 올바르게 구성합니다. AIX Runtime Expert는 secldapclntd 데몬으로 LDAP 서버에 접근합니다. 기본으로 AIX Runtime Expert는 식별자 DN: ou=artex,cn=AIXDATA 아래에서 프로파일 항목을 찾습니다. secldapclntd 구성 파일 /etc/security/ldap/ldap.cfg의 artexbasedn 키를 바꿔 이 DN을 사용자 정의할 수 있습니다.

AIX Runtime Expert 프로파일 올리기

AIX Runtime Expert 프로파일을 올리려면 LDIF(LDAP data interchange format) 파일을 만들어 ldapadd 명령을 쓰거나, Tivoli Directory Server Web Administration Tool 같은 LDAP 관리 도구를 씁니다.

다음은 LDIF로 저장한 프로파일의 예입니다.

text
dn: ou=artex,cn=AIXDATA
objectClass: organizationalUnit
objectClass: top
ou: artex
dn: ibm-artexProfileName=alogProfile.xml,ou=artex,cn=AIXDATA
objectClass: ibm-artexProfile
objectClass: top
ibm-artexProfileName: alogProfile.xml
ibm-artexProfileXMLData:< file:///etc/security/artex/samples/alogProfile.xml

다음은 ldapadd 명령과 sample.ldif라는 예제 LDIF 파일로 프로파일을 올리는 예입니다.

text
ldapadd -c -h <ldaphost> -D cn=admin -w <password> -f sample.ldif

관련 정보:

  • Tivoli Directory Server

AIX Runtime Expert와 RBAC

RBAC(Role Based Access Control)로 root가 아닌 사용자에게 AIX Runtime Expert 명령을 실행할 수 있게 할 수 있습니다.

AIX Runtime Expert 권한

artex.base.rte 파일 세트를 설치하면 AIX Runtime Expert 기능에 대한 접근 수준이 다른 시스템 권한(authorization) 세 개가 만들어집니다.

  • aix.system.config.artex.read 권한은 artexlist와 artexmerge 명령의 실행을 허용합니다. artexget과 artexdiff 명령도 허용하지만 프로파일 값을 얻는 데만 쓸 수 있습니다. 시스템에서 값을 가져올 수는 없습니다(곧 artexget 명령을 -r, -n, -p 플래그로 실행할 수 없고, artexdiff 명령은 두 프로파일 사이에서만 실행할 수 있습니다).
  • aix.system.config.artex.get 권한은 artex.system.config.read 권한이 허용하는 모든 작업에 더해, artexget과 artexdiff 명령을 제한 없이 실행하게 합니다.
  • aix.system.config.artex.set 권한은 artex.system.config.get 권한이 허용하는 모든 작업에 더해, artexset 명령의 실행을 허용합니다.

AIX Runtime Expert 역할

AIX Runtime Expert는 새 역할을 만들지 않지만, artex.base.rte 파일 세트가 SysConfig 역할에 aix.system.config.artex 권한을 더합니다. SysConfig 역할이나 그것을 포함하는 역할(isso 역할 등)을 가진 사용자는 artexlist, artexmerge, artexdiff, artexget, artexset 명령을 실행할 수 있습니다.

제한

보안상 ARTEX_CATALOG_PATH 환경 변수는 root 사용자만 쓸 수 있습니다. RBAC로 AIX Runtime Expert 명령 실행 권한을 받은 root가 아닌 사용자는 ARTEX_CATALOG_PATH 환경 변수를 쓸 수 없습니다.

영어 원문

AIX Runtime Expert concepts

You must have basic knowledge of AIX Runtime Expert before you start using it.

AIX Runtime Expert base capabilities support configuration profile management and application for a single AIX system. To enable multiple system scalable consumption for a single profile, an LDAP based profile description can be discovered and consumed by AIX systems as they start or as the system is directed by administrative operations at the target AIX endpoints. Remote management for AIX Runtime Expert can only be done with the Network Install Manager (NIM) component. Using existing NIM functions, you can run AIX Runtime Expert remotely on several stand-alone NIM clients from a NIM master machine.

AIX Runtime Expert profiles

AIX Runtime Expert profiles are used to set values on a running system, extract values for a running system, and compare values against a running system or against another profile.

A profile describes one or more runtime configuration controls and their settings for the targeted functional area. A profile can represent a full set of controls or a subset of controls and their values. Configuration profiles are standard XML files. Using AIX Runtime Expert you can manage profiles and apply them on the defined system.

A profile can contain configuration parameters and tuning parameters without any values, like sample profiles. The purpose of a profile without any parameters is to extract the current systems values from the specified profile. Profiles containing at least one parameter without any values have the following limitations:

  • Using the artexset command fails with an error.

  • Using the artexdiff command returns a warning message for each parameter that has no value.

The value of a parameter in a profile can contain the following:

  • No value

  • A blob value, which is a base64 encoded binary data as an in-line text file. The blob value is used to replace existing files, like /etc/motd or /etc/hosts.

  • A non-blob value, which is a value assigned to system configuration parameters, like an integer or string.

In the /etc/security/artex/samples directory you can view existing sample profiles. The sample profiles only contain parameter names that are supported by the default settings installed with AIX Runtime

Expert. The parameters in the sample profiles do not have any values. Sample profiles are read only files. Use the sample profiles as a template to create new configuration profiles. You cannot apply existing samples to a running system.

The following examples are some of the base configuration commands that can be controlled through configuration profiles:

  • Network configuration – no – mktcpip

  • Kernel configuration – ioo – schedo

  • RAS configuration – alog

  • Security configuration – setsecattr

Example

The following example displays a configuration profile for different catalogs and sub-catalogs with assigned values for different parameters. You could edit this profile with any XML editor or use the vi command and change the existing values for the defined parameters.

(23줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

Related tasks

Modifying AIX Runtime Expert profiles AIX Runtime Expert profiles are XML files and can be modified with any XML editor or any text editor. Creating AIX Runtime Expert profiles Use existing samples in the /etc/security/artex/samples directory to create a new profile with the artexget command. The sample profiles are a template for you to create a profile that you can modify and save into a custom file. Getting AIX Runtime Expert profile values Use the artexget command to find information about a profile. Applying AIX Runtime Expert profiles To set a system with the configuration and tunable parameters from a profile, apply a profile using the

artexset command.

AIX Runtime Expert catalogs

Catalogs are the mechanism that defines and specifies configuration controls that can be operated on by AIX Runtime Expert.

Catalogs are provided for the controls that are currently supported by the AIX Runtime Expert. Catalogs are definition files that map configuration profile values to parameters that run commands and configuration actions.

AIX Runtime Expert provides you with existing read-only catalogs, located in the /etc/security/artex/ catalogs directory, that identify values that can be modified. Do not modify these catalogs.

Each catalog contains parameters for one component. However, some catalogs can contain parameters from more than one closely related components. The names of the catalogs describe the components that are contained in the catalog. The <description> XML element in each catalog provides a description of the catalog.

AIX Runtime Expert and LDAP

AIX Runtime Expert can retrieve profiles from the Lightweight Directory Access Protocol (LDAP) server.

The AIX Runtime Expert profiles must be stored as ibm-artexProfile objects and have the following mandatory attributes:

  • Ibm-artexProfileName. The AIX Runtime Expert profile name.

  • Ibm-artexProfileXMLData. The XML content of the AIX Runtime Expert profile that is stored as an octetString.

The AIX Runtime Expert schema must be installed on the LDAP server before storing any AIX Runtime Expert profiles. Setting up an LDAP server for AIX Runtime Expert is similar to setting up an LDAP server for user authentication. For more information about setting up LDAP, see Setting up an ITDS security information server.

Setting up an LDAP client for AIX Runtime Expert is similar to setting up an LDAP client for user authentication. For more information, view the Setting up an LDAP client topic. To set up an LDAP client, use the mksecldap -c command to correctly configure the secldapclntd daemon. AIX Runtime Expert relies on the secldapclntd daemon to access the LDAP server. By default, AIX Runtime Expert looks for profile entries under the identifier DN: ou=artex,cn=AIXDATA. You can customize this DN by updating the artexbasedn key in the /etc/security/ldap/ldap.cfg secldapclntd configuration file.

Uploading an AIX Runtime Expert profile

To upload an AIX Runtime Expert profile, you can either create an LDAP data interchange formatted (LDIF) file and use the ldapadd command or use an LDAP administration tool such as Tivoli® Directory Server Web Administration Tool.

The following is an example of a profile that is saved in LDIF:

text
dn: ou=artex,cn=AIXDATA
objectClass: organizationalUnit
objectClass: top
ou: artex
dn: ibm-artexProfileName=alogProfile.xml,ou=artex,cn=AIXDATA
objectClass: ibm-artexProfile
objectClass: top
ibm-artexProfileName: alogProfile.xml
ibm-artexProfileXMLData:< file:///etc/security/artex/samples/alogProfile.xml

The following is an example of uploading a profile using the ldapadd command and a sample LDIF file named sample.ldif:

text
ldapadd -c -h <ldaphost> -D cn=admin -w <password> -f sample.ldif

Related tasks

Creating AIX Runtime Expert profiles Use existing samples in the /etc/security/artex/samples directory to create a new profile with the artexget command. The sample profiles are a template for you to create a profile that you can modify and save into a custom file.

Related information

Tivoli Directory Server

AIX Runtime Expert and RBAC

Role Based Access Control (RBAC) can be used to give non root users the ability to execute the AIX Runtime Expert commands.

AIX Runtime Expert authorizations

On installing the artex.base.rte fileset three system authorizations get created that allow different levels of access to the AIX Runtime Expert functionality:

  • The aix.system.config.artex.read authorization allows the execution of the artexlist and artexmerge commands. The artexget and artexdiff commands are also allowed, but only to obtain the profile values. The values cannot be captured from the system (that is the artexget command cannot be run with the –r, –n or –p flags, and artexdiff command can only be run between two profiles).

  • The aix.system.config.artex.get authorization allows all operations allowed by the artex.system.config.read authorization, and additionally allows the unrestricted execution of the artexget and artexdiff command.

  • The aix.system.config.artex.set authorization allows all operations allowed by the artex.system.config.get authorization and additionally allows the execution of the artexset command.

AIX Runtime Expert roles

AIX Runtime Expert does not create any new role however the artex.base.rte filesets add the aix.system.config.artex authorization to the SysConfig role. Any user with SysConfig role or any enclosing role (such as the isso role) will be able to run the artexlist, artexmerge, artexdiff, artexget and artexset commands.

Restrictions

For security reasons, the use of the ARTEX_CATALOG_PATH environment variable is restricted to the root user. Non root users who are granted the right to execute the AIX Runtime Expert commands through the RBAC cannot use the ARTEX_CATALOG_PATH environment variable.

AIX Runtime Expert 관리

AIX Runtime Expert는 몇 가지 간단한 명령으로 프로파일을 만들고, 고치고, 합치고, 적용합니다.

AIX Runtime Expert 구성

AIX Runtime Expert는 구성 파일 /etc/security/artex/config/artex.conf를 씁니다.

구성 파일의 항목은 구성 옵션 이름 뒤에 공백 하나 이상과 값이 오는 형식입니다. 빈 줄과 # 기호로 시작하는 줄은 무시합니다.

다음 옵션을 지원합니다.

표 1. 구성 옵션

옵션 설명
ARTEX_CATALOG_PATH 카탈로그 파일을 찾을 디렉터리의 콜론 구분 목록. ARTEX_CATALOG_PATH 환경 변수가 이 옵션보다 우선합니다. 기본 경로는 /etc/security/artex/catalogs입니다.
ARTEX_PROFILE_PATH 디렉터리를 지정하지 않았을 때 artexlist 명령이 프로파일 파일을 찾을 디렉터리의 콜론 구분 목록. ARTEX_PROFILE_PATH 환경 변수가 이 옵션보다 우선합니다. 기본 경로는 /etc/security/artex/samples입니다.
DEBUG_LOG_CATEGORY 로그 파일의 디버그 범주. 여러 디버그 범주를 고르려면 이 옵션을 되풀이할 수 있습니다.
DEBUG_LOG_LEVEL 로그 파일의 디버그 수준. 0(디버그 추적 없음)부터 3(가장 자세함)까지입니다.
MAX_CMDS 동시에 실행하는 외부 명령의 최대 수. AIX Runtime Expert가 실행하는 외부 명령은 큐에 넣어 어느 때든 MAX_CMDS개보다 많은 외부 명령이 동시에 실행되지 않게 합니다. 기본값은 10입니다.

AIX Runtime Expert 프로파일 만들기

/etc/security/artex/samples 디렉터리의 기존 예제로 artexget 명령을 써서 새 프로파일을 만듭니다. 예제 프로파일은 고쳐서 사용자 파일로 저장할 수 있는 프로파일을 만드는 틀입니다.

AIX Runtime Expert가 지원하는 모든 매개변수가 든 프로파일을 만들려면 다음 단계를 마칩니다.

  1. 새 프로파일에 담을 설정이 되도록 시스템을 구성하고 조정합니다.
  2. 예제 디렉터리 /etc/security/artex/samples로 갑니다.
  3. 다음 명령을 실행해 custom_all.xml이라는 새 프로파일을 만듭니다.
text
artexget -p all.xml > /directory_for_new_profile/custom_all.xml

참고: custom_all.xml 프로파일은 현재 시스템 구성이 비슷한 다른 시스템을 구성하는 데 쓸 수 있습니다.

네트워크 옵션 같은 특정 구성 요소의 프로파일을 만들려면 다음 단계를 마칩니다.

  1. 새 프로파일에 담을 설정이 되도록 시스템을 구성하고 조정합니다.
  2. 예제 디렉터리 /etc/security/artex/samples로 갑니다.
  3. 다음 명령을 실행해 기존 예제 프로파일 noProfile.xml에서 custom_no.xml이라는 새 프로파일을 만듭니다.
text
artexget -p noProfile.xml > /directory_for_new_profile/custom_no.xml

새로 만든 프로파일은 XML 편집기나 텍스트 편집기로 매개변수 값을 바꾸거나 지워 사용자 정의할 수 있습니다.

사용자 프로파일은 LDAP 서버에 올려 여러 AIX 시스템에서 쓸 수 있습니다. 프로파일을 LDAP 서버에 올리려면 LDAP이 제공하는 도구를 씁니다.

관련 정보:

  • artexget 명령

AIX Runtime Expert 프로파일 고치기

AIX Runtime Expert 프로파일은 XML 파일이므로 아무 XML 편집기나 텍스트 편집기로 고칠 수 있습니다.

artexget 명령으로 사용자가 만든 프로파일은 매개변수 값을 바꾸거나, 프로파일을 바꾸거나 감시하는 데 필요 없는 매개변수를 지워 사용자 정의할 수 있습니다.

AIX Runtime Expert 프로파일을 고치려면 다음 단계를 마칩니다.

  1. custom_all.xml이 있는 디렉터리에서 다음 명령을 실행해 프로파일 사본을 저장합니다.
text
cp custom_all.xml custom_all_backup.xml
  1. custom_all.xml이 있는 디렉터리에서 다음 명령을 실행해 프로파일을 편집합니다.
text
vi custom_all.xml

참고: 아무 XML 편집기나 텍스트 편집기를 쓸 수 있습니다. 3. 매개변수 값을 고치거나, 프로파일을 바꾸거나 감시하는 데 필요 없는 매개변수를 지웁니다. 4. 다음 명령을 실행해 현재 시스템 설정과 비교함으로써 프로파일 변경이 올바르게 저장되었는지 확인합니다.

text
artexdiff -c -r custom_all.xml custom_all_backup.xml

artexdiff 명령은 편집기로 고친 매개변수를 보여 줍니다. <FirstValue>는 프로파일의 값을, <SecondValue>는 현재 시스템의 값을 보여 줍니다.

관련 정보:

  • artexdiff 명령

AIX Runtime Expert 프로파일 합치기

프로파일은 제어 전체나 그 일부를 나타낼 수 있습니다. 프로파일을 고치는 또 다른 유용한 방법은 artexmerge 명령으로 제어 일부를 나타내는 프로파일들을 합치는 것입니다.

artexmerge 명령으로 프로파일 하나 이상을 프로파일 하나로 합칠 수 있습니다.

프로파일을 합치려면 다음 단계를 마칩니다.

  1. 프로파일이 저장된 디렉터리에서 다음 명령을 실행합니다.
text
artexmerge profile_name1.xml profile_name2.xml > new_profile_name.xml
  1. 다음 명령을 실행해 프로파일을 보고 올바른 프로파일인지 확인합니다.
text
artexget new_profile_name.xml

참고: 합치는 프로파일에 중복 매개변수가 있으면 합치는 과정이 실패합니다. -f 플래그를 쓰면 가장 나중 프로파일의 매개변수 값을 씁니다.

관련 정보:

  • artexmerge 명령

AIX Runtime Expert 프로파일 찾기

artexlist 명령으로 주어진 경로와 LDAP 서버에서 프로파일을 찾습니다.

프로파일을 찾으려면 다음 단계를 마칩니다.

  1. 프로파일이 로컬 시스템에 있으면 다음 명령을 실행합니다.
text
artexlist
  1. 프로파일이 LDAP 서버에 있으면 다음 명령을 실행합니다.
text
artexlist -l

기본으로 이 명령은 /etc/security/artex/samples 디렉터리의 프로파일을 나열합니다. 환경 변수로 기본 경로를 바꾸려면 ARTEX_PROFILE_PATH를 세미콜론으로 구분한 경로 하나 이상으로 설정하거나, 경로를 인수로 넘깁니다.

관련 정보:

  • artexlist 명령

AIX Runtime Expert 프로파일 값 얻기

artexget 명령으로 프로파일 정보를 찾습니다.

프로파일로 프로파일이나 시스템의 값을 여러 형식(XML, CSV, 텍스트)으로, 그리고 재부팅해야 적용되는 매개변수나 일부 서비스를 멈췄다 다시 시작해야 하는 매개변수 같은 여러 필터로 보여 줄 수 있습니다.

시스템에서 값을 얻는 것은 다음 상황에서 유용합니다.

  • 시스템 스냅숏 찍기: 시스템이 올바르게 구성되었으면 스냅숏을 찍어 시스템 구성을 저장할 수 있습니다. 나중에 매개변수가 바뀌었는데 어느 것이 바뀌었는지 기억나지 않으면 이 스냅숏을 쓸 수 있습니다. 스냅숏 프로파일로 시스템을 원하는 구성으로 되돌릴 수 있습니다.
  • 다른 시스템에 쓰도록 시스템 구성 복제: 한 환경에서 시스템을 구성하고 조정했으면 시스템 설정을 AIX Runtime Expert 프로파일로 추출해 다른 시스템에 적용할 수 있습니다.
  • 문제 디버깅: 운영 시스템에서 문제가 발견되면 프로파일로 시험 시스템에 같은 시스템 설정을 만들고 시험 시스템에서 문제를 디버그할 수 있습니다.

프로파일 정보를 얻으려면 다음 단계를 마칩니다.

  1. 정보를 얻을 프로파일이 있는 디렉터리로 갑니다.
  2. 다음 명령을 실행해 프로파일 정보를 얻습니다.
text
artexget name_of_profile.xml

제한: 시스템에 사용자가 많이 정의되어 있으면 chuserProfile.xml, coreProfile.xml, all.xml 같은 프로파일에 artexget, artexset, artexdiff 명령을 적용할 때 평소보다 시간이 오래 걸립니다.

관련 정보:

  • artexget 명령

AIX Runtime Expert 프로파일 적용

프로파일의 구성과 조정 매개변수로 시스템을 설정하려면 artexset 명령으로 프로파일을 적용합니다.

사용자가 만든 프로파일을 적용하려면 다음 단계를 마칩니다.

  1. 적용할 프로파일이 저장된 디렉터리로 갑니다.
  2. 다음 명령을 실행해 프로파일을 시스템에 적용합니다.
text
artexset -c name_of_profile.xml
  1. 선택: 일관된 구성을 유지하도록 시스템이 다시 시작할 때마다 프로파일을 적용하려면 다음 명령을 실행합니다.
text
artexset -b name_of_profile.xml

참고: 제한된 매개변수는 읽기 전용 매개변수로 지원됩니다. 그래서 이 매개변수의 값은 artexget 명령으로 가져올 수 있지만 artexset 명령으로 설정할 수는 없습니다.

관련 정보:

  • artexset 명령

AIX Runtime Expert 프로파일 되돌리기

artexset -u 명령으로 구성 설정을 시스템의 이전 구성 설정으로 되돌립니다. 프로파일을 적용하기 전에 쓰던 시스템 설정을 적용할 수 있습니다.

현재 세션에서 시스템 설정을 바꾸지 않았으면 되돌리기 명령을 쓸 수 없습니다.

되돌리기는 운영 체제를 다시 이미징하는 것이 아닙니다. 되돌리기 명령을 쓰면 자원을 지우거나 만드는 것이 아니라 실행 구성 값을 시스템의 이전 설정으로 되돌립니다. 되돌리기 명령으로 특정 시간이나 날짜의 설정으로 되돌릴 수는 없습니다. 바꾸기 전의 시스템 이전 설정으로만 되돌릴 수 있습니다.

되돌리기 명령은 다음 경우에 쓸 수 있습니다.

  • 시스템의 구성 변경 시험. 새 구성이 잘 동작하지 않으면 전에 믿던 구성으로 빨리 되돌릴 수 있습니다.
  • 시스템 디버깅. 시스템이 잘 동작하지 않기 시작하면, 되돌려 보아 새로 발견한 문제에 구성 변경이 관련되었는지 확인할 수 있습니다.
  • 특별한 예외 상황을 처리하려고 새 프로파일 적용. 예를 들어 지정한 동작이 시스템에서 한 달에 한 번만 일어나고, 그것을 적용한 뒤 시스템을 이전 구성으로 되돌리고 싶은 경우입니다.

이전 시스템 설정으로 되돌리려면 다음 단계를 마칩니다.

  1. 프로파일을 되돌리려면 다음 명령을 실행합니다.
text
artexset -u
  1. 되돌리기가 올바르게 끝났는지 확인하려면 다음 명령을 실행해 시스템 설정을 비교합니다.
text
artexdiff -f txt -r -profile_name.xml

참고: profile_name.xml은 시스템에 마지막으로 적용한 프로파일의 이름입니다. 시스템과 프로파일 사이의 차이가 나옵니다.

관련 정보:

  • artexget 명령, artexlist 명령

AIX Runtime Expert 프로파일 비교

artexdiff 명령으로 두 프로파일을 비교하거나 프로파일 값을 시스템 값과 비교합니다.

서로 다른 두 시스템의 프로파일을 비교하려면 다음 단계를 마칩니다.

  1. 시스템 1에서 다음 명령을 실행합니다.
text
artexget -p all.xml > all_system1.xml
  1. 시스템 2에서 다음 명령을 실행합니다.
text
artexget -p all.xml > all_system2.xml

일정 기간 뒤 시스템의 구성 매개변수가 바뀌었는지 확인하려면, 예를 들어 휴가를 다녀와서 그 사이 바뀐 것이 있는지 확인하려면 다음 명령을 실행합니다.

  • 휴가를 떠나기 전에(원문은 "After you return") 다음 명령을 실행합니다.
text
$ artexget -p all.xml > all_before_vacation.xml
  • 휴가 동안 일어난 구성 변경을 보려면 다음 명령을 실행합니다.
text
$ artexdiff -c -p all_before_vacation.xml

관련 정보:

  • artexget 명령, artexlist 명령
영어 원문

Administering AIX Runtime Expert

AIX Runtime Expert uses a few simple commands to create profiles, modify profiles, combine profiles, and apply profiles.

Configuring AIX Runtime Expert

AIX Runtime Expert uses the configuration file /etc/security/artex/config/artex.conf.

An entry in the configuration file consists of the name of a configuration option, followed by one or more spaces and a value. Blank lines and lines starting with a # sign are ignored.

The following options are supported:

Table 1. Configuration Options

  • ARTEX_CATALOG_PATH — Colon-separated list of directories searched for catalog files. This option is overridden by the ARTEX_CATALOG_PATH environment variable. Default path is /etc/security/artex/ catalogs.
  • ARTEX_PROFILE_PATH — Colon-separated list of directories searched for profile files by the artexlist command if no directory is specified. This option is overridden by the ARTEX_PROFILE_PATH environment variable. Default path is /etc/security/artex/samples.
  • DEBUG_LOG_CATEGORY — Debug category for the log file. This option can be repeated to select multiple debug categories.
  • DEBUG_LOG_LEVEL — Debug level for the log file between 0 (no debug traces) and 3 (most verbose).
  • MAX_CMDS — Maximum number of external commands executed concurrently. External commands executed by AIX Runtime Expert are queued so that no more than MAX_CMDS external commands are executed simultaneously at any given time. Default is 10.

Creating AIX Runtime Expert profiles

Use existing samples in the /etc/security/artex/samples directory to create a new profile with the artexget command. The sample profiles are a template for you to create a profile that you can modify and save into a custom file.

To create a profile with all of the parameters supported by AIX Runtime Expert, complete the following steps:

  1. Configure and tune your system to have the desired settings for a new profile.

  2. Go to the samples directory: /etc/security/artex/samples

  3. Run the following command to create a new profile named custom_all.xml:

text
artexget -p all.xml > /directory_for_new_profile/custom_all.xml

Note: The custom_all.xml profile can be used to configure other systems that have a similar current system configuration.

To create a profile for a specific component, such as network options, complete the following steps:

  1. Configure and tune your system to have the desired settings for a new profile.

  2. Go to the samples directory: /etc/security/artex/samples.

  3. Create a new profile named custom_no.xml from the existing sample profile, noProfile.xml, by running the following command:

text
artexget -p noProfile.xml > /directory_for_new_profile/custom_no.xml

The newly created profiles can be customized by changing or removing the values of the parameters using an XML editor or any text editor.

The custom profiles can be uploaded to LDAP server to use from multiple AIX systems. To upload the profiles to LDAP server, use the tools provided by LDAP.

Related concepts

AIX Runtime Expert and LDAP AIX Runtime Expert can retrieve profiles from the Lightweight Directory Access Protocol (LDAP) server. AIX Runtime Expert profiles AIX Runtime Expert profiles are used to set values on a running system, extract values for a running system, and compare values against a running system or against another profile.

Related tasks

Getting AIX Runtime Expert profile values Use the artexget command to find information about a profile. Applying AIX Runtime Expert profiles To set a system with the configuration and tunable parameters from a profile, apply a profile using the artexset command.

Related information

artexget command

Modifying AIX Runtime Expert profiles

AIX Runtime Expert profiles are XML files and can be modified with any XML editor or any text editor.

User-created profiles using artexget command can be customized by changing the values of the parameters or by removing some of the parameters that are not required to modify or monitor the profile.

To modify AIX Runtime Expertprofiles, complete the following steps:

  1. From the directory where custom_all.xml is located, run the following commands to save a copy of the profile:
text
cp custom_all.xml custom_all_backup.xml
  1. From the directory where custom_all.xml is located, run the following command to edit the profile:
text
vi custom_all.xml

Note: You can use any XML editor or text editor.

  1. Modify the values of the parameters or remove the parameters that are not required to change or monitor the profile.

  2. Run the following command to verify that the profile changes have been saved correctly by comparing them against the current system settings:

text
artexdiff -c -r custom_all.xml custom_all_backup.xml

The artexdiff command displays the parameters that were modified by the editor. The <FirstValue> displays the value of the profile, and the <SecondValue> displays the value of the current system.

Related concepts

AIX Runtime Expert profiles AIX Runtime Expert profiles are used to set values on a running system, extract values for a running system, and compare values against a running system or against another profile.

Related tasks

Getting AIX Runtime Expert profile values Use the artexget command to find information about a profile. Applying AIX Runtime Expert profiles To set a system with the configuration and tunable parameters from a profile, apply a profile using the artexset command.

Related information

artexdiff command

Combining AIX Runtime Expert profiles

A profile can represent a full set of controls or any subset of controls. Another useful way to modify profiles is to combine profiles that represent a subset of controls using the artxmerge command.

You can use the artexmerge command to combine one or more profiles into a single profile.

To combine profiles complete, the following steps:

  1. From the directory where the profiles are stored run the following command:
text
artexmerge profile_name1.xml profile_name2.xml > new_profile_name.xml
  1. Run the following command to view the profile and verify that it is a valid profile:
text
artexget new_profile_name.xml

Note: If the profiles you are combining have duplicate parameters, the process of combining the profiles will fail. Alternatively, if you use the -f flag, then the parameter values from the latest profile are used.

Related information

artexmerge command

Finding AIX Runtime Expert profiles

Use the artexlist command to find profiles in a given path and from an LDAP server.

To find profiles, complete the following steps:

  1. If the profile is on the local system, run the following command:
text
artexlist
  1. If the profile is located on an LDAP server, run the following command:
text
artexlist -l

By default, the command lists the profiles in the /etc/security/artex/samples directory. To override the default path with an environment variable, set the ARTEX_PROFILE_PATH to one or more semicolon delimited paths, or a path that can be passed as an argument.

Related information

artexlist command

Getting AIX Runtime Expert profile values

Use the artexget command to find information about a profile.

Using a profile, you can display the values from the profile or from the system in different formats (XML, CSV, or text) with different filters, such as parameters that need a reboot to take effect and parameters that need some services to be stopped and restarted.

Getting values from the system is useful in the following situations:

To take a snapshot of a system

When a system is configured correctly, you can save the configuration of the system by taking a snapshot. You can use this snapshot at a later date, if any of the parameters are changed and you do not remember which parameters were changed. The snapshot profile can be used to bring the system back to the desired configuration.

To clone the configuration of a system for use on other systems After a system is configured and tuned in an environment, you can extract the system settings into an AIX Runtime Expert profile and apply the profile on other systems.

To debug a problem

When a problem is found on a production system, you can use a profile to set up the same system settings on a test system and than debug the problems on the test system.

To get information about a profile, complete the following steps:

  1. Go to the directory where the profile you want to get information about is located.

  2. To get information about the profile run the following command:

text
artexget name_of_profile.xml

Limitation: When a system has many users defined, the AIX Runtime Expert commands artexget, artexset, and artexdiff applied to profiles such as, chuserProfile.xml, coreProfile.xml, or all.xml profiles, requires more time to complete than usual.

Related concepts

AIX Runtime Expert profiles AIX Runtime Expert profiles are used to set values on a running system, extract values for a running system, and compare values against a running system or against another profile.

Related tasks

Creating AIX Runtime Expert profiles Use existing samples in the /etc/security/artex/samples directory to create a new profile with the artexget command. The sample profiles are a template for you to create a profile that you can modify and save into a custom file. Modifying AIX Runtime Expert profiles AIX Runtime Expert profiles are XML files and can be modified with any XML editor or any text editor.

Related information

artexget command

Applying AIX Runtime Expert profiles

To set a system with the configuration and tunable parameters from a profile, apply a profile using the artexset command.

To apply a user-created profile, complete the following steps:

  1. Go to the directory where the profile you want to apply is stored.

  2. To apply the profile to the system, run the following command:

text
artexset -c name_of_profile.xml
  1. Optional: If you want to apply a profile every time the system restarts to maintain a consistent configuration, run the following command:
text
artexset -b name_of_profile.xml

Note: The restricted parameters are supported as read-only parameters. Therefore, the values of these parameters can be retrieved with theartexget command, but cannot be set with the artexset command.

Related concepts

AIX Runtime Expert profiles AIX Runtime Expert profiles are used to set values on a running system, extract values for a running system, and compare values against a running system or against another profile.

Related tasks

Creating AIX Runtime Expert profiles Use existing samples in the /etc/security/artex/samples directory to create a new profile with the artexget command. The sample profiles are a template for you to create a profile that you can modify and save into a custom file.

Modifying AIX Runtime Expert profiles AIX Runtime Expert profiles are XML files and can be modified with any XML editor or any text editor.

Related information

artexset command

Rolling back AIX Runtime Expert profiles

Use the artexset –u command to reset the configuration settings to the previous configuration setting of a system. You can apply the system settings that were being used before the profile was applied.

You cannot use the rollback command if you have not changed the system settings during your current session.

Rolling back is not considered a re-imaging of an operating system. When you use the rollback command, you are not deleting or creating resources, you are not deleting or creating resources but instead reverting the runtime configuration values to the system's previous settings. With the rollback command you cannot roll back to settings from a particular time or date. You can only roll back to the systems previous settings before you made a change.

The rollback command can be used in the following cases:

  • Testing configuration changes to a system. If the new configuration works poorly, you can quickly revert to a previously trusted configuration.

  • Debugging a system. If a system starts running poorly, a roll back could confirm if configuration changes have played a part in a newly detected problem.

  • Implementing a new profile in order to satisfy some special exception situation. For example, a specified action only occurs once a month on the system, and after it has been applied to your system you want to restore the system to its previous configuration.

To roll back to the previous system settings, complete the following steps:

  1. To roll back a profile, run the following command:
text
artexset -u
  1. To verify that the roll back completed correctly, run the following command to compare system settings:
text
artexdiff -f txt -r -profile_name.xml

Note: The profile_name.xml is the name of the latest applied profile to the system. The differences between the system and the profile are displayed.

Related information

artexget command artexlist command

Comparing AIX Runtime Expert profiles

Use the artexdiff command to compare two profiles or a profile values with system values.

To compare the profiles for two different systems complete the following steps:

  1. Run the following command from system 1:
text
artexget -p all.xml > all_system1.xml
  1. Run the following command from system 2:
text
artexget -p all.xml > all_system2.xml

To verify any configuration parameters are changed on a system after a period of time, for example, if you go on vacation and want to verify any changes while you were gone, run the following commands:.

  • After you return from vacation, run the following command:
text
$ artexget -p all.xml > all_before_vacation.xml
  • To view any configuration changes that occurred during your vacation, run the following command:
text
$ artexdiff -c -p all_before_vacation.xml

Related information

artexget command artexlist command