Quantcast
Channel: Ivanti User Community : Popular Discussions - Inventory
Viewing all articles
Browse latest Browse all 13197

Make the ldscnhlp.ini file point to preferred server

$
0
0

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]
LAUNCH1=cscript "\\SERVERNAME\ldlogon\CustomData\Scripts\ExtraInfo\ExtraInfo.vbs"
TIMEOUT1=600

[EXECUTE WIN64]
LAUNCH1=cscript "\\SERVERNAME\ldlogon\CustomData\Scripts\ExtraInfo\ExtraInfo.vbs"
TIMEOUT1=600

[DATA FILES]
DATANOPREPEND1=C:\Program Files\LANDesk\LDClient\ExtraInfo.DAT
DATANOPREPEND2=C:\Program Files (x86)\LANDesk\LDClient\ExtraInfo.DAT
DATA3=C:\Program Files\LANDesk\LDClient\LDCUSTOM.DAT
DATA4=C:\Program Files (x86)\LANDesk\LDClient\LDCUSTOM.DAT


Viewing all articles
Browse latest Browse all 13197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>