Git Product home page Git Product logo

idrac-kvm's Introduction

idrac-kvm.rb

Important Note

Sorry folks - I haven't had much time recently to improve this script, and I think that it's become non-functional (at least the parts that depend on the old slop gem). If someone wants to take this over, feel free. - Jason Gill

Overview

This script makes it easy to access the Dell iDRAC KVM from the command line, without having to open a browser.

Requires the rest-client, net-ssh-gateway, and slop gems. Install with:

sudo gem install rest-client net-ssh-gateway slop

You will also need a working copy of javaws, and it has been reported that the non-Sun/Oracle copy of javaws included with some Linux distros don't work. You may want to test that you can actually get to the KVM viewer manually before using this script.

Note that if you are running idrac-kvm.rb from a Linux machine, this script will automatically attempt to compile the iDRAC Keycode hack from https://github.com/pjr/keycode-idrac. This hack is required to make the arrow keys work.

The script also tries to clean up after itself, even if the Java viewer crashes (which is often). The script will automatically send the logout command to the server and close your session out cleanly so that you do not get locked out of the iDRAC interface. If the logout command is not sent, you may find yourself getting an odd error when trying to connect again - not a very good situation if your server is offline.

Note that this has only been tested against Dell iDRAC6 so far - if you have an older DRAC card that I can use for testing, please let me know (or submit a pull request with a patch)

Usage

Usage: ./idrac-kvm.rb [options]

options:

    --bounce        Bounce server (optional). Use host:port to change default port.
    --login         Your username on bounce server (optional; defaults to your username)
    --server        Remote server IP (required)
    --user          Remote username (optional; defaults to root)
    --password      Remote password (required)
    --help          Print this help message

Examples

To log in via a SSH tunnel to an intermediate server:

./idrac-kvm.rb --bounce firewallserver.example.com --login youruser --server 192.168.0.1 --password calvin

To log in directly to an iDRAC host

./idrac-kvm.rb --server 192.168.0.1 --password calvin

idrac-kvm's People

Contributors

jasongill avatar pjr 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.