Get tasks/ip

Hello,
i was wondering if theres a way to get the actual task and ip of a host.

To understand what im doing:
In the manuals chapter 18.3 https://docs.greenbone.net/GSM-Manual/gos-20.08/en/connecting-other-systems.html#using-nagios

I want to use the command like described:
gvm-script -c /.../etc/gvm-tools.conf ssh --hostname 192.168.10.169 $USER1$/check-gmp.gmp.py -F $HOSTADDRESS$ --last-report -T $ARG1$ --status

But for the variable $ARG1$ and $HOSTADDRESS$, i have to give the name/ip manually.

How can i get the informations so that i can reference the ouptut to $ARG1$ and $HOSTADDRESS$?