User`s guide
Return Format
The query command reads the Host Name and returns an ASCII string
enclosed in double quotes. If a Host Name has not been assigned, a null
string ( " " ) is returned.
Note that the query command has two optional parameters. Specify
"CURRent" (default) to read the dynamic Host Name currently being used by
the instrument. Specify "STATic" to read the Host Name currently stored in
non-volatile memory within the instrument (may not be the actual name
used by the instrument if DHCP is enabled).