DX Unified Infrastructure Management

  • 1.  Package to disable QoS to disk?

    Posted Jan 30, 2018 08:39 AM

    Good Morning,

     

    I need to create a package to disable some disk QoS of probe cdm, I'm using the "fixed_default" section but it is not working, as you can see in the images below;

     

     

    Does anyone know how I can change cdm.cfx so I can change the keys for each disk?

    Thank you.



  • 2.  Re: Package to disable QoS to disk?

    Broadcom Employee
    Posted Jan 30, 2018 08:57 AM

    The update package can not remove that from the existing disks.

    you would need to change the defaults and then clear the disks section and let them rediscover with the new settings.

     

    Hope this helps



  • 3.  Re: Package to disable QoS to disk?

    Posted Jan 30, 2018 10:13 AM

    Hello Howard,

     

    The problem is i can't change the alarms and thresholds, since many thefts that we have already been customized, so I'm looking for a way that only changes the
    parameters that I need.


    Is there any way I can clean only the specify keys?

     

    Ex:

    <fixed> clear
    qos_disk_total_size = yes
    </fixed>

     

    or this

     

    <fixed> overwrite
    qos_disk_total_size = no
    </fixed>

     

     



  • 4.  Re: Package to disable QoS to disk?

    Broadcom Employee
    Posted Jan 30, 2018 10:16 AM

    Not with an archive package.

    I know some people have done this with scripting. But I do not have a sample of this.

    Only other option is to update them manually.



  • 5.  Re: Package to disable QoS to disk?
    Best Answer

    Posted Jan 31, 2018 12:11 AM

    <fixed default> only applies to newly discovered disks. Changing that with a package only entails including the following in a cfx file

     

    <disk> overwrite

    <fixed_default> overwrite
    qos_disk_total_size = no
    </fixed_default> 

    </disk> 

     

    changing individual disks is harder because you have to know the name of the disk ahead of time.

     

    <disk> overwrite

    <alarm> overwrite

    <fixed> overwrite

    <#> edit

    qos_disk_total_size = no

    </#>

    </fixed>

    </alarm>

    </disk>

     

    repeat the section

    <#> edit

    qos_disk_total_size = no

    </#>

    for all known disks (this is the ugly part). Since you are collecting QOS, you could generate this section with a sql query out of the s_qos_data table.

     

    The "edit" operation will change the key if there but not add it if it is not.

     

    -Garin



  • 6.  Re: Package to disable QoS to disk?

    Posted Jan 31, 2018 02:19 PM

    Thanks Garin,

     

    I performed the test as you said, and it worked perfectly, it only replaces the parameters I needed.

     

    I executed query "select DISTINCT target from s_qos_data where qos like 'QOS_DISK_%' and probe = 'cdm' " and retrieved the disks, then i write cdm.cfx.

     


    Thanks a lot for the help.