Modifies or displays the error-checking attributes of system components. Persistent attribute values can also be specified for components that have not yet been created.
errctrl [ -nru ] ComponentSelector ... subcommand ...
errctrl -p [ -ru ] ComponentSelector ... subcommand ...
errctrl -P [ -ru ] ComponentSelector ... subcommand ...
errctrl -x { -P | -p } [-ru ] ComponentSelector ...
errctrl -q [-rupP] {ComponentSelector ...}
errctrl -P {errcheckon | errcheckoff}
The errctrl command modifies or displays the error-checking attribute values of some or all components. Components are selected by name, by alias, or by type or subtype.
The supported value of a ComponentSelector is as follows:
Each list consists of one or more patterns separated by quoted spaces or commas. Patterns can contain special characters as described by the fnmatch subroutine. The pattern characters question mark (?), asterisk (*), and brackets ([ ]) are supported, but character classes and collation sequences are not allowed inside brackets ([ ]). Specifying -c all selects all components, if no other ComponentSelector is used.
The errctrl command can also be used with the -p or -P flag to specify persistent attribute customizations. For more information about persistent attribute customizations, see Persistent Customizations.
To enable or disable error checking for all components immediately and persistently, specify the errcheckon or errcheckoff subcommand with the -P flag. No other flags or subcommands are allowed with this form of the command. A bosboot command is required to make settings persistent across restarts.
The modified attributes depend on the subcommand specified on the command line. Multiple subcommands can be specified in a single invocation. The following subcommands are available:
Item | Description |
---|---|
errcheckon | Turns on error checking. |
errcheckoff | Turns off error checking. |
errcheckminimal | Sets the error checking level to 1. |
errchecknormal | Sets the error checking level to 3. |
errcheckdetail | Sets the error checking level to 7. |
errchecklevel={0-9} | Sets the error checking level to the specified value. |
lowsevdisposition={disp} | Sets the disposition for low-severity errors to the specified value. |
medsevdisposition={disp} | Sets the disposition for medium-severity errors to the specified value. |
Other subcommands can be recognized by individual components. A subcommand that is not recognized by a component is ignored.
Current attribute values can be displayed with the -q flag. If no ComponentSelector is used, attribute values are displayed for all components for which error-checking is supported.
Memory overlay detection system for network memory can be enabled by setting the detailed error level for the netmalloc component. Raise the errlevel for the netmalloc component to five or more (default: 3(normal)) to collect complete network memory police buffer information for all network memory allocation and free events. Note that raising the error level to seven (detail) or more also enables network memory overlay detection system. To enable only the net_malloc_police option and outstanding memory allocation (OSTD) logging for all network memory allocations and free events, raise the error level to five.
For more information about modifying the errlevel, see the Examples . For more information about raising the trace level to collect trace data in the netmalloc component, see the ctctrl command.
Probability is the numerator out of 1024 (for example, 10%: 102, 5%: 51, 1%: 10, 0.1%: 1)
Persistent Customizations
The -p and -P flags allow attribute values to be specified for system components that have not been created yet. Thus, attributes for newly created components can be customized before the components become active. The -p flag is used to specify customizations for components that will be created in the future, but before you restart AIX®. The -P flag is used to specify customizations that will take effect after the next restart. These customizations are added to the /var/adm/ras/raspertune file. You must run the bosboot command to save these customizations in the boot image and restart AIX for the customizations to take effect.
The ComponentSelectors can contain pattern-matching characters. Thus, a persistent customization can apply to more than one component. In addition, multiple customizations can apply to the same component, if different ComponentSelectors are used. If conflicting attribute values are specified in multiple customizations, the last customization takes precedence. If a customization already exists for a specified ComponentSelector, the new customization replaces the old one.
errctrl -p -l hdisk0 errchecknormal
errctrl -p -l hdisk1 errchecknormal
Customizations specified with the -p or -P flag are not deleted after they are used. Therefore, a single customization can affect multiple new components. Persistent customization can be deleted with the -x flag. The ComponentSelector must be specified identically to the way it was specified when the customization was created. For example, if a customization is created with the ComponentSelector -l hdisk0, the customization cannot be deleted with the ComponentSelector -l hdisk[0], even though both ComponentSelectors match the same component alias. When a persistent customization is deleted, no change is made to the attributes of components that were created when the customization was active.
Persistent customizations deleted with the -x and -P flags will remain in effect unless you run the bosboot command and restart AIX. A persistent customization that was created with the -P flag can be deleted after the restart by using the -x and -p flags. In this case, the customization will be active again if you restart AIX.
errctrl -p -l hdisk0 -u errcheckdetail
errctrl -p -l hdisk0 -r errcheckdetail
errctrl -p -l hdisk0 errcheckdetail
errctrl -p -l hdisk0 -r errcheckdetail
errctrl -p -l hdisk0 -u errcheckdetail
Recursive-down customizations (specified by the -r flag) take precedence over all other customizations, regardless of the order in which they are specified relative to other non-recursive-down customizations.
Persistent customizations can be queried by using the -q flag with either the -P or -p flag. Specifying the -q flag with the -P flag displays lines from the /var/adm/ras/raspertune file. Specifying the -q flag with the -p and -r flags displays the persistent customizations originally specified with the -r flag. Without the -r flag, the -q and -p flags display the persistent customizations specified with or without the -u flag.
A persistent customization allows multiple subcommands to be specified. If conflicting subcommands are used, the last subcommand is used. For example, the errchecknormal and errcheckdetail subcommands specify different values for the same error-checking attribute, so the last specified subcommand will be used.
Item | Description |
---|---|
-c ComponentList | Specifies a comma-separated or space-separated list of component names. The -c all flag selects all components if it is the only ComponentSelector. |
-h or -? | Displays a usage message. |
-l aliasList | Specifies a comma-separated or space-separated list of component aliases. |
-n | Applies subcommands immediately. This flag is the default if neither the -p nor the -P flag is used. |
-P | Specifies the subcommands that will persist across restarts. You must run the bosboot command and restart AIX for these subcommands to be active. |
-x | Deletes the persistent customization for the specified components. The ComponentSelector must be entered exactly as they were entered when the customization was originally specified. |
-p | Specifies persistent subcommands. The specified subcommands will be applied to newly-created components. |
-q | Queries the attribute settings of selected components. This flag can also be used with the -p or the -P flag to display persistent customizations. |
-r | Applies the subcommands recursively to all subcomponents of the selected components. |
-t type_subtypeList | Specifies a space-separated or a comma-separated list of type or type_subtype names. Valid type names include device, filesystem, network, services, storage, and ui. A complete list of type and type_subtype names is located in the /usr/include/sys/ras_base.h header file. |
-u | Applies the subcommands recursively to the ancestors of the specified components. |
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
errctrl -c 'jfs2.filesystem.*.userdata' errcheckdetail
errctrl -p -c 'jfs2.filesystem.*.userdata' errcheckminimal
The existing userdata components are not affected.errctrl -P -c 'jfs2.filesystem.*.userdata' errcheckminimal
If you run the bosboot command and restart AIX, minimal error checking
will be in effect for all JFS2 userdata components.errctrl -npP -c 'jfs2.filesystem.*.userdata' errcheckminimal
errctrl -P -c ethernet errcheckminimal medsevdisposition=80
errctrl -p -x -c 'jfs2.filesystem.*.userdata'
errctrl -q -p -r
errctrl -q -c jfs2 -r
errctrl errcheckdetail -c netmalloc
or
errctrl errchecklevel=7 -c netmalloc
errctrl errchecklevel=5 -c netmalloc
This command also enables outstanding memory allocation (OSTD) logging
for network memory.errctrl police_frequency=256 –c netmalloc.police
/usr/sbin/errctrl
Item | Description |
---|---|
/var/adm/ras/raspertune | File containing persistent attribute customization that will apply after a restart, if you run the bosboot command first. |