281
Examples
# Create and enable a trigger.
<Sysname>system-view
[Sysname] snmp mib event trigger owner owner1 name triggerA
[Sysname-trigger-owner1-triggerA] oid 1.3.6.1.2.1.2.2.1.1.3
[Sysname-trigger-owner1-triggerA] frequency 360
[Sysname-trigger-owner1-triggerA] trigger enable
Related commands
snmp mib event trigger
type
Use
type
to specify existence trigger test types.
Use
undo type
to remove the existence trigger test types.
Syntax
type
{
absent
|
changed
|
present
}
undo type
{
absent
|
changed
|
present
}
Default
The existence test types are
present
and
absent
.
Views
Trigger-existence view
Predefined user roles
network-admin
Parameters
absent
: Monitors the absence of an object.
changed
: Monitors the change of the value of an object. If the last sampling does not obtain a value,
the event is not triggered.
present
: Monitors the presence of an object.
Usage guidelines
For the first sampling, see "
startup (trigger-existence view)
".
The existence trigger tests also apply to the wildcarded instances of the monitor object.
Examples
# Specify the existence test type as
present
.
<Sysname> system-view
[Sysname] snmp mib event trigger owner owner1 name triggerA
[Sysname-trigger-owner1-triggerA] test existence
[Sysname-trigger-owner1-triggerA-existence] type present