Giter VIP home page Giter VIP logo

drac-kvm's Introduction

Dell DRAC KVM Launcher

Notice: This repository is no longer actively maintained. There is a more up to date fork at: github.com/rockyluke/drac-kvm

Fed up of logging into the DRAC web interface just to launch a KVM session? This simple Go program should help ease the pain.

$ drac-kvm --help
Usage of drac-kvm
  -h, --host="some.hostname.com": The DRAC host (or IP)
  -j, --javaws="/usr/bin/javaws": The path to javaws binary
  -p, --password=false: Prompt for password (optional, will use 'calvin' if not present)
  -u, --username="": The DRAC username
  -v, --version=-1: iDRAC version (6 or 7) (supermicro ikvm as 1)

# Example using default dell credentials (root/calvin)
$ drac-kvm -h 10.25.1.100
2014/06/26 16:01:11 Detecting iDRAC version...
2014/06/26 16:01:11 Found iDRAC version 7
2014/06/26 16:01:11 Launching DRAC KVM session to 10.25.1.100

# Example using custom credentials
$ drac-kvm -h 10.25.1.100 -u bob -p
Password: **********
2014/06/26 16:01:11 Detecting iRAC version...
2014/06/26 16:01:11 Found iDRAC version 7
2014/06/26 16:01:11 Launching DRAC KVM session to 10.25.1.100

This has been tested on the following Dell servers:

  • 11th Generation (eg: Dell R710 / iDRAC6)

  • 12th Generation (eg: Dell R720 / iDRAC7)

This has also been tested against a Supermicro based system:

  • X9DR7-LN4F motherboard with ATEN based iKVIM (3.19 fimrware)

It requires that you have java installed on your machine (specifically the javaws binary).

Installing (via Go)

If you already have Go configured on your system then you can just run the following to quickly install it:

$ go get github.com/paulmaddox/drac-kvm

Installing (pre built binaries)

If you don't have Go installed already on your system, then included in this repository are some prebuilt binaries:

Configuration file

You can create a configuration file

$ cat ~/.drackvmrc
# Override the hardcoded defaults for username and password.
# Useful if your environment has consistent usernames and
# passwords for the KVMs.
[defaults]
username = foo
password = bar

[192.168.0.42]
username = foo
password = bar

[web-1]
host = 10.33.0.1
username = root
password = password4root

[web-2]
host = 10.33.0.2
username = root

# Use IP, username and password from drackvmrc for this ip
$ drac-kvm -h 192.168.0.42
2014/06/26 16:01:11 Detecting iRAC version...
2014/06/26 16:01:11 Found iDRAC version 7
2014/06/26 16:01:11 Launching DRAC KVM session to 192.168.0.42

# Same for host alias web-1
$ drac-kvm -h web-1
2014/06/26 16:01:11 Detecting iRAC version...
2014/06/26 16:01:11 Found iDRAC version 7
2014/06/26 16:01:11 Launching DRAC KVM session to 10.33.0.1

# Specify -p option in order to do not use defaut password
$ drac-kvm -h web-2 -p
Password: **********
2014/06/26 16:01:11 Detecting iRAC version...
2014/06/26 16:01:11 Found iDRAC version 7
2014/06/26 16:01:11 Launching DRAC KVM session to 10.33.0.2

Credits

@jamesdotcuff's helpful blog post:

http://blog.jcuff.net/2013/10/fun-with-idrac.html

drac-kvm's People

Contributors

glennsb avatar jtriley avatar paulmaddox avatar sejeff avatar solvik 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.