pmhostname(1)

pmhostname - report hostname

As shipped in IRIX 6.5.7. Added in IRIX 6.5.5.

NAME
     pmhostname - report hostname

SYNOPSIS
     /usr/pcp/bin/pmhostname [hostname]

DESCRIPTION
     pmhostname reports the name of the host hostname as returned by
     gethostbyname(3N).

     If hostname is not specified, then the local host name is retrieved using
     gethostname(2) and this is than passed to gethostbyname(3N).

     pmhostname provides a service for shell scripts that mimics the logic
     used by Performance Co-Pilot applications when trying to determine the
     official name of a host.

     If gethostbyname(3N) fails, the input host name (either hostname or the
     result from calling gethostname(2)) is reported.

SEE ALSO
     named(1), nsd(1), nslookup(1), gethostname(2), gethostbyname(3N) and
     resolver(4).