6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / sconadm.1m
blob98cf1b064fe6b84bf1b0c74aedd8bd2918ad0877
1 '\" te
2 .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SCONADM 1M "Feb 27, 2006"
7 .SH NAME
8 sconadm \- register system information
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/sconadm\fR register \fB-a\fR
13      [\fB-e\fR softwareUpdate | \fB-E\fR softwareUpdate]
14      [\fB-h\fR \fIhostname\fR] [\fB-l\fR \fIlogfile\fR] [\fB-N\fR]
15      [\fB-p\fR \fIproxy_host\fR[:\fIproxy_port\fR]]
16      [\fB-r\fR \fIregistration_profile\fR] [\fB-u\fR \fIusername\fR]
17      [\fB-x\fR \fIproxy_username\fR]
18 .fi
20 .LP
21 .nf
22 \fB/usr/sbin/sconadm\fR proxy [\fB-l\fR \fIlogfile\fR]
23      [\fB-p\fR \fIproxy_host\fR[:\fIproxy_port\fR]]
24      [\fB-r\fR \fIregistration_profile\fR] [\fB-x\fR \fIproxy_username\fR]
25 .fi
27 .SH DESCRIPTION
28 .sp
29 .LP
30 The \fBsconadm\fR utility is a command-line version of the Basic Registration
31 GUI. In the first form of the command in the SYNOPSIS, \fBsconadm\fR uses the
32 \fBregister\fR subcommand to register a host with a registration server. In the
33 second form, \fBsconadm\fR uses the \fBproxy\fR subcommand to configure all of
34 the components for software update to use an HTTP web proxy.
35 .sp
36 .LP
37 The parameters specified with \fB-u\fR, \fB-e\fR (or \fB-E\fR), \fB-h\fR,
38 \fB-p\fR, and \fB-x\fR override values specified in your registration profile.
39 A template for this profile, owned by root, with read-only permissions, is
40 stored in \fB/usr/lib/breg/data/RegistrationProfile.properties\fR. See
41 \fBregistration_profile\fR(4).
42 .sp
43 .LP
44 For the \fBproxy\fR subcommand, the proxy password is stored in the
45 \fBRegistrationProfile.properties\fR file, available if proxy authentication is
46 needed. Storage in the profile prevents proxy passwords from being exposed as
47 part of a listing of processes on a system.
48 .SH OPTIONS
49 .sp
50 .LP
51 The following options are supported:
52 .sp
53 .ne 2
54 .na
55 \fB\fB-a\fR\fR
56 .ad
57 .RS 30n
58 Accept "Terms of Use and Binary Code License". Absence of this option means
59 that you do not accept the license.
60 .RE
62 .sp
63 .ne 2
64 .na
65 \fB\fB-e\fR softwareUpdate\fR
66 .ad
67 .RS 30n
68 Enable client to be managed at the Sun-hosted Update Connection Service.
69 .RE
71 .sp
72 .ne 2
73 .na
74 \fB\fB-E\fR softwareUpdate\fR
75 .ad
76 .RS 30n
77 Disable client's ability to be managed at the Sun-hosted Update Connection
78 Service.
79 .RE
81 .sp
82 .ne 2
83 .na
84 \fB\fB-h\fR \fIhostname\fR\fR
85 .ad
86 .RS 30n
87 Hostname of the machine you want to register.
88 .RE
90 .sp
91 .ne 2
92 .na
93 \fB\fB-l\fR \fIlogfile\fR\fR
94 .ad
95 .RS 30n
96 Pathname of log file.
97 .RE
99 .sp
100 .ne 2
102 \fB\fB-N\fR\fR
104 .RS 30n
105 Never register.
109 .ne 2
111 \fB\fB-p\fR \fIproxy_host\fR[:\fIproxy_port\fR]\fR
113 .RS 30n
114 Proxy host name and optional proxy port number.
118 .ne 2
120 \fB\fB-r\fR \fIregistration_profile\fR\fR
122 .RS 30n
123 Pathname to a registration profile.
127 .ne 2
129 \fB\fB-u\fR \fIusername\fR\fR
131 .RS 30n
132 User name (a Sun Online Account).
136 .ne 2
138 \fB\fB-x\fR \fIproxy_username\fR\fR
140 .RS 30n
141 User name on the proxy host.
144 .SH EXAMPLES
147 Unless specified otherwise, the commands below require root privileges or
148 privileges equivalent to root. See \fBprivileges\fR(5).
150 \fBExample 1 \fRRegistering a New System
153 Assume a file \fBregistrationprofile.properties\fR in \fB/tmp\fR that contains
154 the following:
157 .in +2
159 userName=\fIuser123\fR
160 password=\fIabc123\fR
161 hostName=
162 subscriptionKey=
163 portalEnabled=false
164 proxyHostName=
165 proxyPort=
166 proxyUserName=
167 proxyPassword=
169 .in -2
173 To register a new system using the profile above, you enter:
176 .in +2
178 \fB/usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties\fR
180 .in -2
184 \fBExample 2 \fRReregistering a System with a Different User
187 Assume a file \fBregistrationprofile.properties\fR in \fB/tmp\fR with the
188 contents shown below. Note the changed specification for \fBuserName\fR and
189 \fBpassword\fR.
192 .in +2
194 userName=\fInewuser\fR
195 password=\fInewpassword\fR
196 hostName=
197 subscriptionKey=
198 portalEnabled=false
199 proxyHostName=
200 proxyPort=
201 proxyUserName=
202 proxyPassword=
204 .in -2
208 To reregister a new system using the profile above, you enter the same command
209 you entered to register the system:
212 .in +2
214 \fB/usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties\fR
216 .in -2
220 \fBExample 3 \fRReregistering a System, Adding a Sun Subscription Key
223 Modify \fBregistrationprofile.properties\fR as follows:
226 .in +2
228 userName=\fInewuser\fR
229 password=\fInewpassword\fR
230 hostName=
231 subscriptionKey=\fIabc12345678\fR
232 portalEnabled=false
233 proxyHostName=
234 proxyPort=
235 proxyUserName=
236 proxyPassword=
238 .in -2
242 Run the command:
245 .in +2
247 \fB/usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties\fR
249 .in -2
253 \fBExample 4 \fRReregistering and Enabling Access to all Update Connection
254 Services
257 Modify \fBregistrationprofile.properties\fR as follows:
260 .in +2
262 userName=\fInewuser\fR
263 password=\fInewpassword\fR
264 hostName=
265 subscriptionKey=\fIabc12345678\fR
266 portalEnabled=false
267 proxyHostName=
268 proxyPort=
269 proxyUserName=
270 proxyPassword=
272 .in -2
276 Note that \fBportalEnabled\fR is set to \fBfalse\fR. Run the command:
279 .in +2
281 \fB/usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties \e
282 -e softwareUpdate\fR
284 .in -2
288 \fBExample 5 \fRNever Registering
291 To never register a system, enter:
294 .in +2
296 \fB/usr/sbin/sconadm register -N\fR
298 .in -2
302 \fBExample 6 \fRUsing a Proxy Server With Proxy Authentication
305 Edit \fBregistrationprofile.properties\fR as follows:
308 .in +2
310 userName=
311 password=
312 hostName=
313 subscriptionKey=
314 portalEnabled=
315 proxyHostName=webcache.mycompany.com
316 proxyPort=8080
317 proxyUserName=\fImyCompanyProxyUserName\fR
318 proxyPassword=\fImyCompanyProxyPassword\fR
320 .in -2
324 Run the command:
327 .in +2
329 \fB/usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties\fR
331 .in -2
335 \fBExample 7 \fRChanging Proxy Host Settings
338 Edit \fBregistrationprofile.properties\fR as follows:
341 .in +2
343 userName=
344 password=
345 hostName=
346 subscriptionKey=
347 portalEnabled=
348 proxyHostName=webcache.mycompany.com
349 proxyPort=8080
350 proxyUserName=\fImyCompanyProxyUserName\fR
351 proxyPassword=\fImyCompanyProxyPassword\fR
353 .in -2
357 Run the command:
360 .in +2
362 \fB/usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties\fR
364 .in -2
369 Then, change the \fBproxyHostName\fR value by running the following command:
372 .in +2
374 \fB/usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties \e
375 -p newproxy.mycompany.com\fR
377 .in -2
382 After the preceding command all proxies use \fBnewproxy.mycompany.com\fR.
385 \fBExample 8 \fRResetting a System Not to Use a Proxy
388 Edit \fBregistrationprofile.properties\fR as follows:
391 .in +2
393 userName=
394 password=
395 hostName=
396 subscriptionKey=
397 portalEnabled=
398 proxyHostName=
399 proxyPort=
400 proxyUserName=
401 proxyPassword=
403 .in -2
407 Note that values for all proxy fields are null.
411 Run the command:
414 .in +2
416 \fB/usr/sbin/sconadm proxy -r /tmp/registrationprofile.properties\fR
418 .in -2
421 .SH EXIT STATUS
423 .ne 2
425 \fB\fB0\fR\fR
427 .RS 6n
428 Success.
432 .ne 2
434 \fB\fB>0\fR\fR
436 .RS 6n
437 An error occurred.
440 .SH FILES
442 .ne 2
444 \fB\fB/usr/lib/breg/data/RegistrationProfile.properties\fR\fR
446 .sp .6
447 .RS 4n
448 Registration profile template.
451 .SH ATTRIBUTES
454 See \fBattributes\fR(5) for descriptions of the following attributes:
459 box;
460 c | c
461 l | l .
462 ATTRIBUTE TYPE  ATTRIBUTE VALUE
464 Interface Stability     Stable
467 .SH SEE ALSO
470 \fBregistration_profile\fR(4), \fBattributes\fR(5), \fBprivileges\fR(5)