Managing the HP NetStorage 6000 Using Telnet
Managing the HP NetStorage 6000 Using Telnet
38
hostlook The hostlook command is used to verify that the hosts file is correct. Each hostname/addr
argument is looked up in the hosts file, and the results of the are reported. A hostname/addr
argument may be a host name (e.g. a client), or a host Internet address (e.g. 192.3.4.5). Wild-
cards may not be used.
Usage:
hostlook hostname/addr …
Example: hostlook a client
hostlook 192.3.4.5
hostlook no such
hostmatch The hostmatch command is primarily used to verify that the hostgrps file is set up properly.
The hostpatn argument may be:
• a host name (e.g., aclient) which must be present in the hosts file
• an Internet address (e.g., 192.3.4.5)
• a wildcard that matches a host name or address (e.g., acl*, 192.3.4.*)
• an @ followed by a host group name (e.g., @general, @trusted); see
hostgrps for details
A hostname/addr argument may be a host name (e.g., a client), or a host Internet address (e.g.,
192.3.4.5). Wildcards may not be used. Each hostname/addr argument is tested for whether it
matches the hostpatn argument, and the results are shown.
Usage:
hostmatch hostpatn hostname/addr …
keymon The keymon command reports the exact codes received for each key you press. Keymon con-
tinues to report on keys until the stopchar is used. The purpose of keymon is to aid in trouble-
shooting TELNET access, since different client TELNET programs map keys differently —
especially line endings. For example, some TELNET programs send CR LF line endings,
some send CR NUL line endings, and there may be other line ending sequences.
Each code is reported with a single output line of the form:
[M-][C-]x 0xhh
where:
M if the high (0x80) bit is set
C if the code is a control character
x the base character of the code
0xhh the hexadecimal value for the code
For example, CR LF results in the output lines:
C-M 0x0D
C-J 0x0A
Usage: keymon stopchar
Example: keymon X
keymon Q