Giter Club home page Giter Club logo

reset-hp-ilo's Introduction

iLOreset

Reset the password on a DL360 and similar iLO account and set networking to DHCP

Why

I wrote this up because I get a lot of decommissioned machines that don't come with the iLO password available, or with a hardcoded IP that isn't appropriate for the network it is on- i.e. a production IP when the iLO is now on the CORP network.

This simple script uses the well documented hponcfg tool to set the password of an existing user (preferably an administrator) and then set the iLO network interface into DHCP mode.

How is this possible

This is not a "hack" or an "exploit". HP assumes that if you have root privileges on the operating system, it is appropriate that you should be able to reconfigure the iLO. I don't necessarily disagree.

What will this work on

This was tested on a DL360 G7 and a DL360 G8. It might work on DL380 as well as other generations of DL360. It must be at least an HP ProLiant.

How does it work

There is a device driver that exposes a device file to the Linux OS. This device file, when opened by root, can be issued ioctl() commands to do things like read and write the configuration of the iLO board. It is relatively simple. HP wrote the tool, presumably using their own documentation. There is no need to do anything silly like reverse or study their ioctl command set.

Errors you might encounter

Error about invalid user - make sure you specified an existing user as this script does not create a new user, it only resets the password of an existing one. It will be kind and enumerate the users for you though.

Error about permission - make sure you are root

Error about libraries not found or SELinux enforcing things - this means you somehow unset the LD_LIBRARY_PATH, which I set in the script. Please don't muck with that, or copy the library files to /lib64.

Any other errors are probably all your fault, and if you can't solve them, you shouldn't be using this tool.

Final warning(s)

DO NOT USE THIS ON PRODUCTION SYSTEMS OR SYSTEMS YOU DO NOT OWN AND EXPECT ME TO SAVE YOU !!

RESETTING THE PASSWORD WILL EFFECTIVELY LOCK THE ADMINISTRATOR OUT !!

SETTING DHCP MODE WILL ESSENTIALLY MAKE THE iLO DISAPPEAR TO THE ADMINISTRATOR !!

reset-hp-ilo's People

Contributors

mzpqnxow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.