none
Service Pack for ProLiant RRS feed

  • Question

  • Has anyone managed to install HP Service Pack for ProLiant with SCCM or MDT any version since 2018.06?

    I am using smartupdate /s / softwareonly and getting exit code 1. 

    Don't think this install can create log files. Thank you.

    Monday, January 7, 2019 2:43 PM

All replies

  • You need a wrapper as HPE uses non standard error code values. 

    cscript Install-HPSPP.wsf

    <job id="Install-HPSUM">
    <script language="VBScript" src="..\..\..\scripts\ZTIUtility.vbs"/>
    <script language="VBScript"> 
     
    '//----------------------------------------------------------------------------
    '// Global constant and variable declarations
    '//---------------------------------------------------------------------------- 
     
    Option Explicit 
    Dim iRetVal 
     
    '//----------------------------------------------------------------------------
    '// End declarations
    '//---------------------------------------------------------------------------- 
     
    '//----------------------------------------------------------------------------
    '// Main routine
    '//---------------------------------------------------------------------------- 
     
    On Error Resume Next
    iRetVal = ZTIProcess
    ProcessResults iRetVal
    On Error Goto 0 
     
    '//---------------------------------------------------------------------------
    '//
    '// Function: ZTIProcess()
    '//
    '// Input: None
    '// 
    '// Return: Success - 0
    '// Failure - non-zero
    '//
    '// Purpose: Perform main ZTI processing
    '// 
    '//---------------------------------------------------------------------------
     
    Function ZTIProcess() 
     
        Dim sSetupFile
        Dim sArguments
        Dim sSourceFolder
        Dim sTargetFolder
         
        sSetupFile = "C:\Setup\HPSUM\smartupdate.bat"
        sArguments = "/s /use_location C:\Setup\HPSUM"
         
        oLogging.CreateEntry oUtility.ScriptName & ": Starting installation", LogTypeInfo
     
        If not oFSO.FolderExists("C:\Setup") then
            oLogging.CreateEntry oUtility.ScriptName & ": C:\Setup does not exist, creating it", LogTypeInfo
            oFSO.CreateFolder "C:\Setup"
        End if
     
        sSourceFolder = oUtility.ScriptDir & "\Source"
        sTargetFolder = "C:\Setup\HPSUM"
     
        If oFSO.FolderExists(sTargetFolder) then
            oLogging.CreateEntry oUtility.ScriptName & ": " & sTargetFolder & " already exists, aborting...", LogTypeError
            ZTIProcess = Failure
            Exit Function
        End if
     
        oFSO.CreateFolder sTargetFolder 
            oUtility.VerifyPathExists sTargetFolder
     
        oLogging.CreateEntry "Copying " & sSourceFolder & " folder to the local machine", LogTypeInfo
     
        ' Optional progess logging to the task sequence progress bar
        oLogging.ReportProgress "Copying " & sSourceFolder & " folder to the local machine", 20
     
        oFSO.CopyFolder sSourceFolder, sTargetFolder, true
             
        If not oFSO.FileExists(sSetupFile) then
            oLogging.CreateEntry oUtility.ScriptName & ": " & sSetupFile & " was not found, unable to install", LogTypeError
            ZTIProcess = Failure
            Exit Function
        End if
     
        oLogging.CreateEntry oUtility.ScriptName & ": Arguments is set to " & sArguments, LogTypeInfo        
     
        ' Optional progess logging to the task sequence progress bar
        oLogging.ReportProgress "Installing HP SUM", 60
     
        iRetVal = oUtility.RunWithHeartbeat("""" & sSetupFile & """ " & sArguments)
         
        if (iRetVal = 0) then 
            ZTIProcess = Success
        ElseIf (iRetVal = 1) then 
            ZTIProcess = Success
        ElseIf (iRetVal = 2) then 
            ZTIProcess = Success 
        ElseIf (iRetVal = 3) then 
            ZTIProcess = Success 
        ElseIf (iRetVal = 4) then 
            ZTIProcess = Success 
        Elseif (iRetVal = 5) then 
            ZTIProcess = Success 
        Elseif (iRetVal = 3010) then 
            ZTIProcess = Success 
        Else
            ZTIProcess = Failure
        End If
        oLogging.CreateEntry oUtility.ScriptName & ": Return code from command = " & iRetVal, LogTypeInfo
        oLogging.CreateEntry oUtility.ScriptName & ": Finished installation", LogTypeInfo
     
    End Function
    </script>
    </job>

    Wednesday, March 6, 2019 4:52 PM
  • Anyone has step by step document etc for achieving this ?

    OSLM ENGINEER - SCCM 2007 & 2012

    Monday, August 12, 2019 1:10 PM