SO a clarification request here...
Is this intended to be in the OS provisioning section? I'm not sure this is the right place? <Happy to move the thread as needed>
If you want to just schedule a remote inventory scan, you could get your asset tool to talk to our MBSDK potentially (assuming it can talk to WSDL www-services)? I've written up an article on how to do that here:
... that way your asset tool can essentially ask the LANDesk Core "Hey - please ask 'device X' to perform an inventory scan" (or do whatever / run a script) ... if that's NOT what you're after, could you specify a bit more / better what exactly you're in need of? I'm not 100% clear on that based on the current description.
Hope this helps a bit.
I am trying to run this in the system configuration pass of provision. Essentially, what I am trying to do is to kick off the asset management system's discovery function on the computer at the end of the provisioning process. This is done by hitting a url and putting the IP address of the local machine on the end of the url to tell the asset management system to launch a discovery on that IP address. We need to ensure that all newly provisioned machines get registered in the asset management system and the best way I can see to do this is with a provisioning action as part of the imaging template. We are using the MBSDK to pull inventory information once the machine has been discovered by the asset manager.
The problem I am having is that the url gets passed up until the "&" before the IP address variable so the asset management system has no clue what machine to run the discovery on.
This is what needs to be passed:
What gets passed:
It appears the execute file action ignores everything following the "&". How do I get this action to pass the full parameter?
Right - gotcha.
So you're trying to do "runtime substitution" essentially for inventory attributes, the same as you would do in CUSTJOB / "manage scripts" type jobs?
Well - Provisioning doesn't really do / work like CUSTJOB does in that regard, sorry to say.
However - easily solved IMHO ... just call a little script (Powershell or your poison of choice) and run the browser command from there? Easy enough to pick up the IP address locally on the client (plus - more up to date, in case it matters) and you can just initiate it Core side as - essentially a software distribution task.
Should be an easy enough little change that should work, I hope?
run this in a bat file, hope this helps.
for /f "delims= tokens=2" %%a in ('ping %computername% -n 1 -4 ^| findstr "["') do (set thisip=%%a)
start iexplore.exe %api%^&ip=%thisip%
After googling around a bit on Mr Hoffman's suggestion to script it, I wrote a simple VB script that opens up an url. The script is launched by executing cscript and appending an argument to which I pass the IP address variable. I pass the IP address to the script via the command line parameters and append it to the url definition before launching it.
This method is working for me. Thanks to all for their suggestions.