Apr 07, 2020

I tried installing the fling but I get the error below - install-vrnivsphereplugin-v1.0.0.ps1 is not digitally signed

PowerCLI C:\Users\xxxxx\Downloads\install-vrnivsphereplugin-v1.0.0.ps1> .\install-vrnivsphereplugin-v1.0.0.ps1 -Operation Install
.\install-vrnivsphereplugin-v1.0.0.ps1 : File C:\Users\qcoelho\Downloads\install-vrnivsphereplugin-v1.0.0.ps1\install-vrnivsphereplugin-v1.0.0.ps1 cannot be
loaded. The file C:\Users\qcoelho\Downloads\install-vrnivsphereplugin-v1.0.0.ps1\install-vrnivsphereplugin-v1.0.0.ps1 is not digitally signed. You cannot run
this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at

http://go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\install-vrnivsphereplugin-v1.0.0.ps1 -Operation Install
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PowerCLI C:\Users\xxx\Downloads\install-vrnivsphereplugin-v1.0.0.ps1>

Anyone else facing this?

Apr 07, 2020

Hi,

We haven't signed the script digitally, in strict environments this can be expected. I'll be sure to make a note of this in the instructions, thanks! To get it working, you have to change the execution policy, with this command:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser

That will allow unsigned scripts to run for the current user.

Apr 07, 2020

I think this line maybe would help you:
Set-PowerCLIConfiguration -Scope CurrentUser -ParticipateInCeip $false -InvalidCertificateAction Ignore

Apr 06, 2020

Hi, hopes you all well
I try to install but I am got output like below:
Downloading vRealize Network Insight vCenter Plugin from URL: https://network-insight-vcenter-plugin.s3-us-west-2.amazonaws.com/vrni-plugin-vcenter-v1.0.0.zip
You cannot call a method on a null-valued expression.
At D:\_scripts\install-vrnivsphereplugin-v1.0.0.ps1:101 char:5
+ $certBytes = $Certs[-1].Certificate.GetRawCertData()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Multiple ambiguous overloads found for "ComputeHash" and the argument count: "1".
At D:\_scripts\install-vrnivsphereplugin-v1.0.0.ps1:102 char:5
+ $hash = $sha256.ComputeHash($certBytes)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest

Exception calling "ToString" with "1" argument(s): "Value cannot be null.
Parameter name: value"
At D:\_scripts\install-vrnivsphereplugin-v1.0.0.ps1:103 char:5
+ $thumbprint = [BitConverter]::ToString($hash).Replace('-',':')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException

SSL Thumbprint:
Press any key to continue or CTRL+C to quit:

Apr 07, 2020

Hi, it looks like you're running a PowerShell version below 6.1, could that be? Please use 6.1, or preferably PowerShell 6.2+ - The next version will have a check for the version and will display it clearer.

Apr 07, 2020

hi, thanks for reply. since to be the same thing.

I tried with PS version 6.2.4 and getting an error : .\install-vrnivsphereplugin-v1.0.0.ps1 -Operation Install
Downloading vRealize Network Insight vCenter Plugin from URL: https://network-insight-vcenter-plugin.s3-us-west-2.amazonaws.com/vrni-plugin-vcenter-v1.0.0.zip
You cannot call a method on a null-valued expression.
At D:\_scripts\vRNI_plugin\install-vrnivsphereplugin-v1.0.0.ps1:101 char:5
+ $certBytes = $Certs[-1].Certificate.GetRawCertData()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Multiple ambiguous overloads found for "ComputeHash" and the argument count: "1".
At D:\_scripts\vRNI_plugin\install-vrnivsphereplugin-v1.0.0.ps1:102 char:5
+ $hash = $sha256.ComputeHash($certBytes)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest

Exception calling "ToString" with "1" argument(s): "Value cannot be null.
Parameter name: value"
At D:\_scripts\vRNI_plugin\install-vrnivsphereplugin-v1.0.0.ps1:103 char:5
+ $thumbprint = [BitConverter]::ToString($hash).Replace('-',':')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException

SSL Thumbprint:
Press any key to continue or CTRL+C to quit:

Jan 13, 2020

Hi,

I tried with two vcsa and both are failed:

The deployment of plug-in vRealize Network Insight 1.0.0 has failed: Download of package: com.vmware.vrni:1.0.0 failed. See the logs for more details.

Let me know if I miss something,

Thanks.

Jan 13, 2020

Hi, does your vCenter have access to the internet? What does the log entry of vCenter say about the plugin installation?

Jan 14, 2020

Hi,

