Hello,
I'm pretty new to AIX. My company sent me out for training just a few weeks ago, after our senior AIX administrator left the company. In taking over his environment, I've run across quite a few maintenance related tasks that seem better suited for automation.
Case in point, I am asked to maintain the free-space of a certain filesystem, so that 1gig of free-space is always available. Manually checking filesystems every day is something that gets a little repetitive and feels like a waste of time. However, this is a mission-critical filesystem, that is running in a production environment, so I need to stay on top of it.
I'm wondering if any of you AIX veterans out there, know a way to create a script and/or job to monitor the free-space of a filesystem, and report back to me when it is approaching a "danger" level of free-space, if you will. My first thought was some kind of solution incorporating a similar logic to something like.. : df -k /filesystemX |grep filesystemX .... and here is where I get lost. Perhaps sending the output to something like "awk" to find the number before the % sign showing free-space remaining, and then sending those results via sendmail at intervals of the day...but anyway, I don't have the technical know-how yet to set this up myself.
Any opinions or ideas would be greatly appreciated!
Kind regards,
Justin
I'm pretty new to AIX. My company sent me out for training just a few weeks ago, after our senior AIX administrator left the company. In taking over his environment, I've run across quite a few maintenance related tasks that seem better suited for automation.
Case in point, I am asked to maintain the free-space of a certain filesystem, so that 1gig of free-space is always available. Manually checking filesystems every day is something that gets a little repetitive and feels like a waste of time. However, this is a mission-critical filesystem, that is running in a production environment, so I need to stay on top of it.
I'm wondering if any of you AIX veterans out there, know a way to create a script and/or job to monitor the free-space of a filesystem, and report back to me when it is approaching a "danger" level of free-space, if you will. My first thought was some kind of solution incorporating a similar logic to something like.. : df -k /filesystemX |grep filesystemX .... and here is where I get lost. Perhaps sending the output to something like "awk" to find the number before the % sign showing free-space remaining, and then sending those results via sendmail at intervals of the day...but anyway, I don't have the technical know-how yet to set this up myself.
Any opinions or ideas would be greatly appreciated!
Kind regards,
Justin