--- title: "Create Performance Sessions Using a Script" slug: "creating-performance-sessions-using-a-script" tags: ["Examples", "Performance Sessions", "Legacy Orchestrator", "admin"] updated: 2026-11-05T16:35:27Z published: 2026-11-05T16:35:27Z canonical: "docs.crossworkassurance.cisco.com/creating-performance-sessions-using-a-script" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Create Performance Sessions Using a Script The Legacy Orchestrator command line interface is called **socli**. From the socli 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 socli and mgr-commands, see the [Docker CLI Reference](/v1/docs/skylight-orchestrator-climanager-reference) (part of the document set for Legacy Orchestrator). ### Procedure Requirements 1. Part of this procedure is performed in the Legacy orchestrator console (socli CLI). To access the console, you need to know the credentials of the **skylight** user. 2. Part of this procedure is performed in mgr-commands mode. To enter this mode, you must know the credentials for a valid Legacy Orchestrator user account (an account for the Legacy Orchestrator 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](/v1/docs/creating-performance-sessions-using-a-script#example-script-for-creating-performance-sessions). ### Procedure Steps During this procedure you will do the following tasks: - Upload the script to the Legacy Orchestrator. - Execute the script. **To upload the script to the Legacy Orchestrator** 1. Use an SCP client (such as WinSCP) to transfer your script to the Legacy Orchestrator. 2. Copy your script to the core container. **To execute the script** 1. Open an SSH terminal session to the Legacy Orchestrator CLI on port 2200. 2. Log in as the **skylight** user. 3. At the prompt, enter this command to go into mgr-commands mode: **mgr-commands** 4. At the **mgr/mgr#** prompt, enter this command to execute the script: **execute /** The commands in the script are displayed as they are executed. 5. 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. 6. Enter this command to check that new sessions were created: **show session** Confirm that new sessions appear in the list. 7. 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 the *[Docker CLI Reference](/v1/docs/skylight-orchestrator-climanager-reference)*. ![pp.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/pp.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A35%3A51Z&se=2026-12-01T01%3A35%3A51Z&sr=b&sp=r&sig=xLo0r8WCVa2JnpxB4%2FMF0Do7pMc2PRt0P7UuJypOh%2B8%3D) **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)