Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

snmp-notify(8)

Name

snmp-notify - SNMP notification daemon for software events

Synopsis

/usr/lib/fm/notify/snmp-notify

Description

snmp-notify is a daemon that subscribes to software events and FMA diagnosis and repair events and generates SNMP trap notifications based on a set of notification preferences that are stored in the SMF service configuration repository.

SNMP notification preferences are set using svccfg(8).

snmp-notify is managed by the service management facility, smf(7), under the service FMRI:

svc:/system/fm/snmp-notify:default

Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(8). The service's status can be queried using the svcs(1) command.

Properties

The following service properties can be set:

config/rootdir

This is an astring property that defaults to /. When set, the specified root directory will be used for all pathnames evaluated by snmp-notify.

Examples

Example 1 Configuring Notification Preferences

The following command configures notification preferences for SMF service state transition events.

# svccfg setnotify -g from-online,to-maintenance snmp:active
Example 2 Enabling SNMP Notifications

The following command enables notifications for Fault Management diagnosis events.

# svccfg setnotify problem-diagnosed snmp:active
Example 3 Listing Notification Settings

The following command lists all notification settings for Fault Management diagnosis events.

# svccfg listnotify fma-diagnosis

Refer to svccfg(8) for more information on configuring SNMP notification preferences.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/fault-management/snmp-notify
Interface Stability
Unstable

See Also

svcs(1), attributes(7), smf(7), svcadm(8), svccfg(8), syslogd(8)