Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

test services monitoring rfc2544

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
test services monitoring rfc2544
(test test-name | test-id id)
<routing-instance <routing-instance-name>>
(clear-counters | start | stop)

Description

Start or stop an RFC 2544-based benchmarking test, or clear the statistical counters for a test. You can start or stop a specific test name, or you can stop a test based on its test identifier. When you trigger an RFC 2544-based benchmarking test, it passes through a series of states. These states are displayed in the Test state field of the show services monitoring rfc2544 command.

Note:

The RFC 2544 test is stopped at the initiator automatically after the test successfully completes all of the test steps. You need not explicitly enter the test services monitoring rfc2544-benchmarking (test test-name | test-id test-id) stop command. However, at the reflector, you must explicitly enter this command to stop the test after the test is completed at the initiator.

Options

(test test-name | test-id id)

Name of the test to be started or stopped or the unique identifier of the test to be stopped.

routing-instance routing-instance-name (Optional) Name of the routing instance for the test.
(clear-counters | start | stop) Clear the statistics associated with a test, or start or stop a test.

Additional Information

Required Privilege Level

view

Sample Output

test services monitoring rfc2544 test test-name start

content_copy zoom_out_map
user@host> test services monitoring rfc2544 test mytest start

If successful, the identifier of the started test is displayed:

content_copy zoom_out_map
Test mytestid 1 started

If unsuccessful, an error message is displayed:

content_copy zoom_out_map
Error starting test mytest: error-description

Some examples:

  • If you try to start a test that is already running:

    content_copy zoom_out_map
    Error starting test mytest: previous session with id 1 still active
  • If you try to start an INET reflector test that has an incorrect address configured on the destination-ipv4-address statement:

    content_copy zoom_out_map
    Error starting test mytest: inet address '192.0.2.2' not local for default routing-instance
  • If you try to start a test for a test name that has not been configured on the test-name statement:

    content_copy zoom_out_map
    Error starting test mytest: configuration entry for test 'mytest' not found

test services monitoring rfc2544 test test-name routing-instance instance-name start

content_copy zoom_out_map
user@host> test services monitoring rfc2544 test mytest routing-instance lg01 start

If successful, the identifier of the started test is displayed:

content_copy zoom_out_map
Test mytest id 1 started

If unsuccessful, an error message is displayed:

content_copy zoom_out_map
Error starting test mytest: error-description

Some examples:

  • If you try to start an INET reflector test in a routing instance that has an address configured on the destination-ipv4-address statement that is not in the given routing-instance:

    content_copy zoom_out_map
    Error starting test mytest: inet address '192.0.2.2' not local in routing-instance lg01
  • If you try to start a test for a routing instance that has not been configured on the routing-instance statement:

    content_copy zoom_out_map
    Error starting test mytest: routing instance 'lg01' not found

test services monitoring rfc2544 test-id test-id stop

content_copy zoom_out_map
user@host> test services monitoring rfc2544 test-id 1 stop

If successful, the identifier of the started test is displayed:

content_copy zoom_out_map
Test test-name id 1 stopped

If unsuccessful, an error message is displayed:

content_copy zoom_out_map
Error stopping test with id 1: error-description

For example, if the test identifier you specified when you issued the command doesn't exist:

content_copy zoom_out_map
Error stopping test test-name: no active sessions found

test services monitoring rfc2544 test test-name clear-counters

content_copy zoom_out_map
user@host> test services monitoring rfc2544 test mytest clear-counters

If successful, a message is displayed describing which counters were cleared.

content_copy zoom_out_map
Test mytest id test-id clearing counters

If unsuccessful, an error message is displayed:

content_copy zoom_out_map
Error clearing counters for test mytest: error-description

For example, if you try to clear counters for a test that does not have active sessions:

content_copy zoom_out_map
Error clearing counters for test mytest: no active sessions found

Release Information

Command introduced for Junos OS Evolved Release 21.1R1.

footer-navigation