6 Replies Latest reply on Aug 17, 2016 12:58 AM by HermiM

# understand the software distribution return code

Hi

After I readed the "LANDesk Error Codes-1.pdf" I understood that a HResult return code (used by LANDesk for return code) = Severity + reserved bits + Facility + return code and 32 bis are used to present that

What I wasn't able to find in the document mentioned above is how many bits is used for severity? how many bits are reserved ? how many bits used for Facility ? how many bits for return code?

for example I have a return code (from LANDesk Console) 9999. But when I check sdclient.log file I found another HEX code 8DB5270F. The HEX number is coded on 32 bit but how can I find each component (Severity, Facility and return code)??

Please I need help I never be able to understand that :-(

• ###### 1. Re: understand the software distribution return code

Hi HermiM, You can convert the hex code via Calc (programmer view) to get this information. The hex QWord value (8DB5270F) converts to a decimal DWord value of -1917507825 and a Word value of 9999.

• ###### 2. Re: understand the software distribution return code

Hi,

wcoffey thanks for your quick answer. yes I know that we can convert to WORD and DWORD to get the values mentioned above. My problem is to extract significant information from that code : for example is the code generated by windows installer or by the software to be installed or by the operationg system (This is the role of Facility part in the return code). Once the part that caused the problem is identified It will be very helpful if I get the exact return code.

that what was writed in the pdf document from LANDesk community web site (please see the pdf attachement first part in this link) :

https://community.landesk.com/docs/DOC-27397

• ###### 3. Re: understand the software distribution return code

HermiM In reviewing the hex value you can break down the code into binary as follows

0x8DB5270F:  1000 1101 1011 0101 0010 0111 0000 1111

8 =  Severity Binary = 1000   (any number 8 or higher will equate to a failure hence the fact of the leading binary digit being a 1)

DB5 = (1101 = D) (1011 = B) (0101 = 5)    (This is the facility Facility Code)

270F = (0010 = 2) (0111 = 7) (0000 = 0) (1111 = F)   (This is the Return code)

Once you break the hex down to binary you can review the HRESULT as specified by Microsoft. [MS-ERREF]: HRESULT .  I hope this helps.

• ###### 4. Re: understand the software distribution return code

wcoffey :  Thank you for your answer :-) I found a tool in LANDesk Tools --> support/Troubleshooting --> error translator I have just to put the signed integer usually found on sdclient<taskID>.log and It displays the facility code and return code. The problem that Facility supposed to give us information about the part of the system which cause the problem (OS, msiexec, self-contained installer, etc) but when I search the facility code in internet I can't find any thing. So it is not a really useful information.

• ###### 5. Re: understand the software distribution return code

HermiM  Those tools can be helpful but aren't supported by Landesk. The meaning of the Landesk facility codes are not publicly available. I will discuss this with internal resources and see if that will be changed.

• ###### 6. Re: understand the software distribution return code

wcoffey : Hope you communicate us these informations. It is really helpful that we can find out which component is the root cause using the facility code.

Thanks