openxenmanager icon indicating copy to clipboard operation
openxenmanager copied to clipboard

Alert user about available updates

Open TwoWheelDev opened this issue 11 years ago • 0 comments

The following steps (described in terms of the java API, but you can choose whichever API binding you prefer) should enable an application to notify the user that relevent updates are available.

Source: http://xenserver.org/partners/developing-products-for-xenserver/20-dev-hints/91-xs-hotfix-howto.html

To alert a user of all the hotfixes available for their specific version of XenServer, follow these steps:

  1. Download the XML document from http://updates.xensource.com/XenServer/updates.xml to get the information about the XenServer Versions, details of all the patches available and also to get the list of patches available per XenServer version.
  2. Fetch the information about the XenServer version of the host by calling the Xenserver java SDK API(Host.getAllRecords) under Host class.
  3. Fetch the information about the already applied patches by calling the XenServer java SDK API(PoolPatch.getAllRecords) under PoolPatch class. 4 .Map the XenServer version of the host to the versions listed in the XML document and fetch the corresponding list of available patches.
  4. Compare this list of available patches with the list of already applied patches.
  5. Prepare a list of patches that are not yet applied.
  6. Map these patches with the contents in the XML document to get more detailed information related to the patches like name-description, timestamp, after-apply-guidance etc.

TwoWheelDev avatar Oct 16 '14 13:10 TwoWheelDev