cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
393
Views
0
Helpful
4
Replies

Ciscoworks log file management

kbrookov
Level 1
Level 1

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 4

vnealy
Level 1
Level 1

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.

rmushtaq
Level 8
Level 8

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

pleitnes
Level 1
Level 1

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.

That got it, Thanks a ton :)