# Finding SUSE registration status offline

**URL:** <https://forums.suse.com/t/finding-suse-registration-status-offline/32660>\
**Category:** SUSE Customer Center\
**Created:** [July 11, 2018, 2:16pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660 "2018-07-11T14:16:20Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 11, 2018, 2:16pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/1 "2018-07-11T14:16:20Z")

</div>

I have to find the registration status of SLES and SLED machines offline.  
I’ve tried `SUSEConnect --status` But it requires internet connectivity to check the registration status.  
Older forum posts point to a file in /var/cache/SuseRegister/. But my SLES12 SP1 machine doesn’t have that file even while being registered.

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [July 11, 2018, 4:17pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/2 "2018-07-11T16:17:33Z")

</div>

DesktopCentral Suse wrote:  
[color=blue]

> ## I have to find the registration status of SLES and SLED machines offline. I’ve tried Code:
> 
> ```
> SUSEConnect --status
> 
> ```
> 
> * * *
> 
> But it requires internet connectivity to check the registration  
> status.  
> Older forum posts point to a file in -/var/cache/SuseRegister/-. But  
> my SLES12 SP1 machine doesn’t have that file even while being  
> registered.[/color]

Log into the SUSE Customer Center:  
[https://scc.suse.com](https://scc.suse.com)

The “Subscriptions” tab will show what subscriptions you have along  
with the Registration Code(s).

The “Systems” tab will show what systems have been registered.

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below this post.  
Thank you.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [July 12, 2018, 12:25am UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/3 "2018-07-12T00:25:29Z")

</div>

DesktopCentral Suse Wrote in message:  
[color=blue]

> ## I have to find the registration status of SLES and SLED machines offline. I’ve tried Code:
> 
> ```
> SUSEConnect --status
> 
> ```
> 
> * * *
> 
> But it requires internet connectivity to check the registration  
> status.  
> Older forum posts point to a file in -/var/cache/SuseRegister/-. But my  
> SLES12 SP1 machine doesn’t have that file even while being registered.[/color]

Just so I understand your problem you would like to be able to  
find whether an off-line SLE machine is registered (to SUSE  
Customer Center, local SUSE Manager, or local SMT)?

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 12, 2018, 12:17pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/4 "2018-07-12T12:17:52Z")

</div>

Thanks for your reply.  
But my query is to do it programmatically and not manually.

---

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 12, 2018, 12:20pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/5 "2018-07-12T12:20:10Z")

</div>

Thanks for your reply.  
I would like to verify that the offline SLE machine’s OS license hasn’t expired. Sorry for not being clear.

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [July 12, 2018, 10:24pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/6 "2018-07-12T22:24:13Z")

</div>

DesktopCentral wrote:  
[color=blue]

> Thanks for your reply.  
> But my query is to do it programmatically and not manually.[/color]

I’m sorry but that was not apparent on your previous pose.

One advantage of using the SUSE Customer Center is that the status of  
_all_ registered devices can be seen from one screen.

Perhaps Simon can provide some additional ideas…

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below this post.  
Thank you.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [July 13, 2018, 6:26pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/7 "2018-07-13T18:26:52Z")

</div>

On 12/07/18 10:24, DesktopCentral wrote:  
[color=blue]

> Thanks for your reply.  
> I would like to verify that the offline SLE machine’s OS license hasn’t  
> expired. Sorry for not being clear.[/color]

By “license” do you mean subscription? With SLE there is no OS license  
(as such) but instead you can purchase a subscription which gives you  
patches, upgrades, and support.

By registering your server you then get access to the patches & upgrades  
but your server would need to be online to register, whether to SUSE  
Customer Center (SCC) or a local SUSE Manager/SMT server. If your server  
is offline then it’s unlikely to be registered (though it could be if  
you installed, registered, updated, and then pulled the network cable or  
otherwise restricted it’s ability to talk to the outside world).

What does “SUSEConnect --status” report/do on your offline machines?

On one of my unregistered test servers it reports “Not Registered”  
(though it does have have internet access via NAT).

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 14, 2018, 8:45am UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/8 "2018-07-14T08:45:40Z")

</div>

Hi Simon,

