Active IQ Unified Manager Discussions

Setting default Perf Advisor view via CLI?

arndt
3,889 Views

Is there a way to set the default Perf Advisor view for each system via the CLI?  I know I can click on the "set default" button in the PA interface after picking a custom view, but I have over 150 controllers across 3 DFM servers for which I'd like to modify this setting.  Thanks!

Mike

8 REPLIES 8

harish
3,889 Views

I dont think there is a CLI to set default views from CLI.

Regards

Harish

adaikkap
3,889 Views

Hi Mike,

     As harish said there is no cli, but this can be done through the api using the DFM SDK.

Below is the api for doing the same.

<perf-set-default-view>

<object-name-or-id>784</object-name-or-id>

<view-name>Top Aggregates</view-name>

</perf-set-default-view>

Let me know if this helps or if you need more help.

Regards

adai

arndt
3,889 Views

Very nice, thank you!

arndt
3,889 Views

Thanks again for this. One more question...is there a way via the API

to change the default views used for certain objects? For example, can

I change the default view used for all volume objects to a custom view,

without having to iterate through every volume object on the system and

set it on each volume id? Thanks!

Mike

adaikkap
3,889 Views

Hi Mike,

I am not clear on this question.

Can you give an example?

Are you saying you want make the default views as custom views? If so why?

What is that you are trying to achieve.

Regards

adai

arndt
3,889 Views

As an example, the default Volume Summary View does not contain any

counter related to latency. So, I have a custom view for volumes that

contains things like volume throughput, ops, and latency. I'd like this

to come up as the default view when my customer clicks on a volume in

PA. If I can not do this, I just need to train them to select my custom

view for volume data so that they can see all the info they need for a

volume in a single view. Thanks!

adaikkap
3,889 Views

Hi Mike,

As I said earlier, use the zapi to set your custom views as default one.

So doesn’t that solve your use case?

Regards

adai

arndt
3,889 Views

It does, I was just hoping I could modify the default view for all

volume objects rather than having to set it for each specific volume

object via a script that runs on a regular basis. Scripting it is not

hard, so I can go that route, I just wanted to make sure I was not

missing an easier method. Thanks!

Mike

Public