226
Event MIB commands
action
Use action to set an action for an event.
Use undo action to remove an action.
Syntax
action { notification | set }
undo action { notification | set }
Default
An event does not have an action.
Views
Event view
Predefined user roles
network-admin
Parameters
notification: Sets the notification action. The system sends a notification to the NMS when an event is
triggered.
set: Sets the set action. The system sets a value for the specified MIB object when an event is triggered.
Usage guidelines
You can set both the set and notification actions for an event.
• When you set the set action, the system automatically creates a set entry and enters action-set view.
You can configure the set action in this view.
• When you set the notification action, the system automatically creates a notification entry and
enters action-notification view. You can configure the notification action in this view.
Examples
# Set the notification action for an event and specify the notification OID mteEventSetFailure for the
action. Set the set action for the event and set the value to 2 for the monitored object ipForwarding.0.
<Sysname> system-view
[Sysname] snmp mib event owner owner1 name EventA
[Sysname-event-owner1-EventA] action notification
[Sysname-event-owner1-EventA-notification] oid mteEventSetFailure
[Sysname-event-owner1-EventA-notification] quit
[Sysname-event-owner1-EventA] action set
[Sysname-event-owner1-EventA-set] oid ipForwarding.0
[Sysname-event-owner1-EventA-set] value 2
Related commands
• event enable