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

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: http://www.cisco.com/en/US/customer/products/sw/cscowork/ps2073/products_configuration_example09186a0080107dcb.shtml

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?

4 REPLIES
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.

Blue

Re: Ciscoworks log file management

For Log Roration, you can use th elogrot script for CW2K from: http://sourceforge.net/projects/cosi-nms

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\logBackup.pl" -dir d:\Cw2K-backups\logs\200309

s.

New Member

Re: Ciscoworks log file management

That got it, Thanks a ton :)

141
Views
0
Helpful
4
Replies