Used Ports?

What incoming and outgoing ports does the Sun Update Connection use? The Sun Update is not working correctly, and I think it is due to firewall rules blocking something from being sent.Thanks.
[213 byte] By [mrlancealot] at [2007-11-26 6:02:35]
# 1

Can you be more specific about what it is that is failing?

There are (at least) 3 separate network exchanges that happen in Sun Update Connection:

1. Registering your client system. When you do the initial system registration, there is communication between your client and Sun.

2. Downloading the patches to your client system. When your client system is instructed to install patches, it has to connect to Sun to download the patch files. This happens both with the local Update Manager or when managing from the portal.

3. Communication between your client system and Sun when managing from the portal. When you manage from the portal, patch install/remove instructions are sent down to your client from Sun, and status of these requests are sent back up to Sun. For this communication, I believe it is all done using standard https on the default port, 443.

I'm not sure what ports are used for (1) and (2).

But first we should try to determine where you are seeing a failure. Are you failing to successfully register the client system? Are you failing to do patch management using the Update Manager? Or are you failing to successfully manage a registered system from the Sun Update Connection portal?

smithey at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2

I can offer some information on the following:

2. Downloading the patches to your client system. When your client system is instructed to install patches, it has to connect to Sun to download the patch files. This happens both with the local Update Manager or when managing from the portal.

The standard "out of the box" Update Manager configuration connects to https://getupdates.sun.com/solaris/ on port 443. This is the same configuration used by the portal.

If you configure your client to use a Sun Update Connection Proxy, the client connects to that machine using http (by default on port 3816). By default the Sun Update Connection Proxy connects back to https://getupdates.sun.com/solaris/ on port 443.

The client network settings can be viewed/modified in the Update Manager File -> Preferences, or by using the smpatch command line.

The Sun Update Connection Proxy settings can be modified using the patchsvr setup command.

ejrider at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3
At system registration time, we use https (port 443) connections between the client machine and Sun. -michael
atalkingchimp at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4

I was able to run the "updatemanager" and then I registered my machine. It said it was registered. I load up "updatemanager" and it scans for updates, but it says there are no updates. If I use "smpatch analyze" I get the same thing. If I goto the download section for Solaris 10 webpage, I see LOTS of updates I don't have applied, yet they are not listed at all in "updatemanager". Second, if I login to "updates.sun.com" my system is NOT listed as registered, even though it said it registered. That is my problem.

The firewall was setup to allow stateful outgoing, which means if it started a connection going out on port 443, then it would be able to talk back on port 443 on that same connection. But it wouldn't just be able to come in on port 443 if the connection was not started locally from the machine.

So it seems like most (all) traffic happens on port 443, so you will want to allow all outgoing and incoming traffic on that port. Does that sound correct? or should my stateful setting work?

mrlancealot at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5

During the registration process, there is an explicit selection that you have to make to allow the system to be managed from the web portal (updates.sun.com). Are you sure you selected that option?

I think you can test for this by doing (as root):

# /usr/lib/cc-ccr/bin/ccr -g cns.transport.serverurl

if it says "Property not defined: cns.transport.serverurl", you are not enabled for management at the updates.sun.com portal. If it prints out what looks like a proper URL, you should be enabled for portal-based management.

You might also try:

# /usr/lib/cc-ccr/bin/ccr -g cns.assetid

and let us know if you got a value back, or "Property not defined". That will help us evaluate the status of your registration.

As for the firewall, your stateful outgoing setting should be ok for the communication that I mentioned earlier related to sending commands from the portal down to your registered client. I don't know about the others, although I suspect all traffic on port 443 is initiated on your system.

smithey at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6

> # /usr/lib/cc-ccr/bin/ccr -g cns.transport.serverurl

If I do this command it outputs: "https://cns-transport.sun.com"

> # /usr/lib/cc-ccr/bin/ccr -g cns.assetid

If I do this command it outputs "1625327206"

Probably means my account at Sun is not setup correctly to allow me to do any updates currently.

> As for the firewall, your stateful outgoing setting

> should be ok for the communication that I mentioned

