09-30-2003 08:24 AM - edited 03-02-2019 10:41 AM
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?
09-30-2003 09:06 AM
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.
09-30-2003 09:16 AM
For Log Roration, you can use th elogrot script for CW2K from: http://sourceforge.net/projects/cosi-nms
10-02-2003 10:25 PM
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.
10-03-2003 04:23 AM
That got it, Thanks a ton :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide