Issue
When performing an automated restore using an images.ini lookup file driver-add on images are sometimes not restored to the machine.
Solution
|
There may be several reasons why the driver add-on image is not successfully restored to a machine and the first thing to do is identify the problem.
To determine what is happening follow the steps listed below;
- Enable debug logging and the check the Zim.log file (See TID 2006018 for details)
- Find the
-[File:Ini,Get,"/zimbin/images.ini","%dmi_system_vendor%","%dmi_system_product%",hardware_image]
NOTE: The DMI values may be different in your implementation
- Check the next line to ensure that the DMI information has been found on the machine, i.e.
File:Ini,Get,"/zimbin/images.ini","Hewlett-Packard","HP d330 DT(DC580AV)",hardware_image
If the DMI details are not populated you will need to use an alternative DMI string. (See TID 2007012 for details)
- Assuming all is well with the DMI lookup, check the next two lines to ensure that the information has been found in the images.ini file correctly;
[IN] szFile [/zimbin/images.ini], szSectionIn [Hewlett-Packard], szKeyIn [HP d330 DT(DC580AV)], pLineIndex [0] [OUT] szKey [HP d330 DT(DC580AV)], szValOut [drivers-hp-hp-d330-dt(dc580av), desktop], pLineIndex [10]
Here the correct details have been passed in and the details "drivers-hp-hp-d330-dt(dc580av),desktop" have been returned.
- Scroll down to the image restore section and find the line that restores the drivers add-on image i.e
-[File:Run,"img rp $PROXYADDR //$PROXYADDR/%images_path%/%drivers_image%",verbose] +[File:Run,"img rp $PROXYADDR //$PROXYADDR/zenworks:/Images/WINXP/drivers-hp-hp-d330-dt(dc580av)",verbose]
- The next line
nCode = 2
displays the return code from ZENworks img. Anything other than "1" is generally an error.
- Exit to the bash prompt and attempt to restore the image manually by typing the "img rp" command exactly as found in the log.
- Resolve any errors that are listed.
Common Problems
Brackets
In the example given img returns the error "bash: syntax error near unexpected token '('" is returned. In this case edit the Images.ini file and remove the brackets from the driver file name and rename the add-on image to match
File name too long
If a file not found error, or not apparent error is returned, check the length of the filename (including path) that you are attempting to restore. Try renaming the driver add-on image, or shortening the path to the images.