cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
404
Views
0
Helpful
1
Replies

Scripting Dumplog paramenters

Live2 Bicycle
Level 3
Level 3

Has anyone been successful in scripting the paramenters in to the dumplog util?

What I am trying to accomplish is I run a batch file and at the beggining of the batch file I ask the user to enter the beggining time and ending time of the logs they want to pull then pass that to the dumplog util.

Here is what I do now but I want to stream line this:

:start

c:

cd\

cls

set /p time=Did u remember to set time in bat file? Enter y or n:

if "%time%"=="y" goto editfile

if "%time%"=="n" goto pulllogs

:pulllogs

cd\icm\icm1\cg1A\logfiles

rem cdlog icm1 cg1a

dumplog ctisvr /bt 15:38 /et 15:41 >Cg1a_CTISVR.txt

@Echo .

@Echo .

@Echo ***ARE THERE ERRORS? Y / N ***

@Echo .

@Echo .

Pause

move *.txt c:\hopewell

@Echo .

@Echo .

@Echo .

@Echo ALL LOG FILES WERE MOVED TO C:\HOPEWELL

@Echo .

@Echo .

@Echo .

goto end

:editfile

cls

c:

c:\hopewell

edit dumpcg.bat

goto start

:end

1 Reply 1

amritpatek
Level 6
Level 6

Cisco Developer Services Central is the right place for getting assitance with custom scipts.

http://www.cisco.com/en/US/products/svcs/ps3034/ps5408/ps5418/serv_home.html

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: