Quantcast
Channel: THWACK: All Content - Network Performance Monitor
Viewing all articles
Browse latest Browse all 21870

Drive C filling up - batch file solves that problem

$
0
0

I was having a problem with my C drive filling up on my Orion NPM 10.0 server. After speaking with tech support, I found out that I could delete the files that were filling my drive up. (I'm not sure why NPM doesn't clean up after itself...maybe in a new release?)

The files filling up my drive were old web log files and old AgentDisaptcher files. I wrote a batch file that deletes the files if they are more than a week old. Scheduled to run once a week, it works like a charm for me and I don't have to worry about drive C anymore. Here's the batch file if anyone is interested in using it. Use at your own risk, of course. (Maybe run it on a test folder first to make sure you're satisfied with the results?)

 

c:\windows\system32\forfiles.exe /p "C:\Documents and Settings\All Users\Application Data\SolarWinds\JobEngine\ThresholdStreams\AgentDispatcher" /s /m * /d -7 /c "cmd /c del @file"

c:\windows\system32\forfiles.exe /p "C:\WINDOWS\system32\LogFiles\W3SVC2" /s /m * /d -7 /c "cmd /c del @file"

       Dan Goodale, Network Engineer II, Triwest HealthCare

Viewing all articles
Browse latest Browse all 21870

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>