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

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:netapp:index.html [2018/02/20 01:41]
kurihara
hardware:netapp:index.html [2018/02/22 23:49] (current)
kurihara
Line 14: Line 14:
 </sxh> </sxh>
  
 +\\
 +==== How to Check to Use Fabric in NetApp ====
 +<sxh bash toolbar:false gutter:false>
 +$ ssh user01@xx.xx.xx.xx cluster show
 +</sxh>
 +
 +
 +
 +/*
 ==== Fabric 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 --set shell=False --no-pty  -- system health status show $ echo xx.xx.xx.xx | fab auth.netapppro --set shell=False --no-pty  -- system health status show
 </sxh> </sxh>
 +*/
 +
  
 \\ \\
Line 25: Line 36:
  
 <sxh python toolbar:false gutter:false> <sxh python toolbar:false gutter:false>
-import sys+import sys, os
 from fabric.api import * from fabric.api import *
 from fabric.contrib import files from fabric.contrib import files
Line 38: Line 49:
 @task @task
 def cluster_show(): def cluster_show():
-    """cluster show # check node"""+    """cluster show # check node status"""
     run("cluster show" , shell=False)     run("cluster show" , shell=False)
  
Line 46: Line 57:
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task
-def system_health_status_show():+def check_system_health():
     run("system health status show" , shell=False)     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)
 +    run("system health config show" , shell=False)
 +    run("storage shelf show -connectivity" , shell=False)
 +    run("system cluster-switch show" , shell=False)
  
 +
 +#------------------------------------------------------------------
 +# Check ALERT
 +#------------------------------------------------------------------
 @task @task
-def system_health_config_show(): +def check_alert(): 
-    run("system health config show" , shell=False)+    run("system health alert show" , shell=False) 
 +    run("system health alert show -instance" , shell=False)
  
  
 +#------------------------------------------------------------------
 +# Check HA
 +#------------------------------------------------------------------
 @task @task
-def storage_shelf_show_connectivity(): +def check_ha(): 
-    """storage shelf show -connectivity""+    run("storage failover show" , shell=False) 
-    run("storage shelf show -connectivity" , shell=False)+    run("cluster ha show" , shell=False)
  
 +
 +#==============================================================================
 +# Storage
 +#==============================================================================
 +#------------------------------------------------------------------
 +# Disk
 +#------------------------------------------------------------------
 @task @task
-def storage_disk_show():+def check_disk(): 
 +    run("storage aggregate show" , shell=False)
     run("storage disk show" , shell=False)     run("storage disk show" , shell=False)
 +    run("volume show" , shell=False)
  
 @task @task
-def system_cluster_switch_show(): +def disk_show_aggregate(aggr): 
-    """system cluster-switch show""" +    """disk_show_aggregate:aggr1  # disk show -aggregate aggr1""" 
-    run("system cluster-switch show" , shell=False)+    run("disk show -aggregate %s% aggr , shell=False)
  
 #------------------------------------------------------------------ #------------------------------------------------------------------
-Check ALERT+LUN
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task
-def system_health_alert_show(): +def check_lun(): 
-    run("system health alert show" , shell=False)+    run("lun show" , shell=False)
  
 +#------------------------------------------------------------------
 +# NFS
 +#------------------------------------------------------------------
 @task @task
-def system_health_alert_show_instance(): +def check_nfs(): 
-    run("system health alert show -instance" , shell=False)+    run("vserver export-policy rule show" , shell=False) 
 +    run("volume show -fields policy" , shell=False)
  
 #------------------------------------------------------------------ #------------------------------------------------------------------
-HA+CIFS
 #------------------------------------------------------------------ #------------------------------------------------------------------
 @task @task
-def storage_failover_show(): +def check_cifs(): 
-    run("storage failover show" , shell=False)+    run("vserver cifs show" , shell=False) 
 +    run("vserver cifs share show" , shell=False)
  
 +
 +#==============================================================================
 +# Network
 +#==============================================================================
 +#------------------------------------------------------------------
 +# SVM(Server Virtual Machine)
 +#------------------------------------------------------------------
 @task @task
-def cluster_ha_show(): +def vserver_show(): 
-    run("cluster ha show" , shell=False)+    run("vserver show" , shell=False) 
 + 
 +#------------------------------------------------------------------ 
 +# Network 
 +#------------------------------------------------------------------ 
 +@task 
 +def check_network(): 
 +    run("network port ifgrp show" , shell=False) 
 +    run("network port vlan show" , shell=False) 
 +    run("network interface failover-groups show" , shell=False) 
 +    run("network routing-groups route show" , shell=False) 
 + 
 +#------------------------------------------------------------------ 
 +# LIF(Logical Interface) 
 +#------------------------------------------------------------------
  
  


hardware/netapp/index.html.1519058514.txt.gz · Last modified: 2018/02/20 01:41 by kurihara