Page 1 of 1

The server and clients are not showing up in the console

Published: September 28, 2016 - 5:55 PM
by Andy
Hello,

I installed WAPT on a virtual machine running Windows Server 2012 R2.
The inventory table is empty, whereas I expected the virtual machine on which I installed WAPT to be inventoried.
I proceeded with the deployment of the WAPT agent on the client machines. The agent was deployed via GPO without any issues, but these client machines (the web interface at http://127.0.0.1:8088 shows that the agent is deployed) are not appearing in the WAPT console on the server.
I've tried a multitude of things:
installing and reinstalling => no results;
deleting and recreating the virtual machine => nothing.
I've verified that the DNS configurations are working. nslookup on the machine name works correctly (name-to-IP and IP-to-name resolution is correct).
've added the WAPT CNAME alias, which points to the FQDN of my WAPT server.

Do you have any idea what's preventing my WAPT server from working?
I'd like to reiterate that in my test on a different machine (a single domain controller), everything works fine, but when I switch to a production environment with two domain controllers, one with a primary zone and the other with a secondary zone, the WAPT server isn't reporting the inventories in its console. DNS functionality has been checked (nslookup resolves the names).
Can anyone help me, please?

Re: The server and clients are not showing up in the console

Published: September 30, 2016 - 11:28 AM
by Andy
Does anyone have any idea what could be causing this behavior?

Re: The server and clients are not showing up in the console

Published: September 30, 2016 - 12:59 PM
by htouvet
On one of the client machines, via the CMD command line as administrator (privilege elevation required!)
throw

Code: Select all

wapt-get register -l debug
and give us the result...

Re: The server and clients are not showing up in the console

Published: September 30, 2016 - 4:21 PM
by Andy
Yes, I just saw the message. below the result of the command:
PS C:\Users\admin> wapt-get register -l debug
Current loglevel: DEBUG
2016-09-30 16:15:12,568 DEBUG Default encoding: ascii
2016-09-30 16:15:12,568 DEBUG Setting encoding for stdout and stderr to cp850
2016-09-30 16:15:12,568 DEBUG Python path ['C:\\wapt', 'C:\\wapt\\lib\\site-pack
ages\\netifaces.egg', 'C:\\wapt\\lib\\site-packages\\pytz.egg', 'C:\\wapt\\lib\\
site-packages\\py_bcrypt-0.4-py2.7-win32.egg', 'C:\\wapt\\python27.zip', 'C:\\wa
pt\\DLLs', 'C:\\wapt\\lib', 'C:\\wapt\\lib\\plat-win', 'C:\\wapt\\lib\\lib-tk',
'C:\\wapt', 'C:\\wapt\\lib\\site-packages', 'C:\\wapt\\lib\\site-packages\\win32
', 'C:\\wapt\\lib\\site-packages\\win32\\lib']
2016-09-30 16:15:12,568 DEBUG Config file: C:\wapt\wapt-get.ini
2016-09-30 16:15:12,568 INFO User Groups:[]
2016-09-30 16:15:12,568 DEBUG WAPT base directory: C:\wapt
2016-09-30 16:15:12,568 DEBUG Package cache dir: C:\wapt\cache
2016-09-30 16:15:12,568 DEBUG Thread 5060 is connecting to wapt db
2016-09-30 16:15:12,568 DEBUG WAPT DB Structure version;: 20140410
2016-09-30 16:15:12,568 DEBUG Thread 5060 is connecting to wapt db
2016-09-30 16:15:12,568 DEBUG DB Start transaction
2016-09-30 16:15:12,568 DEBUG DB commit
2016-09-30 16:15:12,927 INFO Run "('dmidecode -q',)"
2016-09-30 16:15:12,989 INFO ('dmidecode -q',) command returns code 0
System Power Controls
2016-09-30 16:15:14,908 INFO Unknown UUID or hostname has changed: reading host
UUID from wmi informations
2016-09-30 16:15:14,908 INFO Run "('echo "" | wmic PATH Win32_ComputerSystemProd
uct GET UUID,IdentifyingNumber,Name,Vendor /VALUE',)"
2016-09-30 16:15:15,174 INFO ('echo "" | wmic PATH Win32_ComputerSystemProduct G
ET UUID,IdentifyingNumber,Name,Vendor /VALUE',) command returns code 0
2016-09-30 16:15:15,174 DEBUG DB Start transaction
2016-09-30 16:15:15,174 DEBUG DB commit
2016-09-30 16:15:15,361 DEBUG DB Start transaction
2016-09-30 16:15:15,361 DEBUG DB commit
2016-09-30 16:15:15,532 INFO Starting new HTTPS connection (1): vm-srvwapt.DomMa
irie.Local
2016-09-30 16:15:16,423 DEBUG "POST /add_host HTTP/1.1" 400 226
FATAL ERROR: HTTPError: 400 Client Error: Bad Request for url: https://vm-srvwa
pt.DomMairie.Local/add_host
Traceback (most recent call last):
File "
File "
File "C:\wapt\common.py", line 4165, in register_computer
return self.waptserver.post('add_host',data = json.dumps(inv))
File "C:\wapt\common.py", line 1964, in post
req.raise_for_status()
File "C:\wapt\lib\site-packages\requests\models.py", line 837, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://vm
-srvwapt.DomMairie.Local/add_host
Exception at 0043DC5A: EPyIOError:
HTTPError: 400 Client Error: Bad Request for url: https://vm-srvwapt.DomMairie.Local/add_host
.

Re: The server and clients are not showing up in the console

Published: September 30, 2016 - 4:30 PM
by htouvet
This looks like a BIOS bug... when there's a boot bitmap image.
The initial registry sends WMI information, including this image.

See: https://roundup.tranquil.it/wapt/issue620

. Copy the file https://raw.githubusercontent.com/tranq ... helpers.py
to c:\wapt

and try again.
If it works, on the management machine (from which you created the custom waptagent.exe), also modify the setuphelpers.py file and recreate a waptagent.exe to deploy across the network.

Re: The server and clients are not showing up in the console

Published: September 30, 2016 - 5:06 PM
by Andy
Copy the file https://raw.githubusercontent.com/tranq ... helpers.py
to c:\wapt.

When you say to copy it, do I copy it into a .txt file naming it setuphelpers.txt or setuphelpers.py, or what else please?

Re: The server and clients are not showing up in the console

Published: September 30, 2016 - 5:14 PM
by htouvet
Copy it into a .py file (not a .txt file) called setuphelpers.py exactly as it is in the GitHub repository.
To be sure you're doing this correctly, uncheck the Windows Explorer option that hides file extensions... (one wonders why Microsoft invented that...)

Re: The server and clients are not showing up in the console

Published: October 3, 2016 - 10:39 PM
by Andy
Good evening,
I did indeed copy the file to .py, but it not only overwrote the existing file (a copy was made beforehand), but it also didn't work. An error appeared, preventing me from connecting to the console. I stopped my internship where I was performing these operations so I can't reproduce the error, nor even continue to fix the problem. Thank you for taking the time to reply. I should add that on my personal machine, I created several virtual machines with VMware, on which I installed the WAPT server, but I didn't have any problems.