Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Scripting Dumplog paramenters

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
Silver

Re: Scripting Dumplog paramenters

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

203
Views
0
Helpful
1
Replies
CreatePlease to create content