2012-11-14 02:10 AM
You could use OnCommand Unified Manager(OCUM) , it is a Mangeablility product which can help you with this. http://www.netapp.com/us/products/management-software/oncommand/.
It can automatically recognize hosts on your subnet.
Once hosts are added you can use the DataFabric Manager (DFM) APIs to connect to the OCUM and call APIs like host-list-info to get details of all hosts and perform actions on them.
2012-11-26 09:01 PM
Hi Steve -
I don't have example code, but OnCommand System Manager uses SNMP.
You can do an SNMP get with OID 184.108.40.206.220.127.116.11.0. You should get a response like:
NetApp Release RironcityN_110125_2230: Wed Jan 26 00:55:17 PST 2011 or
NetApp Release 8.1.1 Cluster-Mode: Mon Jul 30 16:46:29 PDT 2012
The key is to look for NetApp.
You can also do an SNMP get with OID 18.104.22.168.4.1.722.214.171.124.0 which will also return the above values. Usiing 126.96.36.199.4.1.789 makes the OID NetApp specific.
You will probably want to do it with multiple threads in parallel, because of the SNMP time-out. With multiple threads, you'll discover controllers much faster.
I hope this helps,
- Rick -