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
Содержание Xgig
Страница 1: ...Xgig Analyzer Version 7 3 User s Guide ...
Страница 2: ......
Страница 3: ...Viavi Solutions 1 844 GO VIAVI www viavisolutions com Xgig Analyzer Version 7 3 User s Guide ...
Страница 6: ...Xgig Analyzer User s Guide Page iv Version 7 3 December 2015 ...
Страница 7: ...v CONTENTS ...
Страница 15: ...1 PART ONE Using Xgig Analyzer ...
Страница 16: ...PART ONE Using Xgig Analyzer 2 Xgig Analyzer User s Guide ...
Страница 27: ...13 PART TWO Using Xgig TraceControl ...
Страница 28: ...PART TWO Using Xgig TraceControl 14 Xgig Analyzer User s Guide ...
Страница 29: ...15 Chapter 2 About Xgig TraceControl In this chapter Introduction to TraceControl ...
Страница 156: ...Chapter 4 Xgig TraceControl Capture Configuration Segment Capture Options 142 Xgig Analyzer User s Guide ...
Страница 157: ...143 Chapter 5 Template Browser Template Editor In this chapter Template Browser Template Editor ...
Страница 173: ...159 Chapter 6 Xgig TraceControl Hints and Tips In this chapter TraceControl Hints and Tips Keyboard Shortcuts ...
Страница 176: ...Chapter 6 Xgig TraceControl Hints and Tips Keyboard Shortcuts 162 Xgig Analyzer User s Guide ...
Страница 177: ...163 PART THREE Using Xgig Performance Monitor ...
Страница 178: ...PART THREE Using Xgig Performance Monitor 164 Xgig Analyzer User s Guide ...
Страница 179: ...165 Chapter 7 About Xgig Performance Monitor In this chapter Introducing Xgig Performance Monitor ...
Страница 181: ...167 Chapter 8 Getting Started with Xgig Performance Monitor In this chapter Launching Xgig Performance Monitor ...
Страница 192: ...Chapter 9 Xgig Performance Monitor Port Configuration Changing Port Functions 178 Xgig Analyzer User s Guide ...
Страница 223: ...209 PART FOUR Using Xgig TraceView ...
Страница 224: ...PART FOUR Using Xgig TraceView 210 Xgig Analyzer User s Guide ...
Страница 225: ...211 Chapter 11 About Xgig TraceView In this chapter Introducing Xgig TraceView ...
Страница 227: ...213 Chapter 12 Getting Started with Xgig TraceView In this chapter Launching Xgig TraceView Working With Domains ...
Страница 379: ...365 Chapter 15 Xgig TraceView Histograms In this chapter Histogram Overview Histogram Controls ...
Страница 382: ...Chapter 15 Xgig TraceView Histograms Histogram Controls 368 Xgig Analyzer User s Guide ...
Страница 383: ...369 Chapter 16 Xgig TraceView Template Editor In this chapter Using Template Editor ...
Страница 394: ...Chapter 16 Xgig TraceView Template Editor Using Template Editor 380 Xgig Analyzer User s Guide ...
Страница 414: ...Chapter 18 Converting Files from Other Platforms Converting I Tech Files 400 Xgig Analyzer User s Guide ...
Страница 429: ...415 Chapter 20 Xgig Trace View Hints and Tips In this chapter Trace View Hints and Tips Toolbar Keyboard Shortcuts ...
Страница 437: ...423 PART FIVE Using Xgig Expert ...
Страница 438: ...PART FIVE Using Xgig Expert 424 Xgig Analyzer User s Guide ...
Страница 439: ...425 Chapter 21 Xgig Expert In this chapter Key Features of Xgig Expert Opening a Trace Switching to TraceView ...
Страница 442: ...Chapter 21 Xgig Expert 428 Xgig Analyzer User s Guide Figure 194 Xgig Expert Graph View ...
Страница 443: ...429 PART SIX Appendices ...
Страница 444: ...PART SIX Appendices 430 Xgig Analyzer User s Guide ...
Страница 454: ...Appendix C Protocol Display Color Coding 440 Xgig Analyzer User s Guide ...
Страница 461: ...447 INDEX ...
Страница 467: ......