218
context (action-set view)
Use context to configure a context for the set-action object.
Use undo context to restore the default.
Syntax
context context-name
undo context
Default
A set action does not have a context.
Views
Action-set view
Predefined user roles
network-admin
Parameters
context-name: Specifies a context, a case-sensitive string of 1 to 32 characters.
Usage guidelines
To uniquely identify a set-action object, configure a context for it.
Examples
# Configure the context contextname1 for the set-action object.
<Sysname>system-view
[Sysname] snmp mib event owner owner1 name EventA
[Sysname-event-owner1-EventA] action set
[Sysname-event-owner1-EventA-set] context contextname1
Related commands
action
snmp mib event owner
wildcard context
context (trigger view)
Use context to configure a context for a monitored object.
Use undo context to restore the default.
Syntax
context context-name
undo context
Default
A monitored object does not have a context.
Views
Trigger view