FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

hardware:cisco:index.html



This is an old revision of the document!


Top#Hardware

Cisco (cisco.py)

$FHHOME/fabfile/cisco.py


Operation

$ fab  -l |grep -F cisco
$ echo xx.xx.xx.xx | fab  auth.pro  cisco.xxxx

Ref. Remote Shell Commands

$ echo xx.xx.xx.xx | fab auth.ciscopro -s False -- xxxxxx


netapp.py

$FHHOME/fabfile/wincheck.py

import sys, os
from fabric.api import *
from fabric.contrib import files

FHHOME=os.environ["FHHOME"]

#================================================================================
# common
#================================================================================
#------------------------------------------------------------------
# cisco.enable
#------------------------------------------------------------------
@task(alias="en")
def enable():
    try:
        run("enable", shell=False)
    except Exception as e:
        print e

#------------------------------------------------------------------
#cisco.termleng0 
#------------------------------------------------------------------
@task
@runs_once
def termlen0():
    """ terminal length 0 """
    run("terminal length 0", shell=False)









Top#Hardware



hardware/cisco/index.html.1517760500.txt.gz ยท Last modified: 2018/02/05 01:08 by kurihara