PS C:\1\plugin> .\install-vrnivsphereplugin-v1.0.0.ps1 -Operation install
Downloading vRealize Network Insight vCenter Plugin from URL: https://network-insight-vcenter-plugin.s3-us-west-2.amazon
aws.com/vrni-plugin-vcenter-v1.0.0.zip
SSL Thumbprint: 83:EB:BF:65:7C:31:0E:2C:5D:78:A5:14:7E:2A:F3:C3:D4:46:EC:12:D9:86:F9:A0:E2:B7:EC:36:89:41:D6:43
Press any key to continue or CTRL+C to quit:

vRealize Network Insight Plugin installed to vCenter!

One more thing; to keep track of the usage of this plugin, we would like to know some details (vCenter version, and the
number of VMs & Hosts). Can I phone home? No hard feelings, if not. :-)
Phone home? (Yes/No): Yes
All done, thank you!

The deployment of plug-in vRealize Network Insight 1.0.0 has failed: Download of package: com.vmware.vrni:1.0.0 failed. See the logs for more details.

Download plug-in
Status: Error downloading plug-in. Make sure that the URL is reachable and the registered thumbprint is correct.

Error stack:
Error downloading plug-in. Make sure that the URL is reachable and the registered thumbprint is correct.
java.net.SocketTimeoutException: Read timed out
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
java.net.SocketInputStream.read(SocketInputStream.java:171)
java.net.SocketInputStream.read(SocketInputStream.java:141)
sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
sun.security.ssl.InputRecord.read(InputRecord.java:503)
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)
com.vmware.vise.util.http.ConnectionManager.connect(ConnectionManager.java:298)
com.vmware.vise.util.http.SimpleHttpClient.connect(SimpleHttpClient.java:354)
com.vmware.vise.util.http.SimpleHttpClient.connect(SimpleHttpClient.java:324)
com.vmware.vise.util.http.SimpleHttpClient.executeMethodResponseAsStream(SimpleHttpClient.java:222)
com.vmware.vise.vim.extension.VcExtensionManager.writePackageToFile(VcExtensionManager.java:1320)
com.vmware.vise.vim.extension.VcExtensionManager.downloadPackage(VcExtensionManager.java:1175)
com.vmware.vise.vim.extension.VcExtensionManager$2.call(VcExtensionManager.java:793)
com.vmware.vise.vim.extension.VcExtensionManager$2.call(VcExtensionManager.java:783)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
com.vmware.vise.util.concurrent.QueuingCachedThreadPool$QueueProcessor.run(QueuingCachedThreadPool.java:1229)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
com.vmware.vise.util.concurrent.WorkerThreadFactory$1.run(WorkerThreadFactory.java:64)
java.lang.Thread.run(Thread.java:748)

Thanks,

Jan 14, 2020

I check vCenter can access the internet

root@vcenter [ ~ ]# ping network-insight-vcenter-plugin.s3-us-west-2.amazonaws.com
PING s3-us-west-2-r-w.amazonaws.com (52.218.248.17) 56(84) bytes of data.
64 bytes from s3-us-west-2-r-w.amazonaws.com (52.218.248.17): icmp_seq=1 ttl=31 time=196 ms
64 bytes from s3-us-west-2-r-w.amazonaws.com (52.218.248.17): icmp_seq=2 ttl=31 time=196 ms
64 bytes from s3-us-west-2-r-w.amazonaws.com (52.218.248.17): icmp_seq=3 ttl=31 time=196 ms
64 bytes from s3-us-west-2-r-w.amazonaws.com (52.218.248.17): icmp_seq=4 ttl=31 time=196 ms

Thanks.

Jan 15, 2020

Ping might work, but it looks like HTTPS/443 is blocked. There's no easy way to get the plugin zip from another location, currently - but we'll make sure a custom URL (i.e. internal webserver) can be given on the next release. Either allow HTTPS outgoing or wait for v2.0.

Jan 09, 2020

Just tried this and am getting the following error, although it does go on to say the plugin has been installed to vCenter successfully

You cannot call a method on a null-valued expression.
At C:\users\install-vrnivsphereplugin-v1.0.0.ps1:101 char:5
+ $certBytes = $Certs[-1].Certificate.GetRawCertData()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Multiple ambiguous overloads found for "ComputeHash" and the argument count: "1".
At C:\users\install-vrnivsphereplugin-v1.0.0.ps1:102 char:5
+ $hash = $sha256.ComputeHash($certBytes)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest

Jan 09, 2020

Hi Justin, make sure you're using a PowerShell version 6 or higher. We'll improve the installation script to check for the minimum version, but right now it gives this error.

Jan 09, 2020

Hi Martijn, thanks for the quick reply. I'll install PowerShell 6 or higher and try again. Will I need to remove the plugin before trying the install again? If I check on the vCenter under Client Plug-Ins it does show the vRNI plugin with a Deployment status of 'In Progress', which has been like that for a while now

Jan 09, 2020

Yes. Use the "-Operation Uninstall" parameter to clear vCenter and then run the installation again, after upgrading PowerShell.