I have an 8.8 environment where I configured the ldscnhlp.ini file to be included with the agent distribution. I had the INI kick off a vb script, which was located on the core server, then the vbscript would gather a bunch of junk like drac, pending reboot, query a SQL db for server owners etc. and dump that information into a DAT file that is passed back to the inventory server.
A shortcoming of this approach is that our DMZ devices didn't have access to pull that vbscript due to a one way trust across domains, and the inventory service being kicked off by the System account. I'm currently working on standing up a preferred server in the DMZ, but I need a way to tell the ini file to look to it.
I could simply list off all the prefered servers, but that limits the ability to modify my prefered servers without distributing a new INI file to each managed node.
My other option is to put the file on the prefered server in the DMZ so that I could utilize the one way trust and allow access to all devices... but I'd really like to know if the following is an option as it seems like a better practice.
Is there a variable I can use to retrieve the prefered server in the ldscnhlp.ini instead of having to hard code it? In the example below I'd like to replace 'SERVERNAME' with %PreferredServer% or execute something to pull the preferred server that the node should be using.
ldscnhlp.ini |
---|
[EXECUTE WIN16] [EXECUTE WIN32] [EXECUTE WIN64] [DATA FILES] |