Module: UCSAPI

Defined in:
lib/UCSAPI.rb

Overview

UCSAPI

What on earth do I do with this?

The main UCSAPI module that you must require into your Ruby script.

If you include the module in your classes, you can drop the UCSAPI

prefix when using it.

Here’s a sample invocation that you could put at the top of your script require ‘UCSAPI’ include UCSAPI myucs = UCSM.new( :url => ‘myucs’, :inName => ‘viewyonder’, :inPassword => ‘secret’)

Unofficial, Unsupported simple interface to the UCSAPI

This is a continual work in progress by stevie_chambers @nospam@ viewyonder.com to produce a simple interface to the powerful UCS XMLAPI.

Things you can do with this UCSAPI code:

  • Get “raw” access to the XMLAPI methods like configResolveDn

  • Get friendly decorators to the raw methods, like “chassis” returning all chassis

Future honorouable intentions:

  • Add more methods to get more objects, set configs, listen for events

  • Allow simple get/export of data in both raw and friendly formats (think interface stats and RRDtoo)

  • Add more backends that UCS, such as Nexus1000v and VMware.

  • Put a Rails front end on it so we have a GUI

Author and Copyright © 2010 Steve Chambers viewyonder.com

License

This work is licensed under the Creative Commons Attribution-ShareAlike license See it at: creativecommons.org/licenses/by-sa/3.0/

You are free to share and remix as long as you

  • Attribute Steve Chambers and Cisco as the original authors

  • Share Alike by distributing derivative works under the same license terms.

  • Notice should be shown in reuse/distribution by linking to the license web page above

These conditions can be waived if you get permission from Steve Chambers and Cisco.

Defined Under Namespace

Classes: UCSM

Constant Summary collapse

VERSION =
'0.0.7'