
sethostname(8)
208
SPARC Enterprise Mx000 Servers XSCF Reference Manual • Last Revised April 2010
OPERANDS
The following operands are supported:
EXTENDED
DESCRIPTION
■
The following situations result in an error by the
applynetwork
(8) command:
■
Both host name and domain name are not set.
■
On M8000/M9000 servers, the host name is not set to both xscf#0 and xscf#1.
■
The total number of characters of the DNS domain name that you set by using
the
sethostname
(8) command and the search path that you set by using the
setnameserver
(8) command exceeds 256.
■
To apply the host name and the DNS domain name to XSCF, execute the
applynetwork
(8) command. Then, use the
rebootxscf
(8) command to reset
XSCF to make the changes to the XSCF permanent.
■
The currently set host name and DNS domain name of the XSCF unit can be
checked by using the
shownetwork
(8) command.
EXAMPLES
EXAMPLE 1
Sets the host name scf0-hostname for XSCF unit 0.
EXAMPLE 2
Sets the DNS domain name example.com for XSCF unit.
EXIT STATUS
The following exit values are returned:
hostname
Specifies a host name to be set for the XSCF unit. The
hostname
is
specified in up to 64 characters, not in Fully Qualified Domain
Name (FQDN) but in an abbreviated form. If a host name
exceeding 64 characters is specified, an error occurs.
Alphanumeric character and "-" can be used. However, a host
name must always begin with an alphabetic character and end
with an alphanumeric character. If "
localhost
" specified, an
error occurs.
xscfu
Specifies the name of the XSCF unit to be set. The following
values can be specified, depending on the system configuration.
If no value is specified, an error occurs.
xscf#0
XSCF unit 0
xscf#1
XSCF unit 1 (In M8000/M9000 servers)
XSCF>
sethostname xscf#0 scf0-hostname
XSCF>
sethostname -d example.com
0
Successful completion.
>0
An error occurred.
Summary of Contents for SPARC Enterprise M3000
Page 1: ......
Page 2: ......
Page 6: ......
Page 12: ......
Page 24: ...xviii SPARC Enterprise Mx000 Servers XSCF Reference Manual July 2010 ...
Page 32: ...Intro 8 8 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised July 2010 ...
Page 36: ...addboard 8 12 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 42: ...addfru 8 18 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised September 2008 ...
Page 60: ...clockboard 8 36 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised April 2010 ...
Page 82: ...dumpconfig 8 58 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 86: ...exit 1 62 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised January 2007 ...
Page 142: ...poweron 8 118 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 154: ...reset 8 130 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 172: ...sendbreak 8 148 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 180: ...setad 8 156 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised February 2010 ...
Page 198: ...setcod 8 174 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised July 2010 ...
Page 202: ...setdate 8 178 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised February 2010 ...
Page 208: ...setdcl 8 184 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised September 2008 ...
Page 296: ...setroute 8 272 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised April 2010 ...
Page 302: ...setsmtp 8 278 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 322: ...setssh 8 298 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 346: ...showad 8 322 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised November 2009 ...
Page 444: ...showlocale 8 420 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised March 2008 ...
Page 482: ...showntp 8 458 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised November 2009 ...
Page 502: ...showsnmp 8 478 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised January 2007 ...
Page 510: ...showssh 8 486 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised August 2009 ...
Page 558: ...who 1 534 SPARC Enterprise Mx000 Servers XSCF Reference Manual Last Revised January 2007 ...
Page 559: ......
Page 560: ......