< Home

snmp-agent trap enable feature-name gtl

Function

The snmp-agent trap enable feature-name gtl command enables the trap function of the gtl module.

The undo snmp-agent trap enable feature-name gtl command disables the trap function of the gtl module.

For details about whether the trap function for the gtl module is enabled or disabled by default, see display snmp-agent trap feature-name gtl all.

This command takes effect only on the device that loads the license control item.

Format

snmp-agent trap enable feature-name gtl [ trap-name { hwgtldefaultvalue | hwgtldefaultvaluecleared | hwgtlneardeadline | hwgtlneardeadlinecleared | hwgtlresourceusedup | hwgtlresourceusedupcleared | hwgtlesnmismatch | hwgtlesnmismatchcleared } ]

undo snmp-agent trap enable feature-name gtl [ trap-name { hwgtldefaultvalue | hwgtldefaultvaluecleared | hwgtlneardeadline | hwgtlneardeadlinecleared | hwgtlresourceusedup | hwgtlresourceusedupcleared | hwgtlesnmismatch | hwgtlesnmismatchcleared } ]

Parameters

Parameter

Description

Value

trap-name Enables the traps of GTL events of specified types. -
hwgtldefaultvalue Enables the device to send a trap when a license file became invalid, the system used the default configuration of the license -
hwgtldefaultvaluecleared Enables the device to send a trap when the trap, indicating that the system used the default license configurations, was cleared. -
hwgtlneardeadline Enables the device to send trap when the system date was approaching the deadline of the service module defined in the license. -
hwgtlneardeadlinecleared Enables the device to send a trap when the license no longer approached the deadline. -
hwgtlresourceusedup Enables the device to send a trap when the percentage of the resources used by the service module was not less than the threshold defined by the license. -
hwgtlresourceusedupcleared Enables the device to send a trap when the number of resources used by the service module fell below the threshold. -
hwgtlesnmismatch Enables the device to send a trap when the device ESN and the license ESN do not match. -
hwgtlesnmismatchcleared Enables the device to send a trap when the device ESN and the license ESN match again. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To enable the traps of one or more events, you can specify type-name.

Example

# Enable the trap function of the gtl module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name gtl
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >