Appendix D, Xgig Chassis Trigger/Stop from the Command Line
446
Xgig Analyzer User’s Guide
Example Script
Complete command example scripts (.cmd files) are installed with the Xgig Analyzer Software
and are located in
\Program Files\Viavi\Xgig Analyzer\Scripts
. An example script is shown below.
@echo off
set domain=%1
set chassis=%2
set mode=%3
if '%chassis%'=='' goto end_usage
if '%domain%'=='' goto end_usage
if '%3'=='' set mode=TRIGGER
wget -O- "--post-data=Parameters=/%mode% \%domain%" http://JDSU:JDSUsnt@%chassis%/cgi-bin/domaincontrol.pl
goto end_all
:end_usage
echo ===================================================================================================
echo TriggerAnalyzer.cmd - Remote triggering for Xgig Analyzer domains via HTTP.
echo ===================================================================================================
echo Usage:
echo This batch file requires two parameters:
echo 1. The Domain Name to trigger/stop (eg: "My Domain (1,1,1)" - note the quotes are required with spaces!)
echo 2. The Chassis Name or IP Address (eg: Xgig02005584 or 10.22.10.5)
echo Optional Parameter:
echo 3. Mode to use: STOP or TRIGGER - defaults to TRIGGER
echo ===================================================================================================
echo Example:
echo TriggerAnalyzer "My Domain (1,1,1)" Xgig02005584
echo Translates to:
echo wget -O- "--post-data=Parameters=/TRIGGER \"My Domain (1,1,1)" http://JDSU:JDSUsnt@Xgig02005584/cgi-bin/
domaincontrol.pl
echo ===================================================================================================
echo NOTES:
echo 1. In a SAS domain, the analyzer can be stopped with either TRIGGER or STOP commands, however,
echo a non-SAS domain (i.e. Fibre Channel, Ethernet) will not stop if sent TRIGGER and the analyzer mode
echo (set by TC) is not configured for "Stop after trigger". In this situation, it would be necessary
echo to use the STOP command!
echo 2. This batch file assumes the use of default username and passwords on the chassis and would need
echo to be modified accordingly if non-default values are utilized.
echo 3. This tool requires the utility wget.exe version 1.10 or newer, which can be downloaded from:
echo http://users.ugent.be/~bpuype/wget/
echo 4. For full documentation on this feature see the Xgig Analyzer Users Guide (XgigAnalyzerUG.pdf).
:end_all
Summary of Contents for Xgig
Page 1: ...Xgig Analyzer Version 7 3 User s Guide ...
Page 2: ......
Page 3: ...Viavi Solutions 1 844 GO VIAVI www viavisolutions com Xgig Analyzer Version 7 3 User s Guide ...
Page 6: ...Xgig Analyzer User s Guide Page iv Version 7 3 December 2015 ...
Page 7: ...v CONTENTS ...
Page 15: ...1 PART ONE Using Xgig Analyzer ...
Page 16: ...PART ONE Using Xgig Analyzer 2 Xgig Analyzer User s Guide ...
Page 27: ...13 PART TWO Using Xgig TraceControl ...
Page 28: ...PART TWO Using Xgig TraceControl 14 Xgig Analyzer User s Guide ...
Page 29: ...15 Chapter 2 About Xgig TraceControl In this chapter Introduction to TraceControl ...
Page 176: ...Chapter 6 Xgig TraceControl Hints and Tips Keyboard Shortcuts 162 Xgig Analyzer User s Guide ...
Page 177: ...163 PART THREE Using Xgig Performance Monitor ...
Page 178: ...PART THREE Using Xgig Performance Monitor 164 Xgig Analyzer User s Guide ...
Page 223: ...209 PART FOUR Using Xgig TraceView ...
Page 224: ...PART FOUR Using Xgig TraceView 210 Xgig Analyzer User s Guide ...
Page 225: ...211 Chapter 11 About Xgig TraceView In this chapter Introducing Xgig TraceView ...
Page 382: ...Chapter 15 Xgig TraceView Histograms Histogram Controls 368 Xgig Analyzer User s Guide ...
Page 383: ...369 Chapter 16 Xgig TraceView Template Editor In this chapter Using Template Editor ...
Page 437: ...423 PART FIVE Using Xgig Expert ...
Page 438: ...PART FIVE Using Xgig Expert 424 Xgig Analyzer User s Guide ...
Page 442: ...Chapter 21 Xgig Expert 428 Xgig Analyzer User s Guide Figure 194 Xgig Expert Graph View ...
Page 443: ...429 PART SIX Appendices ...
Page 444: ...PART SIX Appendices 430 Xgig Analyzer User s Guide ...
Page 454: ...Appendix C Protocol Display Color Coding 440 Xgig Analyzer User s Guide ...
Page 461: ...447 INDEX ...
Page 467: ......