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:netapp:index.html



This is an old revision of the document!


Top#Hardware

NetApp Configuration with Fabric (netapp.py)

Fabric Operation

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

Fabric Remote Shell Commands

$ echo xx.xx.xx.xx | fab auth.netapppro --set shell=False --no-pty  -- system health status show


netapp.py

$FHHOME/fabfile/wincheck.py

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

env.eagerly_disconnect = False
FHHOME=os.environ["FHHOME"]


#------------------------------------------------------------------
# netapp.cluster_show
#------------------------------------------------------------------
@task
def cluster_show():
    """cluster show # check node"""
    run("cluster show" , shell=False)


#------------------------------------------------------------------
# Check System Health
#------------------------------------------------------------------
@task
def system_health_status_show():
    run("system health status show" , shell=False)

@task
def system_health_subsystem_show():
    run("system health subsystem show" , shell=False)

@task
def system_health_config_show():
    run("system health config show" , shell=False)


@task
def storage_shelf_show_connectivity():
    """storage shelf show -connectivity"""
    run("storage shelf show -connectivity" , shell=False)

@task
def storage_disk_show():
    run("storage disk show" , shell=False)

@task
def system_cluster_switch_show():
    """system cluster-switch show"""
    run("system cluster-switch show" , shell=False)

#------------------------------------------------------------------
# Check ALERT
#------------------------------------------------------------------
@task
def system_health_alert_show():
    run("system health alert show" , shell=False)

@task
def system_health_alert_show_instance():
    run("system health alert show -instance" , shell=False)








Top#Hardware



hardware/netapp/index.html.1519058116.txt.gz ยท Last modified: 2018/02/20 01:35 by kurihara