- Print
- PDF
Creating Performance Sessions Using a Script
The Skylight orchestrator command line interface is called Appliance Monitor. From the Appliance Monitor 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 Appliance Monitor and mgr-commands, see the Skylight Appliance Monitor Command Reference (part of the document set for Skylight orchestrator).
Procedure Requirements
- Part of this procedure is performed in the Skylight orchestrator console (Appliance Monitor CLI). To access the console, you need to know the credentials of the visionems user.
- Part of this procedure is performed in mgr-commands mode. To enter this mode, you must know the credentials for a valid Skylight orchestrator user account (an account for the Skylight 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.
Procedure Steps
During this procedure you will do the following tasks:
- Upload the script to the Skylight orchestrator appliance.
- Execute the script.
To upload the script to the Skylight orchestrator appliance
Use an SCP client (such as WinSCP) and the visionems account to transfer your script to the following directory on the appliance:
/home/visionems
To execute the script
Access the Skylight orchestrator console by opening an SSH session to the appliance IP address, port 2200.
Log in as the visionems user.
At the Skylight: prompt, enter this command to go into mgr-commands mode:
mgr-commandsAt the mgr/mgr# prompt, enter this command to execute the script:
execute /home/visionems/yourScript
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 the Skylight Appliance Monitor Command Reference.
© 2024 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
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks