There are five extended commands for managing alarms.
The following parameters can be used by the extended commands for alarms. For details about the a and m parameters, refer to Predefined Parameters and Flags.
The value of the ack parameter is a comma-separated list of values that indicate whether the alarms being managed have been acknowledged. Legal values for the ack parameter are A (Acknowledged) and N (Not Acknowledged).
The value of the command parameter is the alarm action to be performed.
The value of the domain parameter is the name of the Sun Management Center domain for which alarms are to be managed. If no domain is specified, the Default Domain is used.
The value of the managed_object parameter is the name of the managed object for which alarms are to be managed.
The value of the note parameter is a text annotation for the command being run.
The value of the property parameter is the name of the property for which alarms are to be managed.
The value of the property_instance parameter is the name of the specific property instance for which alarms are to be managed.
The value of the qualifier parameter is the name of the qualifier that is associated with the managed property whose alarms are to be managed.
The value of the severity parameter is a comma-separated list of severity values for the alarms being managed. The following values are allowed for the severity parameter:
ERR — Error
WRN — Warning
INF — Informative
IRR — Irrational
DWN — Down
DIS — Disabled
OFF — Off
The value of the state parameter is a comma-separated list of state values for the alarms being managed. Legal values for the state parameter are O (Open) or C (Closed).
You can examine alarm values and set alarm actions with the following commands:
The ackAlarms command acknowledges alarms in an agent or a list of agents. The ackAlarms command takes the following parameters: a, ack, columns, domain, f, m, managed_object, note, property, property_instance, qualifier, severity, and state.
If no value is specified for the state parameter, state defaults to O (Open).
The delAlarms command deletes alarms in an agent or a list of agents. The delAlarms command takes the following parameters: a, ack, columns, domain, f, m, managed_object, note, property, property_instance, qualifier, severity, and state.
If no value is specified for the state parameter, state defaults to C (Closed).
The getAlarms command retrieves alarm information for an agent or a set of agents. The getAlarms command takes the following parameters: a, ack, columns, domain, f, m, managed_object, property, property_instance, qualifier, severity, and state.
If no parameters are specified, getAlarms returns all alarm information.
The runAlarmAction command runs a manual or delayed alarm action in an agent or a list of agents. The runAlarmAction command takes the following parameters: a and domain
The setAlarmAction command sets a manual or delayed alarm action for an existing alarm in an agent or a list of agents. The setAlarmAction command takes the following parameters: a, command, and domain.
The following command retrieves all alarms with severity of ERR or DWN from the host haiku:
> getAlarms a=haiku severity=ERR,DWN |