1setuname(1M) System Administration Commands setuname(1M)
2
3
4
6 setuname - change machine information
7
9 setuname [-t] [-n node] [-s name]
10
11
13 The setuname utility changes the parameter value for the system name
14 and node name. Each parameter can be changed using setuname and the
15 appropriate option.
16
17
18 Either or both the -s and -n options must be given when invoking setu‐
19 name.
20
21
22 The system architecture may place requirements on the size of the sys‐
23 tem and network node name. The command will issue a fatal warning mes‐
24 sage and an error message if the name entered is incompatible with the
25 system requirements.
26
28 The following options are supported:
29
30 -n node Changes the node name. node specifies the new network node
31 name and can consist of alphanumeric characters and the spe‐
32 cial characters dash, underbar, and dollar sign.
33
34
35 -s name Changes the system name. name specifies new system name and
36 can consist of alphanumeric characters and the special char‐
37 acters dash, underbar, and dollar sign.
38
39
40 -t Temporary change. No attempt will be made to create a perma‐
41 nent change.
42
43
45 See attributes(5) for descriptions of the following attributes:
46
47
48
49
50 ┌─────────────────────────────┬─────────────────────────────┐
51 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │Availability │SUNWcsu │
54 └─────────────────────────────┴─────────────────────────────┘
55
57 attributes(5)
58
60 setuname attempts to change the parameter values in two places: the
61 running kernel and, as necessary per implementation, to cross system
62 reboots. A temporary change changes only the running kernel.
63
64
65
66SunOS 5.11 9 Jul 2003 setuname(1M)