Oracle® Solaris 11.2의 시스템 서비스 관리

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

이벤트 알림 매개변수 표시

svcs -n 명령은 FMA 이벤트 알림 매개변수, 시스템 전체 SMF 상태 전환 알림 매개변수, 서비스 인스턴스 상태 전환 알림 매개변수를 표시합니다. 이러한 매개변수에 대한 자세한 내용은 smf(5) 매뉴얼 페이지에서 "알림 매개변수"를 참조하십시오.

$ svcs -n
Notification parameters for FMA Events
    Event: problem-diagnosed
        Notification Type: smtp
            Active: true
            reply-to: root@localhost
            to: root@localhost

        Notification Type: snmp
            Active: true

        Notification Type: syslog
            Active: true

    Event: problem-repaired
        Notification Type: snmp
            Active: true

    Event: problem-resolved
        Notification Type: snmp
            Active: true

System wide notification parameters:
svc:/system/svc/global:default:
    Event: to-maintenance
        Notification Type: smtp
            Active: true
            to: sysadmins@example.com

svc:/application/pkg/mirror:default:
    Event: to-maintenance
        Notification Type: smtp
            Active: true
            to: installteam@example.com

세 가지 FMA 이벤트인 problem-diagnosed, problem-repairedproblem-resolved가 표시됩니다. 또한 네번째 이벤트인 problem-updated에 대한 알림 매개변수를 구성할 수 있습니다.

시스템 전체 상태 전환 알림 설정의 경우 이러한 전역 설정을 저장하는 서비스도 나열됩니다. 이 시스템 전체 설정은 사용자 정의 설정입니다. 시스템 전체 또는 전역 값은 사용자 정의 값이 설정되지 않은 모든 서비스 인스턴스에 적용됩니다.

표시된 마지막 설정은 특정 서비스 인스턴스에 대한 사용자 정의 설정입니다.

svccfg listnotify 명령을 사용하여 지정된 이벤트에 대한 알림 매개변수만 표시합니다. 상태 전환 이벤트의 경우 -g 옵션을 사용하여 전역 설정을 표시합니다. 출력에는 알림 매개변수 값의 소스도 표시됩니다.

$ svccfg listnotify problem-resolved
    Event: problem-resolved (source: svc:/system/fm/notify-params:default)
        Notification Type: snmp
            Active: true
$ svccfg listnotify -g to-maintenance
    Event: to-maintenance (source: svc:/system/svc/global:default)
        Notification Type: smtp
            Active: true
            to: sysadmins@example.com
$ svccfg -s pkg/mirror listnotify to-maintenance
    Event: to-maintenance (source: svc:/application/pkg/mirror)
        Notification Type: smtp
            Active: true
            to: installteam@example.com

이벤트 알림 구성에 대한 자세한 내용은 상태 전환 및 FMA 이벤트에 대한 알림 구성을 참조하십시오.