The script below will clean up Shared Memory Segments and Semaphore Arrays. It will first notify you for which under account you are logged under and if you are sure wish to proceed. It will then execute a while loop to clear Shared Memory and Semaphore Arrays. Please note that if an application is brought down in a non clean way it may leave left overs in Shared Memory/Semaphore Arrays. You need to ensure that the application(s) is down before you execute this script; otherwise shared memory/semaphores will not get cleaned because the application(s) will keep recreating them.
The script does the following:
– Checks for historical data for when a CPU has reached 50% usage.
– Checks if RAM usage has gone beyond 85%
– Checks if Hard Drive space in all of your partitions has gone beyond 85%
This is a first release of a script I am working on. This is not a finished “product”. More automation will be added to new releases. This is just a test run. A v0.1 release if you will. You can download the script and place it which ever directory you wish. You can either automatically run it by inserting a CRON job or run it manually. Please note that if you do not receive any emails it is either because you do not have MAILX installed or your ISP (wisely) has blocked unauthorized SMTP emails.
Issue: Cannot delete a Domain firewall rule.
Setup: One Domain Controller to which a Firewall Rule has been put in place. However when going to Firewall Advanced settings you do not have permissions to delete the rule even though you have full rights.
When there is a time you have to shutdown/startup your actual ESXi hosts you can automate a graceful shutdown of your virtual images before your ESXi host goes down. Upon starting up your ESXi server your virtual images can setup to automatically start up.
This automatic procedure can be setup in a linear fashion as in you can decide in which order your guest images can shutdown and in which order you want them to come up again. You can exclude guests from this automated procedure if you do not want certain guests to come up at all for example.
Here is how.
You can enable Active Directory Authentication Services in VShphere by following the instructions below. This will allow you to setup VShphere to use Active Directory accounts. Note however that in order to actually use your Active Directory account you will have to specify it in the in the “Permissions” tab. Instructions to do so are located http://www.sfentona.net/?p=811.
In this tutorial we will do a basic setup of a User and a Groups. This entails the creation of Organizational Units and the creation of sub Organizational Units in order to keep things organized. We will create a domain user and then create a domain group.
On the client machine:
– You will need to create a directory where it will serve as a mount point for your NFS drive from your NFS server. You can create this directory anywhere you want. Example:
The image below gives a summary of what needs to be done.