FMDUMP(8) | Maintenance Commands and Procedures | FMDUMP(8) |
fmdump - fault management log viewer
fmdump [-aAefHiIjmpvV] [-c class] [-R dir] [-t time] [-T time]
[-u uuid] [-n name[.name]*[=value]]
[-N name[.name]*[=value][;name[.name]*[=value]]*] [file]
The fmdump utility can be used to display the contents of any of the log files associated with the Fault Manager, fmd(8). The Fault Manager runs in the background on each system. It receives telemetry information relating to problems detected by the system software, diagnoses these problems, and initiates proactive self-healing activities such as disabling faulty components.
The Fault Manager maintains two sets of log files for use by administrators and service personnel:
error log
fault log
informational logs
By default, fmdump displays the contents of the fault log, which records the result of each diagnosis made by the fault manager or one of its component modules.
An example of a default fmdump display follows:
# fmdump TIME UUID SUNW-MSG-ID Dec 28 13:01:27.3919 bf36f0ea-9e47-42b5-fc6f-c0d979c4c8f4 FMD-8000-11 Dec 28 13:01:49.3765 3a186292-3402-40ff-b5ae-810601be337d FMD-8000-11 Dec 28 13:02:59.4448 58107381-1985-48a4-b56f-91d8a617ad83 FMD-8000-OW ...
Each problem recorded in the fault log is identified by:
If a problem requires action by a human administrator or service technician or affects system behavior, the Fault Manager also issues a human-readable message to syslogd(8). This message provides a summary of the problem and a reference to the knowledge article on http://illumos.org/msg/.
You can use the -v and -V options to expand the display from a single-line summary to increased levels of detail for each event recorded in the log. The -c, -t, -T, and -u options can be used to filter the output by selecting only those events that match the specified class, range of times, or uuid.
If more than one filter option is present on the command-line, the options combine to display only those events that are selected by the logical AND of the options. If more than one instance of the same filter option is present on the command-line, the like options combine to display any events selected by the logical OR of the options. For example, the command:
# fmdump -u uuid1 -u uuid2 -t 02Dec03
selects events whose attributes are (uuid1 OR uuid2) AND (time on or after 02Dec03).
The following options are supported:
-a
Silent events may contain Private telemetry information, and their existence may be Private also. The presence of silent events and the data they contain should not be parsed or relied upon in the development of scripts or other tools, and their presence or absence should not be relied upon to indicate whether an error or fault condition exists.
-A
-c class
-e
The error log file contains Private telemetry information. This information is recorded to facilitate post-mortem analysis of problems and event replay, and should not be parsed or relied upon for the development of scripts or other tools.
-f
-H
-i
The ordinary information log file, like the error log file, contains Private telemetry information and the same caveats apply with respect to interpretation or parsing of this data.
-I
The high-value information log file, like the error and ordinary information log files, contains Private telemetry information and the same caveats apply with respect to interpretation or parsing of this data.
-j
-m
-n name[.name]*[=value]
$ * { ^ | ( ) \
...or a regular expression, because these are meaningful to the shell. It is safest to enclose any of these in single quotes. For numeric properties, the value can be octal, hex, or decimal.
-N name[.name]*[=value][;name[.name]*[=value]]*
-p
-R dir
-t time
mm/dd/yy hh:mm:ss
mm/dd/yy hh:mm
mm/dd/yy
ddMonyy hh:mm:ss
ddMonyy hh:mm
Mon dd hh:mm:ss
yyyy-mm-dd [T hh:mm[:ss]]
ddMonyy
hh:mm:ss
hh:mm
Tns | Tnsec
Tus |Tusec
Tms | Tmsec
Ts | Tsec
Tm |Tmin
Th |Thour
Td |Tday
You can append a decimal fraction of the form .n to any -t option argument to indicate a fractional number of seconds beyond the specified time.
-T time
-u uuid
If the -e option and -u option are both present, the error events that are cross-referenced by the specified diagnosis are displayed.
-v
-V
The following operands are supported:
file
Example 1 Retrieving Given Class from fmd Log
Use any of the following commands to retrieve information about a specified class from the fmd log. The complete class name is ereport.io.ddi.context.
# fmdump -Ve -c 'ereport.io.ddi.context' # fmdump -Ve -c 'ereport.*.context' # fmdump -Ve -n 'class=ereport.io.ddi.context' # fmdump -Ve -n 'class=ereport.*.context'
Any of the preceding commands produces the following output:
Oct 06 2007 11:53:20.975021712 ereport.io.ddi.context
nvlist version: 0
class = ereport.io.ddi.context
ena = 0x1b03a15ecf00001
detector = (embedded nvlist)
nvlist version: 0
version = 0x0
scheme = dev
device-path = /
(end detector)
__ttl = 0x1
__tod = 0x470706b0 0x3a1da690
Example 2 Retrieving Specific Detector Device Path from fmd Log
The following command retrieves a detector device path from the fmd log.
# fmdump -Ve -n 'detector.device-path=.*/disk@1,0$' Oct 06 2007 12:04:28.065660760 ereport.io.scsi.disk.rqs nvlist version: 0
class = ereport.io.scsi.disk.rqs
ena = 0x453ff3732400401
detector = (embedded nvlist)
nvlist version: 0
version = 0x0
scheme = dev
device-path = /pci@0,0/pci1000,3060@3/disk@1,0
(end detector)
__ttl = 0x1
__tod = 0x4707094c 0x3e9e758
The following exit values are returned:
0
1
2
3
/var/fm/fmd
/var/fm/fmd/errlog
/var/fm/fmd/fltlog
/var/fm/fmd/infolog
/var/fm/fmd/infolog_hival
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | See below. |
The command-line options are Evolving. The human-readable error log output is Private. The human-readable fault log output is Evolving.
sh(1), libexacct(3LIB), attributes(7), regex(7), fmadm(8), fmd(8), fmstat(8), syslogd(8)
http://illumos.org/msg/
Fault logs contain references to records stored in error logs that can be displayed using fmdump -V to understand the errors that were used in the diagnosis of a particular fault. These links are preserved if an error log is renamed as part of log rotation. They can be broken by removing an error log file, or by moving it to another filesystem directory. fmdump can not display error information for such broken links. It continues to display any and all information present in the fault log.
April 1, 2024 | OmniOS |