Posts filed under 'Projects/Scripts'

VmWare Patches Screen Scrapper in Perl

Add comment January 4th, 2008

I have written a perl script that screen scrapes the vmware patches pages and generates an output that can be used in esx upgrade scripts

To view the sample, visit following pages (re-generated every 4 hours):

VmWare ESX 3.0.0 - http://www.serverchief.com/esx-updater/feed/vi3_patches_300.txt
VmWare ESX 3.0.1 - http://www.serverchief.com/esx-updater/feed/vi3_patches_301.txt
VmWare ESX 3.0.2 - http://www.serverchief.com/esx-updater/feed/vi3_patches_302.txt
The perl source code is available Script is realeased under GPL License Agreement, please give author a credit, if used in your environment. :)

Enjoy …

ESX 3.x Updater Standard (ESX Host Edition - UPDATED)

2 comments July 26th, 2007

Project Purpose:
CURRENT STATUS: VmWare site changes detected, adjusting the script to work with latest changes, please check back later

ESX Updater 3.x project has been created to simplify the patch management of ESX 3.x hosts. It connects to vmware site, downloads and installs various update packages you choose. It is intelligent enough to autodetect ESX version you are running, checks for internet connectivity and root permissions. Moreover, script lets user choose which packages can be installed (critical, general, security or all).

Written in bash, script should run on ESX 3.x host. Please note, if ESX host is in active state - serving VMs, prior to update, all VMs must be either VMontion(ed) to another ESX host or shutdown. Since ESX 3.x comes stripped of all essential utilities, this script comes bundled with GNU wget utility from RHEL3 that will work on VmWare ESX 3.x.

Watch video demo on ESX-Updater in action

Script Type: VmWare ESX 3.x Edition -> this script must be run on VmWare ESX 3.x host. If your ESX host does not have internet connectivty, please use this script instead.

Requirements:
The ESX host must have internet connectivity.
Script must be ran as a root user in order to auto-install packages.

Supported OS:
ESX 3.0.0 and ESX 3.0.1

How it Works:

Watch this video, just click on the image below….

ESX 3.x Updater  - ESX Host Edition

It is highly recommended to reboot upon completion of updates.

———————————————————————————-
Latest Updates and Bug Fixes

Release v.05:
Added support for bundle patches
Added ability to check for missing packages
Added ability to install only required packages
Script can now be used to update ESX 3.x servers that were previously patched, it will only attempt to install new or missing patches.

Release v.04
Added ESX autodetect feature

Release v.03
Enhanced logic for detecting proper patches on VmWare site
Added wget utility that is supported by ESX 3.x for ease of updates
———————————————————————————


Download ESX
3.x Updater - ESX host Edition
(This script will download and generate patch installation package)

  File Name Type Date Size Version
  esx-updater-host-edition.tgz Compressed Script 08/02/2007 105 kb v.05

Questions, issues, comments or suggestions, post them here. Make sure to include what Linux OS you are running and if you have general GNU utilities installed.

Happy VmWaring!

IP Auditor and Management System

1 comment July 20th, 2007

Project Purpose:

This project is dedicated to ease the usage and tracking of IP space within your network. It has been specifically written for sys and network admins. Comes with nice web GUI, gives you a general overview of a specific VLAN with many features…

Features include:
Detailed IP report on specific VLAN
IP to DNS Hostname Lookups
PING health check for host up/down
NMAP report with all open ports on IP

Screenshot below…
Ability to add comments/reservartions on specific IP
History of IP Changes within your VLAN (90% done)
Ability to sort IP’s by different criterias, DEAD/ALIVE/DNS/No DNS/Etc..
Multi-threaded Engine for faster scans..

The scanning engine is Bash shell script.
The web gui is PHP/MySQL, written using CakePHP framework

Screenshots:

Screenshot of IP Tracker - General View

Screenshot of IP Tracker
Screenshot of IP Tracker

Screenshot of IP Trackerip-tracker5.jpgScreenshot of IP Tracker

Alpha release is available for download as a VM Image.

More info coming soon…

ESX 3.x Updater Web Edition (Development Stage)

2 comments July 19th, 2007

Project purpose:
To simplify ESX Updates even further, I’m writting all in one web application with following features:

Automatically goes out to VmWare site and looks for new patches
If new patches found, downloads it to a local repository
Analyzes your currently configured ESX hosts against latest available patches
Gives suggestions as to which packages to apply
Ability to manage many ESX hosts via web interface
Full SSH support & ability to send remote commands and interact with the shell via web

In other words, all features VmWare VI3 does not have. :-)

Willing to join or be a tester? Drop me a line…

ESX 3.x Updater Standard (Repository Server)

14 comments July 12th, 2007

Project Purpose:

CURRENT STATUS: VmWare site changes detected, adjusting the script to work with latest changes, please check back later!

ESX Updater 3.x project has been created to simplify the patch management of ESX 3.x hosts. It connects to vmware site and downloads various update packages you choose (critical, general, security or all). It creates tar.gz file with install script. Written in bash, it must be run on non-esx, preferably Linux host, to create tar.gz installer. Script must be ran on Linux with general GNU utilities (sed, awk, wc, wget, tar, gz and perl) host connected to the internet.

Script Type: Repository Server Edition -> this script must be run on Linux non ESX host.If you ESX host has internet connectivity, I highly recommend using this script.
Supported OS:
ESX 3.0.0 and ESX 3.0.1

Click here to download ESX Updater 3.x ….

How it Works:

0) Choose what ESX version you have, either ESX 3.0.0 or ESX 3.0.1.

Step 0, ESX Updater, Choosing ESX version

1) Upon execution, script connects to VmWare site and generates the list of patches to download.

Step 1 of the ESX Update script

 

2) Upon parsing the VmWare patches page, it gives 4 options for user to choose from.
Options are: All Patches, Security Patches, Critical Patches and General Patches.

Step 2 of ESX Update, choose which packages to download.

3) Once the selection is made, script connects to VmWare and downloads required packages.

Step 3, ESX Updater, Downloading patches

4) Upon completion, you will see a script like this… You need to copy the file over to your ESX host.

Step 4, ESX Updater, Generation completed

5) Once copied, cd into vm-patches and run ./install.sh

It is highly recommended to reboot upon completion of updates.


Download ESX Updater 3.x Script

(This script will download and generate patch installation package)

  File Name Type Date Size Version
  esx-updater.sh Bash Script 07/18/2007 6.5 kb v.02
  esx-updater.tgz Compressed Script 07/18/2007 2.1 kb v.02

Download ESX Updater 3.x Virtual Machine (CentOS 5)
(This is a preset V.M. with for VmWare Server)

  File Name Type Date Size Version
  esx-updater-vm.srv.tgz VmWare Server v1.0.1 07/18/2007 512MB v.02
           

Questions, issues, comments or suggestions, post them here. Make sure to include what Linux OS you are running and if you have general GNU utilities installed.

Happy VmWaring!!