<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi folks. I'm working on reconfiguring my hosts.cfg file structures. Using a lot of includes to try and streamline and organize things.</div>
<div><br>
</div>
<div>I ran into a question about how the sorting works when using the include directives.</div>
<div><br>
</div>
<div>For example, I now have the main hosts.cfg file set up to show systems by OS – UNIX/MAC and WINDOWS</div>
<div>Under there is PROD/Dev.</div>
<div>Under there I use includes like hosts-windows-prod.cfg, hosts-windows-dev.cfg, etc.</div>
<div>These hosts-windows-prod.cfg etc files may include other files that I have setup by an application.</div>
<div>For example, the application named APP1, has certain servers.  It also has DEV & PROD servers.</div>
<div>So I built a hosts-windows-app1-prod.cfg file, hosts-windows-app1-dev.cfg file.</div>
<div>The file hosts-windows-app1-prod.cfg would be included in the hosts-windows-prod.cfg file, etc.</div>
<div><br>
</div>
<div>So, how do I use the group-sorted directive to get the entire set of hosts in order if there are three different includes in the subpage or subparent groups ?</div>
<div><br>
</div>
<div>More explanation below…</div>
<div><br>
</div>
<div>Server1 – is in app1 in hosts-windows-app1-prod.cfg</div>
<div>Winserver1 – is in app2 in hosts-windows-app2-prod.cfg</div>
<div><br>
</div>
<div>When I use the include hosts-windows-app1-prod and include hosts-windows-app2-prod directive, with a group-sorted comand above the include statements, I'm not getting Server1 before Winserver1.</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Don K</div>
<div><br>
</div>
</body>
</html>