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.
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 } ]
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. | - |