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?
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
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 theparameters that I need.
Is there any way I can clean only the specify keys?
<fixed> clear qos_disk_total_size = yes</fixed>
<fixed> overwrite qos_disk_total_size = no</fixed>
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.
<fixed default> only applies to newly discovered disks. Changing that with a package only entails including the following in a cfx file
<fixed_default> overwriteqos_disk_total_size = no</fixed_default>
changing individual disks is harder because you have to know the name of the disk ahead of time.
qos_disk_total_size = no
repeat the section
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.
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.