The Sensor Management command line interface is called smcli. From the smcli command line, you can access another set of commands (called mgr-commands) that are used primarily to set up performance sessions.
To create performance sessions in bulk using a script, you prepare the script consisting of mgr-commands that create sender endpoints, reflector endpoints, and sessions. Then you execute the script in mgr-commands mode.
This article provides a procedure for loading and executing a script on the command line. It also provides an example script for creating performance sessions.
For detailed information about the smcli and mgr-commands, see the Sensor Management CLI Reference.
Procedure Requirements
- Part of this procedure is performed in the Sensor Management console (smcli CLI).
- Part of this procedure is performed in mgr-commands mode. To enter this mode, you must know the credentials for a valid Sensor Management user account (an account for the Sensor Management web interface).
You must prepare a script that includes all the commands needed to set up the session. For an example that you can use as a starting point, see Example Script for Creating Performance Sessions below.
Procedure Steps
During this procedure you will do the following tasks:
- Upload the script to the Sensor Management.
- Execute the script.
To upload the script to the Sensor Management
-
Use an SCP client (such as WinSCP) to transfer your script to the Sensor Management.
-
Copy your script to the sm-bizn pod.
To execute the script
-
Access smcli (see the Sensor Management CLI Reference.
-
At the prompt, enter this command to go into mgr-commands mode:
mgr-commands
- At the mgr/mgr# prompt, enter this command to execute the script:
execute <the_path_to_your_script_in_the_core_container>/<your_script_file_name>
The commands in the script are displayed as they are executed.
- When the script has run to completion, enter this command to confirm that any new reflectors and supervision endpoints were created:
show endpoint all
Confirm that new endpoints appear in the list.
- Enter this command to check that new sessions were created:
show session
Confirm that new sessions appear in the list.
- Exit mgr-commands mode by entering:
quit
Example Script for Creating Performance Sessions
This example script creates and configures four reflectors and sets up a TWAMP session.
The script consists of mgr-commands. For detailed descriptions of mgr-commands, see Sensor Management CLI Reference.
endpoint reflector Reflector_A Host 172.18.2.100
operate endpoint Reflector_A capability twamp-rf
operate endpoint Reflector_A capability echo-udp-rf
operate endpoint Reflector_A capability echo-icmp-rf
operate endpoint Reflector_A resolve
endpoint reflector Reflector_B Host 172.18.2.101
operate endpoint Reflector_B capability twamp-rf
operate endpoint Reflector_B capability echo-udp-rf
operate endpoint Reflector_B capability echo-icmp-rf
operate endpoint Reflector_B resolve
endpoint reflector Reflector_C Host 172.18.2.102
operate endpoint Reflector_C capability twamp-rf
operate endpoint Reflector_C capability echo-udp-rf
operate endpoint Reflector_C capability echo-icmp-rf
operate endpoint Reflector_C resolve
endpoint reflector Reflector_D Host 172.18.2.103
streamtemplate data ST-TWAMP UDP 30 100
session TWAMP ipv4 twamp1_Reflector_A ST-TWAMP KVM_VCX2 Reflector_A e2 ext0 14001 6000 10 3 255 6
no streamtemplate ST-TWAMP
© 2026 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms