HPWarranty icon indicating copy to clipboard operation
HPWarranty copied to clipboard

HPEntWarranty not returning active Carepack Entitlement

Open plantronic opened this issue 9 years ago • 10 comments

Get-HPEntWarrantyEntitlement only returns hardware entitlement, not carepack entitlement. This command only returns a single value for entitlement start/end, whereas Get-HPIncWarrantyEntitlement returns an array in case of additional carepack entitlement.

Web-warranty-check on HP's website for enterprise devices returns correct entitlement info for all devices I've tried it on so far.

plantronic avatar Nov 10 '16 13:11 plantronic

Confirmed with one of my servers. Dates returned are for base warranty, not including additional carepacks

jbruettcva avatar Nov 10 '16 14:11 jbruettcva

I'm going to dig into this this weekend

dotps1 avatar Nov 11 '16 13:11 dotps1

Shot you a copy of the XML output from the process with a care pack listed. If you look at the contract section of the xml, there is a property HeaderEndDate that coincides with the end date of the care pack. Would need to test against a server with no care pack and one with multiple care packs, neither of which exist in my environment that I'm aware of.

jbruettcva avatar Nov 11 '16 13:11 jbruettcva

any news on this as of yet? I had a quick look around around the code. The only significant difference I can see is the way the "$output" hastable is generated between "Inc" and "Ent" requests. Although I'm not really familiar with the responses from HP for Inc and Ent requests that might be responsible for different handling.

plantronic avatar Feb 01 '17 08:02 plantronic

I am still getting the problem with this. I have started looking at changing the results to get the carepack, but I would like to know if you had any success dotps1 as its your baby after all.

MartinHenriksson avatar Apr 19 '17 11:04 MartinHenriksson

MartinHenrikson - I have fixed this error, if you want to try it.. I don't know if this is against the rules or not, so sorry if it is.. Let me know if you want it.. Rath

rathmel avatar Apr 27 '17 17:04 rathmel

You should open a Pull Request @rathmel and ill merge it.

dotps1 avatar Apr 27 '17 18:04 dotps1

Walking out the door for the day, but I will totally do this for you tomorrow! Have a great evening! Rath

From: Thomas Malkewitz [mailto:[email protected]] Sent: Thursday, April 27, 2017 2:13 PM To: dotps1/HPWarranty [email protected] Cc: Adkins II, Glen [email protected]; Mention [email protected] Subject: Re: [dotps1/HPWarranty] HPEntWarranty not returning active Carepack Entitlement (#33)

You should open a Pull Request @rathmelhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_rathmel&d=DwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=Jqio3Q6PN71dl_AHOvjcfQ_5KvIAZAs06dtW1DKlDEg&m=M8z_N5sfdN6E0D8zjiSWrrefm9yx5bexBZdi7J8OkNI&s=yk7NWV7YlKnJvtPht6ew1B5-DR01fdJpvZi9F892upA&e= and ill merge it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dotps1_HPWarranty_issues_33-23issuecomment-2D297795442&d=DwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=Jqio3Q6PN71dl_AHOvjcfQ_5KvIAZAs06dtW1DKlDEg&m=M8z_N5sfdN6E0D8zjiSWrrefm9yx5bexBZdi7J8OkNI&s=BtoVTqRqiDJrHZIp5hl7H9Z2Elh7GmakrXpy0m77vOs&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Aaz0v1EitkOQCr-5Fnx6Qnf-5F-2Dj6BMz1TRSks5r0NqzgaJpZM4KupNR&d=DwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=Jqio3Q6PN71dl_AHOvjcfQ_5KvIAZAs06dtW1DKlDEg&m=M8z_N5sfdN6E0D8zjiSWrrefm9yx5bexBZdi7J8OkNI&s=n6dWF-lPZMg78BeI9mV7egnbwiv8NzZy35TPKi3p0iM&e=.

rathmel avatar Apr 27 '17 20:04 rathmel

I THINK I have opened the pull request correctly. I have never done it before. HA! All you would need to do is drop my edited file into your PS module directory, and it should work. Let me know. Rath

From: Thomas Malkewitz [mailto:[email protected]] Sent: Thursday, April 27, 2017 2:13 PM To: dotps1/HPWarranty [email protected] Cc: Adkins II, Glen [email protected]; Mention [email protected] Subject: Re: [dotps1/HPWarranty] HPEntWarranty not returning active Carepack Entitlement (#33)

You should open a Pull Request @rathmelhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_rathmel&d=DwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=Jqio3Q6PN71dl_AHOvjcfQ_5KvIAZAs06dtW1DKlDEg&m=M8z_N5sfdN6E0D8zjiSWrrefm9yx5bexBZdi7J8OkNI&s=yk7NWV7YlKnJvtPht6ew1B5-DR01fdJpvZi9F892upA&e= and ill merge it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dotps1_HPWarranty_issues_33-23issuecomment-2D297795442&d=DwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=Jqio3Q6PN71dl_AHOvjcfQ_5KvIAZAs06dtW1DKlDEg&m=M8z_N5sfdN6E0D8zjiSWrrefm9yx5bexBZdi7J8OkNI&s=BtoVTqRqiDJrHZIp5hl7H9Z2Elh7GmakrXpy0m77vOs&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Aaz0v1EitkOQCr-5Fnx6Qnf-5F-2Dj6BMz1TRSks5r0NqzgaJpZM4KupNR&d=DwMCaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=Jqio3Q6PN71dl_AHOvjcfQ_5KvIAZAs06dtW1DKlDEg&m=M8z_N5sfdN6E0D8zjiSWrrefm9yx5bexBZdi7J8OkNI&s=n6dWF-lPZMg78BeI9mV7egnbwiv8NzZy35TPKi3p0iM&e=.

rathmel avatar Apr 28 '17 12:04 rathmel

@rathmel Fantastic work! I had not been able to do this. I'm still a work in progress as far as Powershell goes sometimes. This works as a charm on my side.

MartinHenriksson avatar May 03 '17 14:05 MartinHenriksson