I am trying to install the Windows agent on a Windows Server 2016. It is failing on the line below with error message - Exception calling "Downloadfile" wiht "2" argument(s): "Unable to connect tot he remote server"
Foreach($file in $files) { $web.DownloadFile("https://172.22.6.5/static/app/splunk_app_infrastructure/windows_scripts/$file",$path+"\$file")}
Well, after several more attempts at running the script one line at a time and then running the complete script, it seems to have installed.
The Windows client install must not have worked because the SII server has not received any data. Is there an option to manually install the client software? I need something that I can see on the client as to what is happening. Very frustrating and confusing.
Try these:
1. Check if you can ping server with Insights of Infrastructure installed from client.
2. Check if port 9997 on SII server is open.
3. Try "bin/splunk list forward-server" on the client to check any active/inactive forwards. [ If you don't have any admin account created, use user-seed.conf to create one. http://docs.splunk.com/Documentation/Splunk/7.2.0/Security/Secureyouradminaccount]
4. If still have issues, can you provide your inputs.conf on your client. ("$SPLUNK_HOME\etc\apps\SplunkUniversalForwarder\local\inputs.conf")
OK, after several tries, that line ran successfully. Now it is erroring on another line with message - .\install_uf.ps1 : the term '.\install_uf.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program.
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null; if ($?) { .\install_uf.ps1 }