fmadm list-defect コマンドでは、SMF サービスの問題に関する情報を表示できます。
使用例 5 fmadm list-defect の出力次の例は、devchassis デーモンの SMF サービスが maintenance 状態に移行したことを示しています。
# fmadm list-defect --------------- ------------------------------------ -------------- --------- TIME EVENT-ID MSG-ID SEVERITY --------------- ------------------------------------ -------------- --------- Apr 23 02:33:12 bca0052c-5aa4-4ebf-b9c7-92ce645cf3af SMF-8000-YX major Problem Status : isolated Diag Engine : software-diagnosis / 0.1 System Manufacturer : Oracle Corporation Name : Sun Netra X4270 M3 Part_Number : NILE-P1LRQT-8 Serial_Number : 1211FM200D System Component Manufacturer : Oracle Name : Sun Netra X4270 M3 Part_Number : NILE-P1LRQT-8 Serial_Number : 1211FM200D Host_ID : 008167b1 ---------------------------------------- Suspect 1 of 1 : Problem class : defect.sunos.smf.svc.maintenance Certainty : 100% Affects : svc:///system/devchassis:daemon Status : faulted and taken out of service Resource FMRI : "svc:///system/devchassis:daemon" Status : faulted and taken out of service Description : A service failed - a method is failing in a retryable manner but too often. Response : The service has been placed into the maintenance state. Impact : svc:/system/devchassis:daemon is unavailable. Action : Run 'svcs -xv svc:/system/devchassis:daemon' to determine the generic reason why the service failed, the location of any logfiles, and a list of other services impacted. Please refer to the associated reference document at http://support.oracle.com/msg/SMF-8000-YX for the latest service procedures and policies regarding this diagnosis.使用例 6 欠陥のあるサービスに関する情報の表示
欠陥のあるサービスに関する情報を表示するには、fmadm の出力の「Action」セクションに示された指示に従います。「See」行にある参照を使用すると、この問題に関する詳細な情報を入手できます。
# svcs -xv svc:/system/devchassis:daemon svc:/system/devchassis:daemon (/dev/chassis namespace support service) State: maintenance since Thu Apr 23 02:33:12 2015 Reason: Start method failed repeatedly, last exited with status 127. See: http://support.oracle.com/msg/SMF-8000-KS See: man -M /usr/share/man/ -s 7FS devchassis See: /var/svc/log/system-devchassis:daemon.log Impact: This service is not running.
前述した svcs -xv コマンドに加えて、svcs -xL コマンドを使用するとログファイルのフルパス名とログファイルの最後の数行を表示でき、svcs -Lv コマンドを使用するとログファイル全体を表示できます。