How to use Spectrum SPM Test using custom option.
search cancel

How to use Spectrum SPM Test using custom option.

book

Article ID: 206840

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

We want to monitor web site latency using spectrum SPM test via a custom script, can you please let us know how it works with a custom script?

Environment

Release : 10.4.1

Component : Spectrum Core / SpectroSERVER

Cause

Custom configuration parameters needed

Resolution

The script path was designed to be used with the SystemEdge agent.  When a SPM test is created, the detail is saved in the svcrsp.cf file in the C:\Users\Public\CA\SystemEDGE\port161\plugins\svcrsp folder.   In that file, you must uncomment the #allow_scripts entry so it looks like this:

# Uncomment to allow execution of external scripts
  allow_scripts

Then create a script to run.  For example here is my http_test.bat:

@echo off
wget -v -S -o c:\wget.log -U "Java/1.6.0_43" --no-check-certificate www.ca.com
exit

(You can change that to java 11.0.7.10 if need be)

In the SPM test, literally just put the path and script.  For example:

c:\Users\Public\CA\SystemEDGE\port1691\plugins\svcrsp\http_test.bat

When the test runs, it will execute the script - in this example, it creates the c:\wget.log file.