< Home

snmp-agent trap enable feature-name line

Function

The snmp-agent trap enable feature-name line command enables the trap function for the LINE module.

The undo snmp-agent trap enable feature-name line command disables the trap function for the LINE module.

By default, the trap function is disabled for the LINE module.

Format

snmp-agent trap enable feature-name line [ trap-name { hwVtyNumExceed | hwUserLogin | hwUserLoginFail | hwUserLogout } ]

undo snmp-agent trap enable feature-name line [ trap-name { hwVtyNumExceed | hwUserLogin | hwUserLoginFail | hwUserLogout } ]

Parameters

Parameter

Description

Value

trap-name Enables or disables the trap function for a specified event of the LINE module. -
hwVtyNumExceed Enables the trap function for the event that the number of Telnet login users exceeds the maximum number allowed on the device. -
hwUserLogin Enables the trap function for the user login event. -
hwUserLoginFail Enables the trap function for the user login failure event. -
hwUserLogout Enables the trap function for the user logout event. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can specify trap-name to enable the trap function for one or more events of the LINE module.

Example

# Enable the trap function for the user login event.

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