FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
hardware:netapp:index.html [2018/02/20 01:35] kurihara |
hardware:netapp:index.html [2018/02/22 23:49] (current) kurihara |
||
---|---|---|---|
Line 14: | Line 14: | ||
</ | </ | ||
+ | \\ | ||
+ | ==== How to Check to Use Fabric in NetApp ==== | ||
+ | <sxh bash toolbar: | ||
+ | $ ssh user01@xx.xx.xx.xx cluster show | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | /* | ||
==== Fabric Remote Shell Commands ==== | ==== Fabric Remote Shell Commands ==== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
$ echo xx.xx.xx.xx | fab auth.netapppro --set shell=False --no-pty | $ echo xx.xx.xx.xx | fab auth.netapppro --set shell=False --no-pty | ||
</ | </ | ||
+ | */ | ||
+ | |||
\\ | \\ | ||
Line 25: | Line 36: | ||
<sxh python toolbar: | <sxh python toolbar: | ||
- | 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(): | ||
- | """ | + | """ |
run(" | run(" | ||
Line 46: | Line 57: | ||
# | # | ||
@task | @task | ||
- | def system_health_status_show(): | + | def check_system_health(): |
run(" | run(" | ||
- | |||
- | @task | ||
- | def system_health_subsystem_show(): | ||
run(" | run(" | ||
+ | run(" | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | # | ||
+ | # Check ALERT | ||
+ | # | ||
@task | @task | ||
- | def system_health_config_show(): | + | def check_alert(): |
- | run(" | + | run(" |
+ | run(" | ||
+ | # | ||
+ | # Check HA | ||
+ | # | ||
@task | @task | ||
- | def storage_shelf_show_connectivity(): | + | def check_ha(): |
- | | + | |
- | 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(" | ||
run(" | run(" | ||
+ | run(" | ||
@task | @task | ||
- | def system_cluster_switch_show(): | + | def disk_show_aggregate(aggr): |
- | """ | + | """ |
- | run("system cluster-switch | + | run("disk show -aggregate %s" |
# | # | ||
- | # 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(" | ||
+ | # | ||
+ | # CIFS | ||
+ | # | ||
+ | @task | ||
+ | def check_cifs(): | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | |||
+ | # | ||
+ | # Network | ||
+ | # | ||
+ | # | ||
+ | # SVM(Server Virtual Machine) | ||
+ | # | ||
+ | @task | ||
+ | def vserver_show(): | ||
+ | run(" | ||
+ | |||
+ | # | ||
+ | # Network | ||
+ | # | ||
+ | @task | ||
+ | def check_network(): | ||
+ | run(" | ||
+ | run(" | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | # | ||
+ | # LIF(Logical Interface) | ||
+ | # | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.