Search
Rajeevalochana Kallur

HPE iLOrest as a PyPI package

May 15, 2024

Good news!!! The HPE iLOrest tool has been repackaged into both source and binary distributions and is now available on PyPI. This means it can be easily utilized on any operating system that has Python 3 installed. The intention is for the PyPI package to replace the existing builds for macOS, Debian and Ubuntu distributions of HPE iLOrest.

Here are the steps to install HPE iLOrest from PyPI:

  1. Ensure that Python 3 is installed on your operating system.

  2. Check if pip3 is installed. If not, on Ubuntu or Debian, you can run the following command:

    $ sudo apt install python3-pip

    On Linux, you can use:

    $ wget  https://bootstrap.pypa.io/get-pip.py
  3. In most cases, pip3 will already be available on macOS and Microsoft Windows.

  4. Once pip3 is installed, and before installing HPE iLOrest, make sure the DMTF Redfish Library is not installed, as mentioned in the HPE iLOrest user guide and then install the HPE iLOrest PyPi package using the following commands:

       $ pip3 uninstall redfish
       $ pip3 install ilorest
  5. With the PyPi package installation, ilorest_chif.dll/.so will also be installed in site-packages.

  6. If you installed the HPE iLOrest PyPI package on an iLO based server you can verify the local (in-band) login by running:

    $ iLOrest -v login
  7. You can check the location of iLOrest using the command: shell $ find / -name iLOrest


Notes:

  • PyPI package can also be used for ARM-based operating systems if Python 3 is present.

  • Additionally, the HPE iLOrest PyPI package can be utilized on RHEL, SLES and Microsoft Windows platforms as long as Python 3 is installed (preferably version > 3.8).

  • DMTF's Redfish library can not coexist with HPE Python ilorest library which is a dependency for the HPE iLOrest PyPI package. So, make sure to remove any Redfish library you may have installed prior to installing the HPE Python iLOrest library using the command shown below:

     $ pip3 uninstall redfish
  • In an air-gapped environment, the HPE iLOrest PyPI package can be downloaded from the PyPI repository and installed using the following command. Dependencies may need to be installed separately.

     $ pip3 install <path to the downloaded PyPI package>
  • To perform a clean removal of the HPE iLOrest PyPI package, don't forget to uninstall the associated Python library as mentioned in the following command:

     $ pip3 uninstall --yes python-ilorest-library ilorest

    Summary:

By following the instructions I've outlined above, you can simplify the installation of and start using the HPE iLOrest tool on PyPI rather than using rpm or msi. It's really quick and easy to get started. For more information on HPE iLO, along with some tips and tricks in working with it, make sure you check out the HPE Developer blog regularly.

Related

Chris Snell

Storage Provisioning using Ansible with HPE 3PAR Storage

May 30, 2018
François Donzé

Build your own iLO Redfish simulator

Jun 11, 2021
Nathan Lin

Accessing iLO Redfish APIs and HPE OneView APIs on Ansible AWX

Feb 9, 2021
HPE Global Sales Engineering (GSE) team

Automate boot from SAN target configurations using Redfish

Jun 1, 2023
François Donzé

Benefits of the Platform Level Data Model for Firmware Update Standard

Jun 7, 2022
François Donzé

CHIF driver not found

Jun 22, 2021
Gokul Sreeramaiah

Configuring threads for Optimal performance in HPE PowerShell Cmdlets

Dec 3, 2018
HPE DEV staff

COVID-19 limits accessibility – Free offer for HPE iLO Advanced opens it up

Apr 23, 2020

HPE Developer Newsletter

Stay in the loop.

Sign up for the HPE Developer Newsletter or visit the Newsletter Archive to see past content.

By clicking on “Subscribe Now”, I agree to HPE sending me personalized email communication about HPE and select HPE-Partner products, services, offers and events. I understand that my email address will be used in accordance with HPE Privacy Statement. You may unsubscribe from receiving HPE and HPE-Partner news and offers at any time by clicking on the Unsubscribe button at the bottom of the newsletter.

For more information on how HPE manages, uses, and protects your personal data please refer to HPE Privacy Statement.