Active IQ Unified Manager Discussions

Finding NetApp Servers on a Subnet

swindham
3,889 Views

Is there a way to do broadcasts on a network to get the network addresses of any netapp servers on a subnet?  If so, is there any Java or C++ code that illustrates the process?

Thanks,

Steve Windham

3 REPLIES 3

aashray
3,889 Views

Hi Steve,

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.

Regards

Aashray

rle
NetApp Alumni
3,889 Views

Hi Steve -

I don't have example code, but OnCommand System Manager uses SNMP.

You can do an SNMP get with OID 1.3.6.1.2.1.1.1.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 1.3.6.1.4.1.789.1.1.2.0 which will also return the above values.  Usiing 1.3.6.1.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 -

swindham
3,889 Views

Thanks, Rick.  That was the information I was looking for.

Steve Windham

Public