AIX – Unix – Script to Clean/Shrink WTMP file size

Today I came across an AIX wtmp file that was 1.9 GB in size. Needed to shrink the file down to keep at least the last 300 lines. Once I was completed, the file was less than 1 MB. I wrote the below script to clean the wtmp file, you are able to choose where […]

Monitor Audit MySQL Users Logon Script

I was searching all over to find a script to effectively monitor or audit users logging in to MySQl databases. There may be more scripts out there or tools that you can buy to audit users logging in to your MYSQL databases, but I can tell you, the below script that I decided to write, […]