send-trap (TCP test instance)

Function

The send-trap command configures conditions for sending a trap message in an NQA TCP test.

The undo send-trap command deletes the configured conditions for sending a trap message.

By default, no trap messages are sent in any condition.

Format

send-trap { all | { rtd | testfailure | probefailure | testcomplete } * }

undo send-trap { all | { rtd | testfailure | probefailure | testcomplete } * }

Parameters

Parameter Description Value
all

Indicates that trap messages are sent in any of the following situations.

-

rtd

Indicates that a trap message is sent if the RTD reaches the specified threshold.

-

testfailure

Indicates that a trap message is sent if a test fails.

-

probefailure

Indicates that a trap message is sent if a probe attempt fails.

-

testcomplete

Indicates that a trap message is sent after a test is complete.

-

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

Traps are generated no matter whether the NQA test succeeds or fails. You can determine whether traps are sent to the NMS by enabling or disabling the trap function.

The send-trap command can be used to configure conditions for sending a trap message. If the specified conditions are met, the system sends a trap to the NMS.

Prerequisites

Before using the send-trap command, run the test-type command to specify a test type.

Precautions

If parameters need to be changed during the running of the test instance, the system prompts you whether to terminate the test instance. Press "Y" or "N" as required.

  • If you press "Y", the test instance is terminated and parameters changed. The settings take effect after being committed. To restart the test instance, run the start command.
  • If you press "N", the test instance keeps running, and the parameters fail to be modified.

    If the trap function is enabled for multiple test instances, a large number of traps (logs) may be generated, which increases the CPU usage and affects other services.

Example

# Configure a test instance named user test to send a trap message if the RTD reaches the specified threshold.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type tcp
[*HUAWEI-nqa-user-test] send-trap rtd
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >