Can I create a script to gather PacketShaper diagnostic and log files?

book

Article ID: 165450

calendar_today

Updated On:

Products

PacketShaper

Issue/Introduction

I would like to create a script (command file) to run which will help me gather general information and logs for troubleshooting purposes.

Resolution

See the sample script below. You can create the script in Notepad. You may modify the content of the files by changing the content of the test.cmd script.

When you run this script, two files will be created:

test.out  <---contains all the command output

test.zip <--- contains log.zip and diag.zip files

Here is the content of the test.cmd command file:

#Please run this file at the root of 9.258/
#Collect command output to file test
setup show > test
ver ver >> test
sys health  >> test
# Zip up log files...
zip -r log.zip 9.256/log
# Zip up diag files...
zip -r diag.zip 9.258/diag
# Create test.zip and save at root of 9.258
zip test.zip 9.258/log.zip 9.258/diag.zip 9.256/cfg/config.ldi