FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


hardware:netapp:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
hardware:netapp:index.html [2018/01/31 00:54]
kurihara created
hardware:netapp:index.html [2018/02/20 01:41]
kurihara
Line 1: Line 1:
-[[:index.html#OS Management|Top#OS Management]] +[[:index.html#Hardware|Top#Hardware]] 
-====== NetApp (netapp.py)=====+====== NetApp Configuration with Fabric (netapp.py)=====
  
 $FHHOME/fabfile/netapp.py $FHHOME/fabfile/netapp.py
Line 7: Line 7:
 \\ \\
  
-===== Operation =====+===== Fabric Operation =====
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 14: Line 14:
 </sxh> </sxh>
  
-==== Ref. Remote Shell Commands ====+==== Fabric Remote Shell Commands ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-$ echo xx.xx.xx.xx | fab auth.netapppro -False -- xxxxxx+$ echo xx.xx.xx.xx | fab auth.netapppro --set shell=False --no-pty  -- system health status show
 </sxh> </sxh>
  
Line 29: Line 29:
 from fabric.contrib import files from fabric.contrib import files
  
 +env.eagerly_disconnect = False
 FHHOME=os.environ["FHHOME"] FHHOME=os.environ["FHHOME"]
  
-#================================================================================ +
-# test +
-#================================================================================+
 #------------------------------------------------------------------ #------------------------------------------------------------------
-# netapp.test+# netapp.cluster_show
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task
-def test(): +def cluster_show(): 
-    run("rows 0" , shell=False)+    """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)     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)
 +
 +#------------------------------------------------------------------
 +# HA
 +#------------------------------------------------------------------
 +@task
 +def storage_failover_show():
 +    run("storage failover show" , shell=False)
 +
 +@task
 +def cluster_ha_show():
 +    run("cluster ha show" , shell=False)
  
  
Line 49: Line 101:
 \\ \\
 <WRAP box 90%> <WRAP box 90%>
-[[:index.html#OS Management|Top#OS Management]]+[[:index.html#Hardware|Top#Hardware]]
 <catlist ..: -noAddPageButton -noHead -sortAscending> <catlist ..: -noAddPageButton -noHead -sortAscending>
 </WRAP> </WRAP>
Line 55: Line 107:
 \\ \\
 \\ \\
-[[:index.html#OS Management|Top#OS Management]]+[[:index.html#Hardware|Top#Hardware]]


hardware/netapp/index.html.txt · Last modified: 2018/02/22 23:49 by kurihara