I have been having this problem since I started using this plugin. It has never actually worked correctly for me. I have emailed support multiple times with no replies to my last few emails. I was told something about the password not being stored correctly, Does anyone know what I can try next.
This is the output from the commands
cmd.exe!!! /c "C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -v -H *.*.*.* -U root -P "-9999" -V hp"
20180926 12:43:58 Connection to https://*.*.*.*
20180926 12:43:58 Found pywbem version 0.10.0
20180926 12:43:58 Check classe OMC_SMASHFirmwareIdentity
20180926 12:44:02 Global exit set to UNKNOWN
UNKNOWN: Authentication Error
Whatever password I enter it uses 9999.
Unkown authentication error.
Re: Unkown authentication error.
What version of ESX plugin are you on?
The Current Version Is: 4.0.0.58
The issue was in the script where, the script engine has problems with raw SQL and saving variables so we get a SQL error code instead of your password value.
We changed the way we got that information in the latest build so you should have better results.
Make sure your script version number matches the latest build with the following info
Version 4.0.0.56
Date 3/09/2018
If you need the latest version goto our site and login and view your subscriptions. There you will find the link to the latest downoads.
The Current Version Is: 4.0.0.58
The issue was in the script where, the script engine has problems with raw SQL and saving variables so we get a SQL error code instead of your password value.
We changed the way we got that information in the latest build so you should have better results.
Make sure your script version number matches the latest build with the following info
Version 4.0.0.56
Date 3/09/2018
If you need the latest version goto our site and login and view your subscriptions. There you will find the link to the latest downoads.
-
- Posts: 3
- Joined: Wed Apr 11, 2018 3:46 pm
- 6
Re: Unkown authentication error.
Thanks for your reply. I am running .58 do I need to downgrade to .56 then?
Re: Unkown authentication error.
Is script version .56?
Re: Unkown authentication error.
If you open the ESX Health Monitor script under the script/maintenance folder
on line 56 should be execute powershell.
Just before this line, add a new line that does a script log message function.
Plase "This is the SQL password encoded[@sqlPassword@]" as the log line.
Let probe run and see what the output was from log line in the agent script logs.
If it looks like base64 then use an online base64 decoder to decode string. Or replace @sqlPassword@ in the powershell string and run that command in powershell to see the decoded version.
Does the decoded version come out as -9999 ? or is it a password ?
on line 56 should be execute powershell.
Code: Select all
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("@sqlPassword@"))
Plase "This is the SQL password encoded[@sqlPassword@]" as the log line.
Let probe run and see what the output was from log line in the agent script logs.
If it looks like base64 then use an online base64 decoder to decode string. Or replace @sqlPassword@ in the powershell string and run that command in powershell to see the decoded version.
Does the decoded version come out as -9999 ? or is it a password ?
-
- Posts: 3
- Joined: Wed Apr 11, 2018 3:46 pm
- 6
Re: Unkown authentication error.
I just ran this and the decoded text was the correct password.
Re: Unkown authentication error.
Ok in the script if we edit it.
Line 61
Edit this line, change ESXPassword to DECRYPTPASSWORD and rerun scans. Do you get "-9999" now?
Before
After
Line 61
Edit this line, change ESXPassword to DECRYPTPASSWORD and rerun scans. Do you get "-9999" now?
Before
Code: Select all
C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -H @ESXHOSTIP@ -U @ESXUsername@ -P "@ESXPassword@" -V @ESXVender@
Code: Select all
C:\Python27\Python.exe -W ignore C:\Python27\check_esxi_hardware.py -H @ESXHOSTIP@ -U @ESXUsername@ -P "@DECRYPTPASSWORD@" -V @ESXVender@