unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (HP-UX-11.11)
Page:
Section:
Apropos / Subsearch:
optional field



 setuname(1M)							setuname(1M)




 NAME
      setuname - change machine information

 SYNOPSIS
      setuname [-s name] [-n node] [-t]

 DESCRIPTION
      The setuname command is used to modify the value for system name
      and/or the node name by using the appropriate option(s).

      The setuname command attempts to change the parameter values in both
      the running kernel and the system configuration to cross reboots.	 A
      temporary change affects only the running kernel.

    Options
      The setuname command supports the following options:

	   -s name	  Changes the system name (e.g., HP-UX) in the
			  sysname field of the utsname structure where name
			  is the new system name and consists of
			  alphanumeric characters and the special characters
			  dash, underbar, and dollar sign.

	   -n node	  Changes the name in the nodename field of the
			  utsname structure where node specifies the new
			  node name and consists of alphanumeric characters
			  and the special characters dash, underbar, and
			  dollar sign.

	   -t		  Signifies a temporary change.	 The change will not
			  survive a reboot.

      Either or both of the -s or -n options must be given when invoking
      setuname.

      The size of the name and node is limited to UTSLEN-1 characters.
      UTSLEN is defined in <&lt&lt&lt;sys/utsname.h>&gt&gt&gt;.  Only users having appropriate
      privileges can use this command.

 EXAMPLES
      To permanently change the system name to HP-UX and the node name to
      the-node, issue the following command:

	   setuname -s HP-UX -n the-node

      To temporarily change the system name to SYSTEM and the node name to
      new-node, issue the following command:

	   setuname -s SYSTEM -n new-node -t





 Hewlett-Packard Company	    - 1 -   HP-UX Release 11i: November 2000






 setuname(1M)							setuname(1M)




 SEE ALSO
      uname(1), uname(2).




















































 Hewlett-Packard Company	    - 2 -   HP-UX Release 11i: November 2000