Skip to content

jcharaoui/citrix_xenserver_patcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

citrix_xenserver_patcher

Auto Patching tool for Citrix XenServer Boxes

Supports XenServer 6.0+ - designed primarily for 6.2+ where easy patch management via the GUI was removed for non-supported customers. This should allow individuals and the likes to patch their systems with ease.

Currently, this script is used directly on the Hypervisor itself (as root), and hasn't been designed with pools in mind... If there is a particular feature (or bug!) you want sorted, please feel free to raise an Issue here, and i'll look into it (or feel free to fork and commit fixes back!): https://github.com/dalgibbard/citrix_xenserver_patcher/issues

How To Use

  • SSH to your XenServer Host (Use PuTTY if using a Windows PC).
  • Ensure you're logged on as the "root" user.
  • Get the XenServer Patcher Script- plus any exclusion files you need/want (or create your own!):
wget --no-check-certificate -O patcher.py https://raw.github.com/dalgibbard/citrix_xenserver_patcher/master/patcher.py
wget --no-check-certificate -O XS62_exclusions.py https://raw.github.com/dalgibbard/citrix_xenserver_patcher/master/XS62_exclusions.py
chmod +x patcher.py
  • Run the patcher, and follow the prompts :)

IMPORTANT NOTE: BE SURE TO LOAD APPROPRIATE EXCLUDES FILE WHERE NECESSARY! Below example is suitable for XenServer 6.2:

./patcher.py -e ./XS62_exclusions.py

Alternatively, distribute using Puppet, or some other form of shininess. But the above works fine :)

Other arguments:

  • The code supports a few other arguments too:
# ./patcher.py -h
Usage: ./patcher.py [-e /path/to/exclude_file] [-a] [-r] [-l] [-v]

-e /path/to/exclude_file    => Allows user to define a Python List of Patches NOT to install.
-a                          => Enables auto-apply of patches - will NOT reboot host without below option.
-r                          => Enables automatic reboot of Host on completion of patching without prompts.
-l                          => Just list available patches, and Exit. Cannot be used with '-a' or '-r'.
-v                          => Display Version and Exit.

To-do:

  • Enable auto-loading of Exclusion files (from local or web - user defined.)
  • "-q|--quiet" option for no on-screen output. Exit codes will be very important therefore! (And the Documentation of..)
  • Manual run gives list of outstanding patches with options; can pick any number of patches to apply (Might be nice for people on strict patching policies, but not essential atm)
  • Ability to run script from local machine to patch a remote host...
  • Test XenServer Pool patching functionality. [Currently UNTESTED]

Tags: XenServer Citrix Patch Patching Patcher Auto-Patcher Autopatcher Xen Server Python

About

Auto / Manual Patching tool for Citrix XenServer Boxes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%