ONTAP Discussions

API for Aggregate snap reserve?

leroy
4,715 Views

Are there OnTap API calls for managing aggregate snap reserve, snap schedule and snapshots? All the methods that I see documented are for volumes. Is this a gap, or am I looking in the wrong place?

10 REPLIES 10

aborzenkov
4,685 Views

Yes, it is confusing. You use target-type to distinguish between volume or aggregate in snap-list, but this parameter is not described for any other API call.

chris_algar
4,685 Views

I can see how that would work for snapshot-list-info, but the documentation does not include an equivalent parameter for other snapshot commands.

So how do we get and set aggregate snap reserve via the API?

Is this am ommision in the coverage of the API?

rle
NetApp Alumni
4,685 Views

Unfortunately, there is no setting or getting aggregate snapshot reserve with an API.  You need to use the CLI or the system-cli API.

Regards,

   - Rick -

chris_algar
4,685 Views

I don't see any documentation for system-cli, though a quick search of this forum provided some examples.

This raises a couple of questions though:

1. what is the official view on coding to use the system-cli API method? will this be retained in future versions? Is this call used by any of NetApp's own manangement tools?

2. is there a plan to fill the gaps in the API coverage? Managing the properties of aggregates is hardly a new requirement, so is this an indication that there is not a commitment for the API to be fully functional, or are the gaps being plugged?

We've been told for years that the answer to avoid the pain of screen scraping cli commands, where the return output format is not garanteed to be consistet between versions, is to move to the API. It seems to me that system-cli via the API does not acheive this pain reduction.

Chris

kvishal
4,685 Views

Hi Chris,

     system-cli is a unsupported API. It has been retained till now. I know, quote a few people using it, but all said and done its unsupported.

Not sure about plan for filling the gaps. You could file a RFE for the same.

Regards

Vishal

sens
4,685 Views

Just an update: An RFE is filed for this.

chris_algar
4,686 Views

Do you mean that an RFE has been filed to fill the gaps in coverage of the API, or just for aggregate management?

Is there a plan to address the coverage gaps in the API?

sens
4,194 Views

Yeah, the RFE is filed to fill the gaps in coverage of the API.

However, I am not sure how soon (or late) this will be addressed.

smoot
4,685 Views

aggr-set-option lets you enable or disable snap autodelete, but that's the only thing I could find that fits "management".

-- Pete

sens
4,685 Views

Looks like this is a duplicate thread of  http://communities.netapp.com/thread/13439

I have already responded to the original thread.

Also, as already mentioned, an RFE bug is filed for addressing the gap.

Public