Git Product home page Git Product logo

python-isilon-api's Introduction

python-isilon-api

An unofficial python library to make Isilon API calls. This library is incomplete, not fully tested, and not supported by EMC. I only plan to fill in the features as I need them. Use at your own risk.

This is a library I created in order to make a copy tool with the goal of learning the API. That said, it does work in my environment and may be useful to others working with the API.

####Tested with:

  • OneFS 7.0.2.1
  • Python 2.7.3
  • HTTP Requests 1.2.3
  • Paramiko 1.10.1 (SSH support in order to do file clones)

API Features

  • Automatic Session/Connection management
  • Efficient reuse of HTTP connections
  • Automatic handling of paged directory listing using resume tokens
  • Some basic error handling of sessions

cp.py Features

  • Copies a source directory to a target directory
  • Can utilize file cloning (uses SSH connections)
  • Uses snaps to create a temporary static source
  • Multithreaded
  • Intelligently connects to multiple nodes in the cluster
  • Applies ACLs to target files
  • Can run in verify mode to only compare ACLS

Example: ./cp.py -c -i kcisilon -u root -p a /ifs/data/test /ifs/data/clones/test1

 ./cp.py --help  
 usage: cp.py [-h] -i URL -u USERNAME -p PASSWORD [-t THREADCOUNT] [-c] [-v]  
            src dst  
 
 Create a copy of a directory 
  
 positional arguments:  
   src             source directory, full path starting with /ifs  
   dst             destination directory, full path starting with /ifs  
 
 optional arguments:  
   -h, --help      show this help message and exit  
   -i URL          IP or DNS name of the cluster  
   -u USERNAME     API Username  
   -p PASSWORD     API Password  
   -t THREADCOUNT  Thread Count, default=16  
   -c              Use sparse cloning technology  
   -v              Verify ACLS only, do not copy or clone  

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.