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/12 01:50] kurihara |
hardware:netapp:index.html [2018/02/22 23:49] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
- | ====== NetApp (netapp.py)===== | + | ====== NetApp |
$FHHOME/ | $FHHOME/ | ||
Line 7: | Line 7: | ||
\\ | \\ | ||
- | ===== Operation ===== | + | ===== Fabric |
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 14: | Line 14: | ||
</ | </ | ||
- | ==== Ref. Remote Shell Commands ==== | + | \\ |
+ | ==== How to Check to Use Fabric in NetApp ==== | ||
+ | <sxh bash toolbar: | ||
+ | $ ssh user01@xx.xx.xx.xx cluster show | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | /* | ||
+ | ==== Fabric | ||
<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 32: | Line 43: | ||
FHHOME=os.environ[" | FHHOME=os.environ[" | ||
- | # | + | |
- | # test | + | |
- | # | + | |
# | # | ||
- | # netapp.test | + | # netapp.cluster_show |
# | # | ||
@task | @task | ||
- | def test(): | + | def cluster_show(): |
- | run("rows 0" , shell=False) | + | """ |
+ | run(" | ||
+ | |||
+ | |||
+ | # | ||
+ | # Check System Health | ||
+ | # | ||
+ | @task | ||
+ | def check_system_health(): | ||
+ | run("system health status show" , shell=False) | ||
run(" | run(" | ||
+ | run(" | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | |||
+ | # | ||
+ | # Check ALERT | ||
+ | # | ||
+ | @task | ||
+ | def check_alert(): | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | |||
+ | # | ||
+ | # Check HA | ||
+ | # | ||
+ | @task | ||
+ | def check_ha(): | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | |||
+ | # | ||
+ | # Storage | ||
+ | # | ||
+ | # | ||
+ | # Disk | ||
+ | # | ||
+ | @task | ||
+ | def check_disk(): | ||
+ | run(" | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | @task | ||
+ | def disk_show_aggregate(aggr): | ||
+ | """ | ||
+ | run(" | ||
+ | |||
+ | # | ||
+ | # LUN | ||
+ | # | ||
+ | @task | ||
+ | def check_lun(): | ||
+ | run(" | ||
+ | |||
+ | # | ||
+ | # NFS | ||
+ | # | ||
+ | @task | ||
+ | def check_nfs(): | ||
+ | run(" | ||
+ | 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.