RQUERY

Top  Previous  Next

This command is used to query directly the terminal conneted about:

terminal emulator version
hostname
workstation name
username
windows domain name (if present)
operating system name
operating system version
operating system architecture

All the data area involved in this command must be PIC X and at least 64 bytes long.

RQUERY   [ VERSION(version) ]
[ HOSTNAME(hostname) ]
[ NAME(name) ]
[ USERNAME(username) ]
[ DOMAIN(domain) ]
[ OSNAME(osname) ]
[ OSVERSION(osversion) ]
[ OSARCH(osarch) ]

Options

DOMAIN(domain)

If computer belongs to domain, the domain name is returned.

HOSTNAME(hostname)

Hostname where terminal was running.

OSNAME(osname)

OS running on that computers.(ex. Windows XP)

OSARCH(osarch)

OS architecture (ex. x86)

OSVERSION(osversion)

OS version (ex. 5.1)

USERNAME(username)

user connected to operating system

VERSION(version)

Terminal emulator version (ex. X4J 2.0.7)

Example

I.e. inquiry to remote system to know remote platform.

  EXEC XCICS RQUERY OSNAME(OS-NAME) END-EXEC

 

OS-NAME contents "Windows XP".