Network and Storage Protocols

How to get FPolicy connection time via C/C++ SDK ?

volkevolke
4,405 Views

Hello everyone,

 

is it possible to get the time elapsed a server is connected to an FPolicy via the C/C++ API?

In the console one can see the information in the "fpolicy" command output under Connect time (here 00:05:57)

 

File screen servers            P/S Connect time (dd:hh:mm)  Reqs Fails

------------------------------------------------------------------------------

172.20.73.50 \\Test-FPolicy  Pri 00:05:57        1567289    0
ServerID: 218    IDL Version: 1 SMB Request Pipe Name: \ntapfprq

    Options enabled: async

 

 

I would like to get this information via the NetApp Managebility SDK.

I didn't find any API-Call which delivers this information.

For me that would belong to the server-info structure (to be retrieved via the API-call fpolicy-server-list-info)

but unfortunately there is no such value.

May be I've just missed the info in the SDK-Docs (SDK Version 5.2.1R1) or is querying for the connection time simply not possible?

 

Thanks in advance.

 

Martin

3 REPLIES 3

ekashpureff
4,405 Views

Martin -

Looking through the API in ZExplore...

API: fpolicy-server-status-get-iter

    Element: desired-attributes

        Element: fpolicy-server-status-info

            Element: connected-since

I hope this response has been helpful to you.

At your service,

Eugene E. Kashpureff, Sr.

Independent NetApp Consultant, K&H Research http://www.linkedin.com/in/eugenekashpureff

Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp

(P.S. I appreciate points for helpful or correct answers.)

volkevolke
4,405 Views

Hello Eugene,

thank you for your prompt answer.

Unfortunately the api call fpolicy-server-status-get-iter

seems to be available only for vfilers. (that we don't have in usage)

When I do the call on our FAS3240 (8.0.5 7-Mode) I'll get 

  errno: 13005   reason: Unable to find API: fpolicy-server-status-get-iter

But thanks a lot for mentioning ZExplore ... I wasn't aware of 🙂

Best Regards,

Martin

ekashpureff
4,405 Views

Martin -

You're very welcome.

Yes, fpolicy-server-status-get-iter is a cluster mode API call.

Glad you got Zexplore out of it.

It's a very powerful tool.

Enjoy !

I hope this response has been helpful to you...

At your service,

Eugene E. Kashpureff, Sr.

Independent NetApp Consultant, K&H Research http://www.linkedin.com/in/eugenekashpureff

Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp

(P.S. I appreciate points for helpful or correct answers.)

Public