Netapp 7Mode Configuration generator based on a XML configuration file.
Project description
Netapp 7M configuration generator
Tags: Netapp, Configuration, XML
Version history: 1.5.5
License: GPLv3
License URL: http://www.gnu.org/licenses/gpl-3.0.html
License
Copyright (C) 2012, 2013 Shah Mohsin WAHED
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
PyPI status:
Description
This script will create configuration file (“.config” and “.rc”) for Netapp NAS filer using Data Ontap in 7M (seven mode) based on a XML configuration file. Making it simpler to create standard and quick configs.
Project link : http://shah.nas.scripting.cloudcorner.net Donate link PayPal
Requirements / Pre-requisites
This script require:
Python 2.X or 3.X (using netapp.config.maker.py3) run on a Linux server or workstation, haven’t test on windows
few python libs (lxml, argparse)
of course a Netapp appliance running DataOntap in 7M (work also with Netapp simulator or Netapp Edge) to test or apply your configuration.
usage
from a linux server just run:
#shell> netapp.config.maker.py -c configfile.xml
This will generate two file <hostname>.config <hostname>.rc with hostname extract from the xml file Use netapp.config.maker.py3 for python3 :)
Quick help
usage: netapp.config.maker.py [-h] -c configfile [-v]
- optional arguments:
-h, –help show this help message and exit
-c configfile, –configfile configfile XML config file
-v, –vfiler vfiler config generator only
XML Configuration file
see the ConfigExample file in ./docs for more information.
.config layout
The .config file have the following layout:
Ifgroup Configuration Vlan Configuration General Options Ipspaces Configuration Interfaces Configuration Global Routes Global options (dns, autosupport, snmp) vFilers Configuration
the layout is defined in netapp.config.maker.Config.tmpl file you can rearrange it to modify the layout
.rc layout
The .rc file have the following layout:
Basic Configuration Ifgroup Configuration Vlan Configuration Interfaces Configuration Global Routes Global options (dns, autosupport, snmp) vFilers Configuration
the layout is defined in netapp.config.maker.RC.tmpl file you can rearrange it to modify the layout
Support
Having trouble with this scripts, think about an evolution ? Contact me!
Donation:
Like the script? you can support my work with a donation using PayPal
Changelog
v1.5.5 - 2013-09-21
First step in converting script to python3. Basic conversion thanks to 2to3. Will be optimize for python3.
v1.5.4 - 2013-09-18
Adding generating options like : dns, smnp, autosupport, ntp. check Xml example file for more detail
Adding variable in python script to define aggregate for vfiler root volume
v1.5.3 - 2013-09-17
Fixing interfaces names, now vm1-e1b2c instead vm1-e1be2c.
Fixing vfiler0 interfaces configurations
Adding <lb></lb> tag in interfaces configuration to add loadbalancing mode rr/mac/port
v1.5.0 - 2013-05-31
Fixing path probleme of template file
v1.1.0 - 2013-05-31
Moving from static .config and .rc layout to cheetah template to allow modification of the layout and comment add in .rc and .config output
v1.0.0 - 2013-04-02
Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.