sconadm and local source

Hi,

Is there any way from the command line to configure the machine to obtain updates from

a local source?

I have configured a Sun Update Connection Proxy on a machine, and everything is working

well (bar some Studio 11 patch issues yesterday).

I can configure another client via the GUI to use this local source :

Register to manage updates

Configure the system to retrieve updates from a local source

Patch Source URL : http://mymachine:3816/solaris/

This is outlined in Document ID : 82665

However, the equivalent CLI Document ID : 82688 doesn't seem to mention

this possibility.

Is it possible?

I know it is possible to configure smpatch to use the UC Proxy server with

smpatch set patchpro.patch.source

But was wondering if it is possible with UC.

Thanks!

-- Gary

[880 byte] By [Gary.Riseborough] at [2007-11-26 6:23:05]
# 1

Quick answer is yes;

# smpatch set patchpro.patch.source=https://getupdates.sun.com/solaris/

will set the patch source to the default location, you can change the url in the above command to a local source:

# smpatch set patchpro.patch.source=http://mymachine:3816/solaris/

and you can even use:

# pprosetup -P http://mymachine:3816/solaris/

to the same effect.

ForumModerator at 2007-7-6 14:11:04 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

Thanks for the reply, but there must be something extra.

As I mentioned in the original message I knew about the smpatch set

command. After configuring it, I have been able to do :

smpatch update

which updates from the local source correctly, but when I click on the

update manager icon, I have to configure it via the GUI as well to use the

local source again. i.e. smpatch and updatemanager obviously don't look

at the same place for configuration data?

That was why I was looking for some option to sconadm that I missed.

Thanks!

-- Gary

GaryRiseborough at 2007-7-6 14:11:04 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

You have not missed anything, the process you are using should work and does in our labs.

Try setting the local source using smpatch set, check it using "smpatch get", startup UpdateManager gui, check preferences there and run "smpatch get" to compare the results. Any inconsistances here and we would be very interested to investigate this, opening a ticket with Sun would be recommended.

ForumModerator at 2007-7-6 14:11:04 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4

HI,

thanks again for the assistance.

I believe it might actually be the Sun Update Manager Registration Wizard

that is getting in the road here.

Here is what I have.

Fresh install of Solaris 10 1/06

Log in using JDS

The "loading System Information" dialog box comes up and eventually (it is

running on an Ultra 10 :-) you get the "Registration Wizard".

Click cancel and Discard Registration.

Then, in a terminal window run :

smpatch set patchpro.patch.source=http://machinename:3816/solaris/

where machinename is my update connection proxy server (which is

working fine)

smpatch get shows it correctly :

patchpro.backout.directory-""

patchpro.download.directory-/var/sadm/spool

patchpro.install.types -rebootafter:reconfigafter:standard

patchpro.patch.sourcehttp://machinename:3816/solaris/ https://getupdates.sun.com/solaris/

patchpro.patchset-current

patchpro.proxy.host -""

patchpro.proxy.passwd********

patchpro.proxy.port -8080

patchpro.proxy.user -""

Now, either running "/usr/bin/updatemanager" or clicking on the icon in the

taskbar to start "/usr/bin/swup_boots" we again get the Update manager

window which does the "loading system information" bit, and then brings up

the Registration Wizard.

Cancelling the Registration Wizard at any time exits the update manager

GUi, so I can't check the File -> Preferences to see the settings.

If I go in the wizard to configuring it to use a local source, the text field where

you fill in the URL is blank.

So, I now believe the issue is the registration wizard. How to you tell update

manager that you don't need it to register.

Ahh, just found what I needed :

sconupdate register -N

Now the GUI will start and not bring up the registration wizard.

Preferences show it is using hte UC Proxy server as required.

Thanks for the help!

-- Gary

GaryRiseborough at 2007-7-6 14:11:04 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5
Err,That should have been :sconadm register -N-- Gary
GaryRiseborough at 2007-7-6 14:11:04 > top of Java-index,Administration Tools,Sun Update Connection-System...