This post is more than 5 years old
32 Posts
0
2687
September 18th, 2007 23:00
Processing Log files of SAM, AM/PM large sizes.
Sizes of log files SAM, AM are very large.
Is it possible to use utility logadm for rotating these files in Solaris 9?
Or you could offer some another tools.
Is it possible to use utility logadm for rotating these files in Solaris 9?
Or you could offer some another tools.
No Events found!
Dinand1
89 Posts
0
September 19th, 2007 03:00
If you're talking about the .log files like INCHARGE-SA.log you should execute the following dmctl command
/opt/InCharge7/SAM/smarts/bin/dmctl -s InCharge exec roll_log
This will generate and empty file and roll the previous one ... and leave it with a name like INCHARGE-SA.log.001 ... INCHARGE-SA.log.002 ... etc ...
If you are talking about the .audit or .archive files, the best way is just create a cron job and move the files or just rename them. The process will create a new one as soon as you rename it or move it to a differente dir ...
i hope this helps
cheers
F.
FredericMeunier_0588be
143 Posts
0
October 31st, 2007 10:00
yes logadm will do. Two ways to rotate Smarts InCharge's log files:
- kill -USR1 for .log files
- mv (move) for .audit and .archive
Regards,
--Fred
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com
Rohit5
4 Posts
0
June 22nd, 2008 21:00
/opt/InCharge/SAM/smarts/bin/dmctl -s InCharge exec roll_log
kmerkel
2 Posts
0
December 1st, 2008 13:00
#rolls over smarts -
move D:\InCharge7\SAM\smarts\local\logs\*.audit D:\InCharge7\SAM\smarts\local\logs\archive\
move D:\InCharge7\SAM\smarts\local\logs\*.archive D:\InCharge7\SAM\smarts\local\logs\archive\
ren D:\InCharge7\SAM\smarts\local\logs\archive\SAM01.archive SAM01.archive.%date:~4,2%-%date:~7,2%-%date:~10%.txt
ren D:\InCharge7\SAM\smarts\local\logs\archive\SAM01.audit SAM01.audit.%date:~4,2%-%date:~7,2%-%date:~10%.txt
ren D:\InCharge7\SAM\smarts\local\logs\archive\SAM01-OI.archive SAM01-OI.archive.%date:~4,2%-%date:~7,2%-%date:~10%.txt
ren D:\InCharge7\SAM\smarts\local\logs\archive\SAM01-OI.audit SAM01-OI.audit.%date:~4,2%-%date:~7,2%-%date:~10%.txt
dmctl -s SAM01 exec roll_log
dmctl -s SAM01-OI exec roll_log
move D:\InCharge7\SAM\smarts\local\logs\*.bak D:\InCharge7\SAM\smarts\local\logs\archive
ren D:\InCharge7\SAM\smarts\local\logs\archive\SAM01.log.bak SAM01.log.%date:~4,2%-%date:~7,2%-%date:~10%.txt
ren D:\InCharge7\SAM\smarts\local\logs\archive\SAM01-OI.log.bak SAM01-OI.log.%date:~4,2%-%date:~7,2%-%date:~10%.txt
CHIBenson
7 Posts
0
December 2nd, 2008 15:00
Thanks..
kmerkel
2 Posts
0
December 16th, 2008 08:00
dmctl -s SAM01-OI exec roll_log
is the windows log roll command- it is included in the script I used above for windows. drop the script into a batch file (match your path and filenames) and run the script in scheduled tasks.
AdaDie
54 Posts
0
February 2nd, 2010 08:00
AdaDie
54 Posts
0
February 3rd, 2010 00:00
dmctl -s exec roll_sam_auditlog