show hosts
The show hosts Privileged EXEC mode command displays the default domain name, a list of
name server hosts, the static and the cached list of host names and addresses.
Syntax
show hosts [name]
Parameters
■
name — Specifies the host name. (Range: 1-158 characters)
Default Setting
This command has no default configuration.
Command Mode
Privileged EXEC mode
Command Usage
There are no user guidelines for this command.
Example
The following command displays host information.
Console#
show hosts
System name: Device
Default domain is gm.com, sales.gm.com, usa.sales.gm.com(DHCP)
Name/address lookup is enabled
Name servers (Preference order): 176.16.1.18 176.16.1.19
Configured host name-to-address mapping:
Host
----
accounting.gm.com
Cache:
Host
----
www.stanford.edu
HP PC Blade Switch CLI Reference Guide
TTL (Hours)
Total
Elapsed
-----
-------
72
3
www.hp.com
IP Addressing Commands
Addresses
---------
176.16.8.8 176.16.8.9 (DHCP)
Type
Addresses
------
---------
IP
171.64.14.203
11-15