Yeah, I mean the SCC subscription.  
If my machine is not registered, it gives “Not registered”. But if the machine is registered, it gives an error as the request could not reach [scc.suse.com](http://scc.suse.com).  
But my problem is, the machine won’t be in unregistered state to start with. It will be registered. I’m not sure of what the output will be when the subscription expires and the machine is offline.

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [July 14, 2018, 7:59pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/9 "2018-07-14T19:59:25Z")

</div>

DesktopCentral wrote:  
[color=blue]

> But my problem is, the machine won’t be in unregistered state to start  
> with. It will be registered.[/color]

When you first install the system, it us unregistered. When you run  
“suse\_register” it contacts the SCC. When it completes successfully,  
your system is registered with the SCC.  
[color=blue]

> I’m not sure of what the output will be  
> when the subscription expires and the machine is offline.[/color]

If the machine is offline, it cannot contact the SCC so the status  
cannot be updated. The system is still registered but there may no  
longer be an active maintenance subscription.

This is the sequence of events:

- You install the system, It is unregistered.
- You run “suse\_register” with valid “regcode-sles=” while online.
- The SCC is contacted and “regcode-sles=” is validated.
- The system is then registered with the SCC.
- The system also gains access to repositories for updates.
- When the maintenance expires, the system still remains registered.
- When the maintenance expires, you lose access to the repositories.
- To regain access to the repositories you must re-register with a new  
“regcode-sles=” which will be provided when maintenance is renewed.

If your system is always offline after the initial registration, you  
cannot properly determine its status without consulting the SCC.

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below this post.  
Thank you.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [July 15, 2018, 1:59am UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/10 "2018-07-15T01:59:33Z")

</div>

“Kevin Boyle” Wrote in message:  
[color=blue]

> When you first install the system, it us unregistered. When you run  
> “suse\_register” it contacts the SCC. When it completes successfully,  
> your system is registered with the SCC.[/color]  
> [color=blue]  
> If the machine is offline, it cannot contact the SCC so the status  
> cannot be updated. The system is still registered but there may no  
> longer be an active maintenance subscription.
> 
> This is the sequence of events:
> 
> - You install the system, It is unregistered.
> - You run “suse\_register” with valid “regcode-sles=” while online.
> - The SCC is contacted and “regcode-sles=” is validated.
> - The system is then registered with the SCC.
> - The system also gains access to repositories for updates.
> - When the maintenance expires, the system still remains registered.
> - When the maintenance expires, you lose access to the repositories.
> - To regain access to the repositories you must re-register with a new  
> “regcode-sles=” which will be provided when maintenance is renewed.
> 
> If your system is always offline after the initial registration, you  
> cannot properly determine its status without consulting the SCC.[/color]

With SLES12 you use the SUSEConnect command to register the server  
from the command-line.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [July 15, 2018, 2:06am UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/11 "2018-07-15T02:06:09Z")

</div>

DesktopCentral Wrote in message:  
[color=blue]

> Yeah, I mean the SCC subscription.  
> If my machine is not registered, it gives “Not registered”. But if the  
> machine is registered, it gives an error as the request could not reach  
> [scc.suse.com](http://scc.suse.com).  
> But my problem is, the machine won’t be in unregistered state to start  
> with. It will be registered. I’m not sure of what the output will be  
> when the subscription expires and the machine is offline.[/color]

I don’t currently have access to my test servers but I don’t think  
the SUSEConnect status is cached … though that doesn’t mean you  
couldn’t cache it yourself after registering the server for  
querying offline. Ultimately the SUSE Customer Center is the  
definitive source of registration info.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [July 15, 2018, 5:18pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/12 "2018-07-15T17:18:43Z")

</div>

Simon Flood wrote:  
[color=blue]

> With SLES12 you use the SUSEConnect command to register the server  
> from the command-line.[/color]

Thanks, Simon. That was mentioned in the OP…

I’m still working with SLE 11 and still thinking “suse\_register”. 😉

While the command and syntax have changed, the process should remain  
essentially the same.

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below this post.  
Thank you.

---

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 16, 2018, 8:03am UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/13 "2018-07-16T08:03:04Z")

</div>

> [@KBOYLE;53474](#):
>
> If your system is always offline after the initial registration, you  
> cannot properly determine its status without consulting the SCC.

Ah, this was what I was looking for! Thanks a lot Kevin!

---

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 16, 2018, 8:03am UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/14 "2018-07-16T08:03:41Z")

</div>

Yes, Simon. I’m aware of the command. Thank you!

---

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 16, 2018, 8:07am UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/15 "2018-07-16T08:07:00Z")

</div>

Thanks for the suggestion, Simon!  
I’ll think about it.

---

<div class="post-metadata">

**Author:** ![DesktopCentral](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@DesktopCentral](https://forums.suse.com/u/DesktopCentral)\
**Post date:** [July 17, 2018, 1:07pm UTC](https://forums.suse.com/t/finding-suse-registration-status-offline/32660/16 "2018-07-17T13:07:13Z")

</div>

I came across an API on GitHub.  
[https://github.com/SUSE/connect/blob/master/doc/SCC-API-(Implemented).md](https://github.com/SUSE/connect/blob/master/doc/SCC-API-(Implemented).md)  
Thought it might help someone in the future.
