cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1370
Views
0
Helpful
9
Replies

LMS v4.0 Log Files

Steve Prescott
Level 1
Level 1

Attached is the output from Reports> System> Status> Log File.

As you can see I have a number of log files showing their size in RED.

How do I automate getting these smaller? 

I have looked at Log Rotation, but none of the files listed in the attached appear in that section.

Is it a case of manaully stopping the Daemon, renaming the log files and then restarting the daemon, or is there a way of automating this housekeeping task?

Thanks

Steve

2 Accepted Solutions

Accepted Solutions

Hi Steve,

Yes , lorotation is already sechduled..

you just need to add those files..

Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

View solution in original post

Hi Steve,

Ideally there should also be truncated. try re-adding them again .

in the meantime , you can manually trucate the file as below :

NMSROOT/CSCOpx/log >logrot_trunc

Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

View solution in original post

9 Replies 9

AFROJ AHMAD
Cisco Employee
Cisco Employee

Hi Steve,

All  the files under NMSROOT\CSCOPx\log  should be there under logrotation .

You need to  ADD these files to the current  LOG rotation . configure the size as per your needs.

Note : do not forgot to SECHDULED the JOB.

http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/4.2/user/guide/admin/server.html#wp1055359

Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Hi Afroj,

Attached is all the files shown in Log Rotation, none of the ones in RED in my original post appear here.

Can I just add them then, and does the following indicate that I already have the job scheduled in which case at 6pm tonight it should then pick up the new ones I add?

C:\Program Files (x86)\CSCOpx\bin>C:\Windows\System32\at.exe

Status ID   Day                     Time          Command Line

-------------------------------------------------------------------------------

        1   Each M T W Th F S Su    6:00 PM       C:\PROGRA~2\CSCOpx\objects\logrot\logrotsch.bat

        2   Each M T W Th F S Su    4:30 PM       C:\PROGRA~2\CSCOpx\conf\backupsch.bat

C:\Program Files (x86)\CSCOpx\bin>

Hi Steve,

Yes , lorotation is already sechduled..

you just need to add those files..

Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Thats brilliant, thanks Afjoj.

One final Query, I assue I will need to tick "Restart Daemon Manager" in order for it to gain access to the syslog?

checking on  "Restart Daemon Manager" is not manadatory...

This is optional.

Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Thats even better then

Will get the logs added, and see what happens tonight.

Thanks again. I'm off tomorrow, so will flag as correct answer on Thursday if all goes well.

Hi Afroj,

It looks as though that worked a treat, certainly on the syslog file!!

Is there any reason why it didnt touch jrm.log, EDS.log, NameServiceMonitor.log or ESSMonitor.log ? (See attached)

Hi Steve,

Ideally there should also be truncated. try re-adding them again .

in the meantime , you can manually trucate the file as below :

NMSROOT/CSCOpx/log >logrot_trunc

Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Thats done the business, thanks very much