4.If you are hosting the Intelligent Provisioning software on your mirror, update the URLs in the Intelligent Provisioning configuration files to address your web server:

a.Create or modify the file ipupdate-1.00/hp_manifest/config.xml and add rules to rewrite the URLs to reference your web server.

<?xml version=”1.0” encoding=”UTF-8”?>

<hp_manifest schema_version=”1.0.0.0”><index> <config>

<rewrite_url pattern=”file://\.” replace=”http://myserver/ipupdate-1.00

/>

</config>

</index>

</hp_manifest>

In the previous example, the Intelligent Provisioning software replaces each URL that starts with file:// with a URL on your web server. For example, a request for file://./ gaiusw.img.qz is converted to http://myserver/ipupdate-1.00/ gaius.img.gz.

b.Update ipupdate-1.00/hp_manifest/index.xml to reference config.xml if it is not already listed.

<?xml version=”1.0” encoding=”UTF-8”?> <hp_manifest schema_version=”1.0.0.0”>

<index>

<include src=”meta.xml” type=”meta” lang=”en” /> <include src=”meta-ja.xml” type=”meta” lang=”ja” /> <include src=”os.xml” type=”operating_systems” /> <include src=”type.xml” type=”type” />

<include src=”system.xml” type=”systems” /> <include src=”device.xml” type=”devices” /> <include src=”category.xml” type=”categories” />

<include src=”config.xml” type=”config” /> </index>

</hp_manifest>

5.Create an index.xml file to redirect FTP or HTTP requests from the URL entered in the Intelligent Provisioning user interface to the locations of the update files.

For example, to use the URL http://mywebserver/update-src/hp/proliant in the Intelligent Provisioning user interface, create the following index.xml file and place it in the update-src/hp/proliant directory relative to your web server's root directory.

<?xml version=”1.0” encoding=”UTF-8”?> <hp_manifest schema_version=”1.0.0.0”>

<index>

<include src=”http://myserver/spp-version1” type=”redirect”

/>

<include src=”http://myserver/ipupdate-1.00” type=”redirect”

/>

</index> </hp_manifest>

Mirroring different SPPs to different servers

You can add regular expressions to the index.xml file so that the web server serves different SPPs to different servers based on SMBIOS runtime attributes. If the regular expression matches the SMBIOS information, the file is included; otherwise it is ignored.

Creating an Intelligent Provisioning update mirror

75

Page 75
Image 75
HP Scripting Toolkit for Windows and Linux manual Mirroring different SPPs to different servers