1 Rookie
•
15 Posts
0
1502
February 2nd, 2022 07:00
Powershell command invoke-webrequest doesnt work with idrac8 but works with idrac9
Hi All,
my task is a simple one. To get a web response from all idrac 9 and idrac 8 in our environment via powershell. The below command works with with idrac9 but for some reason it does not work at all with idrac 8. Ive tried using IP and FQDN's. They work from a browser on the same machine but not in powershell. Anyone know where I am going wrong?
$Response = Invoke-WebRequest -Uri "
https://10.10.47.36" -SkipCertificateCheck
Invoke-WebRequest:
Not Found
Access Error: 404 -- Not Found



DELL-Chris H
Moderator
•
9.6K Posts
1
February 3rd, 2022 08:00
Hawker91,
Sorry for the delay. Upon testing it looks like you're trying an invoke-webrequest against just the IP of the iDRAC, where as the iDRAC9 responds and iDRAC8 does not, but you can't really do anything with an invoke-webrequest against the iDRAC IP anyways, so I am not sure the use.
However, adding /redfish/v1 (root api) does look to work for the iDrac8, for example h t t p s: / ip address / redfish / v1
Ignore the spacing, I did that so it doesn't get changed by the link shortner.
Let me know how it goes.
DELL-Chris H
Moderator
•
9.6K Posts
0
February 2nd, 2022 13:00
Hawker91,
Would you do me a favor and clarify the firmware version, are you using the latest?
I am going to need to research and test the issue, please be patient and I will be back as soon as I can.
Thank you.
hawker91
1 Rookie
•
15 Posts
0
February 3rd, 2022 01:00
Chris,
Thanks for your reply. The firmware version of idrac 8 is 2.81.81.81.
Thanks!
DELL-Marco B
Moderator
•
4K Posts
0
February 3rd, 2022 01:00
Hello,
please give me some time to analyze the issue, i will get back to you.
Thanks
Marco
hawker91
1 Rookie
•
15 Posts
0
February 3rd, 2022 08:00
Chris,
Sure API was an option I was looking at and it does give a response with either iDRAC 8 or 9. Bit of background, I just need to check if the URL is responding or not. That is the purpose of this script. Thanks for your help on this. I am still curious why invoke-webrequest does not work with idrac 8 though.