Link to home
Start Free TrialLog in
Avatar of yozuzeybek
yozuzeybek

asked on

How can i enter installation number for Redhat 5.3

Hi,

I install a new Red Hat Enterprise Linux Server release 5.3 (Tikanga). And I did skip installation number during installation.

Now I want to enter an installation number for Redhat 5.3. But I am using text mode and connecting via ssh.

How can i enter installation number? and How can i check Rehat Network running or not running? And Can I able to updates?

Thanks.
Avatar of Insoftservice inso
Insoftservice inso
Flag of India image

hi,

u want to enter the serial key of rhel and u want to check whether its n/w is working or not
right?
please confirm
 
Avatar of yozuzeybek
yozuzeybek

ASKER

Hi, yes.
ASKER CERTIFIED SOLUTION
Avatar of Insoftservice inso
Insoftservice inso
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi insoftservice,

I looked this link but I didnt see. Where must i write Installation number for Redhat Network?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi JordanH155,

I look into this file but I saw very various charecters. I am attacching screen shot. Where must i write RHN Serial?


rhn-register.JPG
Hi JordanH155,

I open this file with a text editor as nano. And I saw this file contain information about RHN_network. But I ddint understand? Where i must write RHN Serial number?
     
[root@34linuxweb ~]# nano /usr/sbin/rhn_register

#!/usr/bin/python
#
# Red Hat Network registration tool
# Adapted from wrapper.py
# Copyright (c) 1999-2006 Red Hat, Inc.  Distributed under GPL.
#
# Authors:
#       Adrian Likins <alikins@redhat.com>
#       Preston Brown <pbrown@redhat.com>
#       James Bowes <jbowes@redhat.com>
#       Daniel Benamy <dbenamy@redhat.com>

import sys
import os

from rhpl.translate import _

if "--development" in sys.argv:
    sys.path.append("../")
    from up2date_client import config
    cfg = config.initUp2dateConfig()
    cfg['development'] = True
    cfg['debug'] = 2
    sys.argv.remove("--development")

sys.path.append("/usr/share/rhn/")

from up2date_client import up2dateLog
up2dateLog.initLog().set_app_name('rhn_register')
from up2date_client import up2dateAuth
from up2date_client import rhncli
from up2date_client import tui
from up2date_client import up2dateErrors

class RhnRegister(rhncli.RhnCli):
    """Runs rhn_register. Can run it in gui or tui mode depending on
    availablility of gui, DISPLAY environment variable, and --nox switch.

    """
    def __init__(self):
        super(RhnRegister, self).__init__()
        self.optparser.add_option("--nox", action="store_true", default=False,
            help=_("Do not attempt to use X"))

    def _get_ui(self):
        try:
  GNU nano 1.3.12                           File: /usr/sbin/rhn_register                                                  Modified  

> Hi JordanH155,#!/usr/bin/python
#
# Red Hat Network registration tool
# Adapted from wrapper.py
# Copyright (c) 1999-2006 Red Hat, Inc.  Distributed under GPL.
#
# Authors:
#       Adrian Likins <alikins@redhat.com>
#       Preston Brown <pbrown@redhat.com>
#       James Bowes <jbowes@redhat.com>
#       Daniel Benamy <dbenamy@redhat.com>

import sys
import os

from rhpl.translate import _

if "--development" in sys.argv:
    sys.path.append("../")
    from up2date_client import config
    cfg = config.initUp2dateConfig()
    cfg['development'] = True
    cfg['debug'] = 2
    sys.argv.remove("--development")

sys.path.append("/usr/share/rhn/")

from up2date_client import up2dateLog
up2dateLog.initLog().set_app_name('rhn_register')
from up2date_client import up2dateAuth
from up2date_client import rhncli
from up2date_client import tui
from up2date_client import up2dateErrors

class RhnRegister(rhncli.RhnCli):
    """Runs rhn_register. Can run it in gui or tui mode depending on
    availablility of gui, DISPLAY environment variable, and --nox switch.

    """
    def __init__(self):
        super(RhnRegister, self).__init__()
        self.optparser.add_option("--nox", action="store_true", default=False,
            help=_("Do not attempt to use X"))

    def _get_ui(self):
        try:

^G Get Help           ^O WriteOut           ^R Read File          ^Y Prev Page          ^K Cut Text           ^C Cur Pos
^X Exit               ^J Justify            ^W Where Is           ^V Next Page          ^U UnCut Text         ^T To Spell
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

I am ruinng rhn_register file. But I see this screens at text screen. I cannot see any serial entering screen. Please can you help me What i must do?

1. Screen when I run rhn_register file


Copyright © 2006  Red Hat, Inc. All rights reserved.                                                                              
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
            ┌──────────────────────────┤ Attempting to contact the Red Hat Network serve│                                                                                                          â”‚        
            │ We are attempting to contact the Red Hat Network server at https://xmlrpc.rhn.redhat.com/XMLRPC.       ↑ │      
            │                                                                                                        â–® │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â†“ │      
            │                                                                                                          â”‚        
            │                                                                                                          â”‚        
            â””â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â                                                                                                            ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜                                                            
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
  <Tab>/<Alt-Tab> between elements  |  <Space> selects  |  <F12> next screen    


2. I am pressing F12


Copyright © 2006  Red Hat, Inc. All rights reserved.                                                                              
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
            ┌──────────────────────────┤ Attempting to contact the Red Hat Network serve│                                                                                                          â”‚        
            │ We are attempting to contact the Red Hat Network server at https://xmlrpc.rhn.redhat.com/XMLRPC.       ↑ │      
            │                                                                                                        â–® │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                         ┌─────────────────┤ Fatal Error ├──────────────────┐  â”‚                                                  â”‚                       â–’ │      
            │                         │ We can't contact the Red Hat Network Server.     │                       â–’ │      
            │                         │                                                  â”‚                       â–’ │      
            │                         │ Double check the location provided - is          â”‚                       â–’ │      
            │                         │ 'https://xmlrpc.rhn.redhat.com/XMLRPC' correct?  â”‚                       â–’ │      
            │                         │ If not, you can correct it and try again.        â”‚                       â–’ │      
            │                         │                                                  â”‚                       â–’ │      
            │                         │ Make sure that the network connection on this    â”‚                       â–’ │      
            │                         │ system is operational.                           │                       â–’ │      
            │                         │                                                  â”‚                       â–’ │      
            │                         │ This system will not be able to successfully     │                       â–’ │      
            │                         │ receive software updates from Red Hat without    â”‚                       â–’ │      
            │                         │ connecting to a Red Hat Network server           │                       â–’ │      
            │                         │                                                  â”‚                       â–’ │      
            │                         │                     ┌────┐                       │           â–’ │      
            │                         │                     │ OK │                       │                   â–’ │      
            │                         │                     └────┘                       │           â–’ │      
            │                         │                                                  â”‚                       â–’ │      
            │                         │                                                  â”‚                       â–’ │      
            │                         â””â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â                                                                              â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â–’ │      
            │                                                                                                        â†“ │      
            │                                                                                                          â”‚        
            │                                                                                                          â”‚        
            â””â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â                                                                                                            ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜                                                            
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
                                                                                                                                   
  <Tab>/<Alt-Tab> between elements  |  <Space> selects  |  <F12> next screen                                                                
Is the server connected to the internet, and can it ping  xmlrpc.rhn.redhat.com?