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 Next revision Both sides next revision | ||
hardware:netapp:index.html [2018/02/01 00:33] kurihara |
hardware:netapp:index.html [2018/02/20 01:41] 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 ==== | + | ==== Fabric |
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ echo xx.xx.xx.xx | fab auth.netapppro -s False -- xxxxxx | + | $ echo xx.xx.xx.xx | fab auth.netapppro --set shell=False --no-pty |
</ | </ | ||
Line 29: | Line 29: | ||
from fabric.contrib import files | from fabric.contrib import files | ||
+ | env.eagerly_disconnect = False | ||
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("cluster show" , shell=False) | ||
+ | |||
+ | |||
+ | # | ||
+ | # Check System Health | ||
+ | # | ||
+ | @task | ||
+ | def system_health_status_show(): | ||
+ | run(" | ||
+ | |||
+ | @task | ||
+ | def system_health_subsystem_show(): | ||
run(" | run(" | ||
+ | |||
+ | @task | ||
+ | def system_health_config_show(): | ||
+ | run(" | ||
+ | |||
+ | |||
+ | @task | ||
+ | def storage_shelf_show_connectivity(): | ||
+ | """ | ||
+ | run(" | ||
+ | |||
+ | @task | ||
+ | def storage_disk_show(): | ||
+ | run(" | ||
+ | |||
+ | @task | ||
+ | def system_cluster_switch_show(): | ||
+ | """ | ||
+ | run(" | ||
+ | |||
+ | # | ||
+ | # Check ALERT | ||
+ | # | ||
+ | @task | ||
+ | def system_health_alert_show(): | ||
+ | run(" | ||
+ | |||
+ | @task | ||
+ | def system_health_alert_show_instance(): | ||
+ | run(" | ||
+ | |||
+ | # | ||
+ | # HA | ||
+ | # | ||
+ | @task | ||
+ | def storage_failover_show(): | ||
+ | run(" | ||
+ | |||
+ | @task | ||
+ | def cluster_ha_show(): | ||
+ | run(" | ||
Line 55: | Line 107: | ||
\\ | \\ | ||
\\ | \\ | ||
- | [[: | + | [[: |
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.