oid (action-notification view)
Use oid to specify a notification OID.
Use undo oid to restore the default.
Syntax
oid object-identifier
undo oid
Default
The OID is 0.0. No notification OID is specified.
Views
Action-notification view
Predefined user roles
network-admin
Parameters
object-identifier: Specifies a notification OID, which identifies a trap node.
Usage guidelines
The notification OID configured by using this command will be carried in the notification when the
notification action is taken.
Examples
# Specify the notification OID 1.3.6.1.2.1.14.16.2.1 for the event with the owner owner1 and name
EventA.
<Sysname> system-view
[Sysname] snmp mib event owner owner1 name EventA
[Sysname-event-owner1-EventA] action notification
[Sysname-event-owner1-EventA-notification] oid 1.3.6.1.2.1.14.16.2.1
Related commands
action
•
snmp mib event owner
•
oid (action-set view)
Use oid to specify a set-action object.
Use undo oid to restore the default.
Syntax
oid object-identifier
undo oid
Default
The OID is 0.0. No object is specified for a set action.
248