Jun 252008
 

Another
Perl SDK Script for VMware ESX 3.+. This is the update to the first part of this script. This update now allows you to not only list SnapShots per Virtual Machine and create SnapShots per Virtual machine, this script will now allow you to delete  a certain SnapShot as well as all snapshots at one time and revert to specific SnapShots and have the option to power on the VM after the revert as well. If  you have been using my scripts and they have helped you please leave a comment.

This script assumes you have the VMware
Infrastructure (VI) Perl Toolkit Packages installed and your
$HOME/.visdkrc set correctly. Without the above the script below will
not work!! 

Continue reading “VMware ESX SDK SnapShot Perl Script Part 2” »

Jun 232008
 

Another Perl SDK Script for VMware ESX 3.+. We needed a script that allowed the SA’s to create snapshots on the fly as well as list them. I will post another update as I will be expanding this tool to also remove snapshots. If  you have been using my scripts and they have helped you please leave a comment.

Quick update here is the link for part 2 of this script!

This script assumes you have the VMware
Infrastructure (VI) Perl Toolkit Packages installed and your
$HOME/.visdkrc set correctly. Without the above the script below will
not work!!

Continue reading “VMware ESX Perl SDK Snapshot Script” »

Jun 202008
 

Once we moved to VMWare ESX 3.+ we ran into a very annoying issue. The issue was that if you have multiple NICs from Multiple vendors, VMWare will reorder your NICs and cause havoc to you guys who use PXE boot/Kickstart. So I had to come with a work around that will alleviate this issue. I went ahead and created this script and I injected it in the post section of our kickstart profile and had it run after rebooting 3 times. Since After the third reboot the VMWare is done with its configuration, after the third reboot the script will run and then delete itself. Once all said and done your NICs will be in the proper order.

Some of you might just use it as a once shot deal manually and some of you might use it as I did, but I did not realize how many f you are having the same issue as I did. Since I posted this script it has ad close to 3000 hits. So for those of you who have used it and appreciated the work I have done or for those of you who have modified it and added to it. Please leave some feed back weather in the form of comments or in the forums.

Continue reading “Script to fix VMWare ESX 3.5 NIC Reordering after kickstart” »

Jun 182008
 


Job Description:

Unix Admin for Long Island New York and NYC
Applicants should be team players with a broad background in Unix Administration and have excellent troubleshooting skills.

Responsibilities shall include, but are not limited to: administering, supporting and troubleshooting the network;
documenting the network and security infrastructure, policies and procedures;

Applicants are expected also to participate in after-hours work and an on-call rotation.

Continue reading “Unix Admin for Long Island New York and NYC” »

Jun 172008
 

The script below I created to sync up Zenoss with the Citrix Netscalers. What this will do essentially is make sure that all of our devices in Zenoss are in the correct Systems in Zenoss. So for instance lets say we have a cluster called Foo-Cluster and we have 100 devices that are in that cluster as per the netscaler. This script will move those 100 devices into that System aka {Cluster} in Zenoss.

The reason this is so important is that when you update the Citrix Netscaler you will also have to update Zenoss, but if you run this script in cron then you will not have to update Zenoss at all. This script was written in Python This script was tested with Zenoss 2.0.2, Also some modifications may have to be made to fit your environment.

Please post any questions to this script here http://linuxdynasty.org/phpBB3/viewtopic.php?f=5&t=3
You can download the script here  … zenoss_netscaler_snmp.py

 

Continue reading “Syncing up Zenoss with the Citrix Netscaler using Python” »

Jun 172008
 

This script was created so that you can query/insert/update a MySQL database based on Project/Site/Hostname/Cluster/Rack and Environment. You can also  run multi threaded commands to the output of Project/Site/Hostname/Cluster/Rack and or Environment .

For instance to run 1 command to 200 boxes took about 5 seconds, man you got to love that. 

To update the CMDB… Usage: [ -u -c 'cluster' -d 'device' -s 'site' -p 'project' -e 'environment']
example.. cmdb-admin -u -d {hostname} -c {cluster} -s {site} -p {project} -r {rack} -e {environment}

To insert a new device in the CMDB… Usage: [-i -d 'device' -I 'ipaddr' -c 'cluster' -s 'site' -p 'project' -r 'rack' -e 'environment']
example.. cmdb-admin -i -d {hostname} -I {ipaddress} -c {cluster} -s {site} -p {project} -r {rack} -e {environment}

Continue reading “Script to manage a custom built CMDB in Python using Threading” »

Jun 172008
 

I would like to thank Zenoss for adding me to there Zenoss Master List. Because of Zenoss I learned the Python programming language and it is now my preferred language of choice. Zenoss to me is the best Open Source monitoring solution out there. I feel they beat HP Openview/Tivoli/ and the others Hands Down. I was able to integrate Zenoss with Citrix Netscalers, Custom built CMDB’s and other products.

 Here is the link to the Zenoss Masters List http://blog.zenoss.com/2008/06/03/zenoss-masters/

Jun 102008
 

In my last post I asked a vote from the users if they would like to see my last script but with added command line features. So here it is…
You can pass these options… {–linux   |  –windesk   | –winserv   | –xml     |   –hostname}

So for example to run this script you will type "perl VMlist.pl –linux –xml" This will list all of your Virtual Machines that are Linux in XML format. or here is the same command with out the –xml option… "perl VMlist.pl –linux"

 
This script assumes you have the VMware
Infrastructure (VI) Perl Toolkit Packages installed and your
$HOME/.visdkrc set correctly. Without the above the script below will
not work!!

 

Continue reading “HowTo List Virtual Machines By OStype and by hostname on VMware ESX” »


Warning: fopen(/home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/lib/standard.txt) [function.fopen]: failed to open stream: No such file or directory in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 104

Warning: fread(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 105

Warning: fclose(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 106
.