logo

Manual Pages


Table of Contents

NAME

na_hostname - set or display filer name

SYNOPSIS

hostname [ name ]

DESCRIPTION

hostname prints the name of the current host. The hostname can be set by supplying an argument. This is usually done in the initialization script, /etc/rc, which is run at boot time. name must exist in the /etc/hosts data base.

VFILER CONSIDERATIONS

When run from a vfiler context, (e.g. via the vfiler run command), hostname prints the hostname of the concerned vfiler. Also, the hostname command currently does not allow setting the hostname of a vfiler.

FILES

/etc/hosts
host name data base
/etc/rc
system initialization command script

SEE ALSO

na_hosts(5), na_rc(5)


Table of Contents