> earlier related to sending commands from the portal

> down to your registered client. I don't know about

> the others, although I suspect all traffic on port

> 443 is initiated on your system.

Okay then I will leave it the way it is, unless someone else says otherwise. I like to firewall off as many ports possible incoming, and allow stateful outgoing as required.

mrlancealot at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 7

Your account is more than likely setup correctly. We had a problem with the process that puts together the "catalog" for the updates. Instead of returning a normal catalog, we returned an empty one. A quick way to tell would be to do an

ls -l /var/sadm/spool/cache/Database

If the returned size is 382, then you did get the empty catalog (technically known as the patch db file.) A new file was already pushed to the delivery servers.

This file is normally cached for a day on the client side. One way to force Update Manager to get a fresh copy is to delete the content of the /var/sadm/spool/cache/Database directory before launching the Update Manager (or running smpatch...).

Frederic Jean

LostInColorado at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 8
I agree with Fred, the output from the ccr -g commands looks ok. We can't determine absolutely from those values that your registration was successful, but I'd bet that your registration is ok and the problem is elsewhere.
smithey at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 9

Thanks, this was exactly the problem. I did have that empty database as you showed below, and removing that and running "updatemanager" and checking for updates again showed all the fixes.

Thanks for the help, and glad it was not my lack of not "RTFM".

Next question, when will this work with servers with zones setup? I noticed you can't update if you have zones on the machine (even if they are turned off when you try).

> Your account is more than likely setup correctly. We

> had a problem with the process that puts together the

> "catalog" for the updates. Instead of returning a

> normal catalog, we returned an empty one. A quick way

> to tell would be to do an

>

> ls -l /var/sadm/spool/cache/Database

>

> If the returned size is 382, then you did get the

> empty catalog (technically known as the patch db

> file.) A new file was already pushed to the delivery

> servers.

>

> This file is normally cached for a day on the client

> side. One way to force Update Manager to get a fresh

> copy is to delete the content of the

> /var/sadm/spool/cache/Database directory before

> launching the Update Manager (or running

> smpatch...).

>

> Frederic Jean

mrlancealot at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 10

smpatch and Patchpro uses patchadd to install patches. My understanding is that there is are a number of issues in regards to local zones support with patchadd and patchrm (you'll see them if you go to sunsolve and do a search for "patchadd zones").

Once patchadd and patchrm works correctly with zones, we will be able to add support for patching local zones to the Update Manager (through smpatch).

Frederic Jean

LostInColorado at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 11

So what are my options to patching a machine with zones setup on it if patchadd doesn't even support a machine with zones correctly?

This must of been turned off recently in "smpatch", because when I ran "smpatch" in the past it updated on my machine with zones. I guess problems were found and was disabled.

So what can I do to patch my machine that has zones setup on it?

> smpatch and Patchpro uses patchadd to install

> patches. My understanding is that there is are a

> number of issues in regards to local zones support

> with patchadd and patchrm (you'll see them if you go

> to sunsolve and do a search for "patchadd zones").

>

> Once patchadd and patchrm works correctly with zones,

> we will be able to add support for patching local

> zones to the Update Manager (through smpatch).

>

> Frederic Jean

mrlancealot at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 12

> So what are my options to patching a machine with

> zones setup on it if patchadd doesn't even support a

> machine with zones correctly?

> This must of been turned off recently in "smpatch",

> ", because when I ran "smpatch" in the past it

> updated on my machine with zones. I guess problems

> were found and was disabled.

> So what can I do to patch my machine that has zones

> es setup on it?

patchadd is still the answer. There are a few documents on Sunsolve that provide guidance and information on the issues surounding patchadd in Zones. Sun Alert #101688 has some pretty good summary.

There are a few patches that have come out to address these issues. 119254-02 and 119015-02 (both for sparc) do provide some relief. 119255-02 and 119016-02 are the corresponding x86 patches. I do believe that these patches are public.

Frederic

LostInColorado at 2007-7-6 13:26:11 > top of Java-index,Administration Tools,Sun Update Connection-System...