ibrahim.khalil
1 Copper

How to executes the command without prompting for confirmation yes/no in XtremIO?

How to executes the command without prompting for confirmation yes/no in XtremIO?

Example:

xmcli (admin)> remove-snapshot-set ss-id=1

Deleting snapshot set [1] will also remove its corresponding snapshots. Are you sure? (Yes/No): yes

Removed Snapshot Set SnapshotSet.1494742847073 [1]

I want to execute this command without prompting confirmation yes/no.@

Tags (1)
Reply
4 Replies
Highlighted
mabela
2 Bronze

Re: How to executes the command without prompting for confirmation yes/no in XtremIO?

Hi,

Can you evaluate the use of the XtremIO RESTful API? REST is better suited for scripting, and we guarantee backwards compatibility between versions, making sure scripts continue to work as we make modifications and enhancements to the REST API. The REST API does not require you to pass a yes/no.

Reply
Highlighted
ibrahim.khalil
1 Copper

Re: How to executes the command without prompting for confirmation yes/no in XtremIO?

Hi Mabela,

Thanks for your reply.

How to install or integrate REST in Linux OS for XtremIO? Please suggest.

mabela

Reply
Highlighted
Avi3
3 Zinc

Re: How to executes the command without prompting for confirmation yes/no in XtremIO?

There is nothing that needs to be installed on your end to use XtremIO RestAPI interface. It is served directly from the XMS - just like how you use CLI commands.

The RestAPI guide provides examples of how to use RestAPI using different clients.

Reply
Highlighted
mabela
2 Bronze

Re: How to executes the command without prompting for confirmation yes/no in XtremIO?

You can, for example, write your script in Python to call the REST API from your linux OS. As Avi mentioned above, from an XtremIO perspective, there is nothing you need to install as the REST server is part of the XMS. So just point your REST calls to the XMS server and you are good.

Reply