Skip to content

Collection of code examples for various NetApp Automation use-cases

License

Notifications You must be signed in to change notification settings

AdrianBronder/ntap-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetApp Automation Demos

Welcome to my collection of automation demos. In this repository you will find various examples on how to automate administrative and operational tasks on NetApp solutions. The main purpose is enabling you writing your own scripts/integartions by providing simple examples in small chunks. The scripts in this repository are not tuned for production use.

Quick Start - ONTAP

If you are a customer, partner or NetApp employee:

  1. Please use the virtual hands-on lab (log in with your NetApp support account):

  2. Log into the Ansible Linux host ("ansible.demo.netapp.com") and clone this repository:

    # git clone https://github.com/AdrianBronder/ntap-automation.git
    
  3. Initialize the environment by running the lab init script:

    # sudo ./ntap-automation/ntaplod_init/ontapapi_sl10599_init.sh
    
  4. Execute scripts from subfolders depending on type of solution, method and task, e.g.: ontap9 --> python --> create SVM

    # ./ntap-automation/ontap9/ansible/21_create_pri_svm.yml
    # ./ntap-automation/ontap9/curl/02_get_svm_details.curl
    # ./ntap-automation/ontap9/python/90_delete_all.py
    

Quick Start - StorageGRID

If you are a customer, partner or NetApp employee:

  1. Please use the virtual hands-on lab (log in with your NetApp support account):

  2. Log into the first Linux machine (Linux1) and make sure "git" utilities are installed on the machine:

    # yum install git -y
    
  3. Clone this repository:

    # git clone https://github.com/AdrianBronder/ntap-automation.git
    
  4. Initialize the environment by running the lab init script (Ansible collections for StorageGRID have to be loaded and installed manually):

    # ./ntap-automation/ntaplod_init/storagegrid_sl10610_init.sh
    
  5. Execute scripts from subfolders depending on type of solution, method and task, e.g.: storagegrid --> ansible --> create tenant

    # ./ntap-automation/storagegrid/ansible/21_create_tenant.yml