Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Run

sudo docker ps -f "name=docker_appliance-server*"

Example output:

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                          NAMES
6f2294adae77        043f064b7228        "/opt/iqas/server/fe…"   27 hours ago        Up 6 hours          0.0.0.0:7896->7896/tcp, 0.0.0.0:80->8081/tcp   docker_appliance-server_1

There will be CONTAINER ID in form of 6f2294adae77
Save the ID

Next modify ContainterID, IPaddress, username and password to the appropriate values

sudo docker exec -it CONTAINER ID bash -c "/opt/iqas/server/tmp/scripts/wmi_query.py -server ip_address -username username -password password -query 'SELECT SERIALNUMBER FROM Win32_BIOS'"
CONTAINER ID=6f2294adae77 
ip_address=192.168.4.69
username=svc_test
password=iQuate123

if you want to test a server on a domain

WMI:

sudo docker exec -it 6f2294adae77 bash -c "/opt/iqas/server/tmp/scripts/wmi_query.py -server 192.168.4.69 -domain iquate -username svc_test -password iQuate123 -query 'SELECT SERIALNUMBER FROM Win32_BIOS'"

SMB:

sudo docker exec -it 6f2294adae77 bash -c "/opt/iqas/server/tmp/scripts/get_file_smb.py -server 192.168.4.69 -domain iquate -username svc_test -password iQuate123 -file 'C$:\Windows\win.ini'"

Remote Registry:

sudo docker exec -it 6f2294adae77 bash -c "/opt/iqas/server/tmp/scripts/wmi_exec.py -server 192.168.4.69 -domain iquate -username svc_test -password iQuate123 -command 'REG QUERY "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v HOSTNAME'"

Remote Command:

sudo docker exec -it 6f2294adae77 bash -c "/opt/iqas/server/tmp/scripts/wmi_exec.py -server 192.168.4.69 -domain iquate -username svc_test -password iQuate123 -command netstat -a -n -o


  • No labels