Sets or displays the name of the current host system.
/usr/bin/hostname [ HostName ] [ -s ]
The /usr/bin/hostname command displays the name of the current host system. Only users with root user authority can set the host name. The mkdev command and the chdev commands also set the host name permanently. Use the mkdev command when you are defining the TCP/IP instance for the first time.
You can use a Web-based System Manager System application (wsm system fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit mkhostname fast path to run this command.
|-s||Trims any domain information from the printed name.|
|HostName||Sets the primary name of the host.|
Note: You must have root user authority to use the HostName parameter.
The chdev command, mkdev command.
The gethostname subroutine, sethostname subroutine.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
Naming in AIX Version 4.3 System Management Guide: Communications and Networks.