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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Ciscoworks log file management

Ciscoworks has a procedure for log file management, description here:

When I try to run the perl script, I get the following error:

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.

This is due to the space in program files, is there anyway to overcome this error so I can run the script?

New Member

Re: Ciscoworks log file management

Check your command syntax. That error you are getting is a Windows error for usage.

I have found that a lot of the Windows commands have been illustrated as Unix commands, not mentioning that at the command prompt, pre-XP verisons of Windows have the dreaded 8 character limit.

I usually sit ON the directory that houses the command and then run it.

You still need to make sure you have enough disk space to complete successfully.

Hope this helps.


Re: Ciscoworks log file management

For Log Roration, you can use th elogrot script for CW2K from:

New Member

Re: Ciscoworks log file management

The spaces in directory names are the killer. Make sure you quote the appropriate bits. For example, here is the string that I use to rotate the logs every month:

"D:\Program Files\CSCOpx\bin\perl" "D:\Program Files\CSCOpx\cgi-bin\admin\" -dir d:\Cw2K-backups\logs\200309


New Member

Re: Ciscoworks log file management

That got it, Thanks a ton :)