Search our Blogs
Showing results for 
Search instead for 
Do you mean 
 

Starting with Redfish PowerShell cmdlets

Server.jpg     

PowerShell is known for being a powerful scripting language and a useful command-line shell. The Redfish API 1.0, provided by DMTF, is the platform used to simplify server manageability.  Providing PowerShell cmdlets for Redfish allows customers the ability to utilize a powerful management tool.  Redfish is an open industry standard specification and utilizes JSON, HTTPS, and OData.  Previously, an amalgam of various industry standards, Redfish is the refined control plane that allows customers to program configuration and maintenance tasks and allows for higher-level automation.

 

RedfishTM API 1.0, henceforth referred to as Redfish, is a RESTful API developed for the current version of iLO firmware, iLO 4 2.30, and for future versions.  Redfish has been adopted by HPE ProLiant Gen9 servers.  Future generations of HPE servers are expected to continue to have Redfish API conformance as well.

    

Redfish API provides the infrastructure to invoke common server management tasks such as viewing status, health, and configuration data.  The resources are always located at the Service Entry point or at the root /redfish/v1.  Redfish can be used for simple, standalone servers or for aggregated, rack-level systems.  Redfish collects server data similar to the Intelligent Provisioning Management Interface (IPMI) tools, provides security via session-based HTTPs, performs common activities such as rebooting the server, allows notifications via Event Log access methods, and allows BMC infrastructure management along with many other tasks. 

 

The easiest way to learn about HPE Redfish cmdlets is by downloading the cmdlets module HPE’s Redfish cmdlets, the user installs the Cmdlets on PowerShell ISE with this command:

 

Install:

 

PS> Install-Module –Name HPERedfishCmdlets

The user should also install HP REST Cmdlets with this cmdlet:

 

PS> Install-Module –Name HPRESTCmdlets

 To connect to a Redfish conformant server, the user will utilize this cmdlet:

 

PS>Connect-HPE Redfish

 

The user will be prompted to provide the address (IP address), the username, and the password for the server.  After providing this information, the user will be allowed to use the server from the user’s PowerShell ISE. 

 

These two modules will allow users to use Redfish 1.0 on their computers and the super set features available on iLO RESTful API such as extended iLO features and  BIOS.  After properly installing Redfish PowerShell cmdlets onto his or her system, the user can enable and disable features, view and edit HPERedfish data, and perform many more actions with cmdlets such as Disable-HPERedfishCertificateAuthentication, Disconnect-HPERedfish, and Remove-HPERedfishData. 

 

For more information about HPE’s implementation of Redfish, please read this whitepaper.  For Use cases, visit our GitHub repository.  The cmdlets can be downloaded from HPE’s PowerShell gallery.  

Tags: powershell
Comments
Dung K Hoang
on ‎07-25-2016 09:50 AM - last edited on ‎07-25-2016 10:33 AM Level 4 veenaghorakavi Level 4

Hi

Thanks for the great information. It seems that here is no link to the whitepaper nor the github for sample examples.

Appreciate your help to provide links

/Dung

 

 

Hey Dung,

 

      I apologize.  I did hyperlink the links to the words, but I did not put the blue color to make it easier to find.  You should now be able to find the links to the repository and the whitepaper.  Thank you for your attention to detail, and do not hesitate to post comments if you need any more help.  

 

          Sincerely,

               Veena G.

                HPE Employee

Simpat
| ‎10-17-2016 04:39 AM

I really want to have Redfish available for hpssacli as well. Please HPE...

Social Media
† The opinions expressed above are the personal opinions of the authors, not of HPE. By using this site, you accept the Terms of Use and Rules of Participation