Active IQ Unified Manager Discussions

How to connect to OCUM6.X using web services?


Hi All

Does anyone know if OnCommand Unified Manager 6.X for Clustered DataONTAP supports WSDL? Previously in DFM 4/5.X you could connect to DFM via web services\SOAP. What i'm looking for is a document like the one below that actually includes example code of how to connect to OCUM6.X from a remote system using web services. I need to this because there is no dfm command line in OCUM6 anymore so i was hoping to write some powershell functions to query it remotely. See document below on web services for DFM 4/5.X

I checked the "OnCommand Unified Manager 6.0 API Developer's Guide" in the link below and web services\WSDL is not even mentioned...nor is there any example code

Does anyone have example code of how to connect to OCUM6.X using web services? Is it possible? If not whats the best way to query the OCUM6.X database from a remote windows server?

Thanks in advance! Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.


Hi Matt,

     The OCUM 6.0 provides a user called database user, using which one can access the OCUM database views exposed by it.

One has to create this user by loging to OCUM. This is the same user that is used by WFA to pull cache from OCUM server for all filtering and resource selection.

This works over port 3306- SQL over SSL using JDBC/ODBC.

Also for OCUM 6.0 there is web services API as of this release.




Hi Adai,

Thanks for the reply, could you point me to any documentation that has an example of how to connect to OCUM6 via JDBC/ODBC to perform SQL queries from a remote Windows Server? I've also been advised that OCUM6.X does not support web services (WSDL\SOAP) nor is it on the product roadmap? Could you please share any documentation\information on this? Please let me know if this is changed in OCUM6.1?

For everyone else out there who is experiencing pain due to the "dfm command" interface being depreciated in OCUM6.X...

here is a very basic example in C# of how to list volumes using the "volume-iter" API. Working on developing PowerShell CmdLet's for OCUM6.X


using System;
using System.Text;
using System.Collections.Generic;
using NetApp.Manage;
using System.Management.Automation;

namespace NetApp.OnCommand.Unified.Manager
    [System.Management.Automation.Cmdlet(System.Management.Automation.VerbsCommon.Get, "NaOcVol")]
    public class GetNaOcVol : System.Management.Automation.PSCmdlet
        [System.Management.Automation.Parameter(Position = 0, Mandatory = true)]
        public string hostname;
        [System.Management.Automation.Parameter(Position = 1, Mandatory = true)]
        public string username;
        [System.Management.Automation.Parameter(Position = 2, Mandatory = true)]
        public string password;

        protected override void ProcessRecord()
                NaServer ocum6 = new NaServer(this.hostname, 1, 0);
                ocum6.ServerType = NaServer.SERVER_TYPE.DFM;
                ocum6.TransportType = NaServer.TRANSPORT_TYPE.HTTPS;
                ocum6.Port = 443;
                ocum6.Style = NaServer.AUTH_STYLE.LOGIN_PASSWORD;
                ocum6.SetAdminUser(this.username, this.password);

                NaElement api = new NaElement("volume-iter");
                NaElement xo = ocum6.InvokeElem(api);

            catch (NaAuthException e)
                Console.Error.WriteLine("Authorization Failed: " + e.Message);

            catch (NaApiFailedException e)
                Console.Error.WriteLine("API Failed: " + e.Message);

            catch (Exception e)


Hope that helps someone

Cheers Matt

Example Output:

PS C:\> $hostname = "<%fqdn%>"
PS C:\> Import-Module C:\ocum\ocum6.dll
PS C:\> Get-Module

ModuleType Name                      ExportedCommands
---------- ----                      ----------------
Binary     ocum6                     Get-NaOcVol

PS C:\> Get-NaOcVol -hostname $hostname -username "admin" -password "<%password%>"
<results status='passed'>

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.


Hi All,

I've written some example PowerShell CmdLet's and posted them on this link:

Hope that helps.

Cheers Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.


Thanks for sharing this, very helpful!