I'm having a hard time picturing exactly what you want to achieve. It would be helpful to see your current baseline template and examples of both a compliant and non-compliant device.
Whenever you make a commandset a child of another commandset, that child inherits the parent's submode. This is required to go deeper than one submode. For example:
--pvc 0 15
----ip address 10.1.1.1
To get to the pvc submode, you would need a child of a commandset using the interface ATM1/0 submode.
Parent/child relationships are also useful when checking for prerequisites within submodes. For example, if you only want to operate on access ports, you would use a prerequisite with a parent/child. See case 4b in this whitepaper:
The prerequiste "verifHostName" should always be meet by tested switches, in the case were not, a completly different baseline should be used for thoses switches. In case of which failed to meet "verifHostName" prerequisite have to see as excluded because they failed to meet prerequisite requirement. (That is working well, if I try to test INT-01 switch, that switch is exclude because : "Device compliance comparison failed:CM0152 Prerequisite Commands does not exist in device archive.")
in files site1-sw1 and site1-sw2 those 2 switch are in same site physical site, switch site1-sw1 is the 1st in the site it's IP address end by .4 and is successfully tested by the baseline, the switch site1-sw2 is the second switch in the same site it's IP address is ending .5 and is not teste at all by the base line (it should only exclude check-up verification in CheckConfigPort1Switch1 commandSet, but the rest of the baseline should be tested)
in comparaison we have another prerequisite set GigaUpCheck & GigaDownCheck in the same baseline, switch most of your switches are'nt meet both of them, and are'nt exclude fortunately from the compliance test of the rest of the baseline.
The switches site1-sw1 & site1-sw2 should passed prerequisite : "GigaUpCheck" and failed prerequisite "GigaDownCheck".
the switch site1-sw1 pass prerequisite "GigaDownCheck" and failed prerequisite : "GigaUpCheck". thats is working properly but I don't understand if this is working why my CheckConfigPort1Switch1 prerequisite is not working as I hope !
The GigaUpCheck prereq is a negative prereq, and will not work properly due to CSCsv25190. A patch is available from the TAC for that bug.
CheckConfigPort1Switch1 is not a prereq, but uses the 1erSwitch prereq. I don't see any problems with this. The 1erSwitch prereq should match site1-sw1. However, I see you're making these commandlets children of Global. This is not recommended. They should be parentless.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...