HPSUM Action Script?

(imported topic written by renehasp)

Does any one have any experience with HPSUM? We are trying to reun a firmware update with HPSUM v7.1 (released Sep 9th 2014) and I am getting mixed results using.

// Run setup process

delete __createfile

delete run.bat

// Use .bat to set working directory to packages root, for setup command.

createfile until end

@ECHO OFF

cd “{parameter “baseFolder”}”

rem // See comments at the beginning of this action for an explanation of the comment markers.

set DATESTAMP=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%

set DATEANDTIME=%DATESTAMP% %time%

echo %DATEANDTIME% >> “{parameter “logFolder”}/{parameter “logFile”}”

echo Action ID: {id of active action} >> “{parameter “logFolder”}/{parameter “logFile”}”

rem //**Begin Command Marker

//echo Command: “hpsum.bat” /use_latest /allow_non_bundle_components /use_location “C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__Download” /silent >> “{parameter “logFolder”}/{parameter “logFile”}”

//hpsum.bat /use_latest /allow_non_bundle_components /use_location “C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__Download” /silent >> “{parameter “logFolder”}/{parameter “logFile”}” 2>&1

hpsum.bat /use_latest /logdir C:\sysadmin\logs /silent /reboot_always

end

move __createfile run.bat

// You will not be able to stop or take action on an applicable BigFix Client until your installer completes.

// So ensure no user input is required.

// If your package absolutely must interact with the user, replace ‘override wait’ with ‘override run’ and ‘wait’ with ‘run’.

if{name of operating system as lowercase starts with “win”}

override wait

hidden=true

completion=job

wait run.bat

else

override wait

completion=job

wait run.bat

endif

Sometimes the result is just hangs on Running for ever…

I added the reboot always… and now it reboots… However the components after it sometimes run and sometimes fail… So its very inconsistent…

(
If I have a compnent issue a reboot on its own (not from bigfix (restart 60) but the component level on its own. ) how do I have the next component wait to run after the reboot is completed?
) This would help me out too…

Any ideas appriciated…

(imported comment written by jgstew)

It is not a good idea to reboot in the middle of an action with items to be run after, or to restart in the middle of a baseline. It is best to delay all reboots until the end and then have a single reboot as a post action step. You can have a component wait for the reboot by using relevance that would prevent it from running when there is a pending reboot, or if the previous component has not been taken care of if it is required.

In my experience, I don’t have issues with delaying all reboots until the end and then rebooting once. In cases where there is a prereq required for a future component, it should have relevance to that effect so that it does not try to run unless it would do so successfully.