Showing posts with label suse. Show all posts
Showing posts with label suse. Show all posts

Friday, 20 September 2019

How to lock and unlock the SAP system during an upgrade!

How to lock and unlock the SAP system during an upgrade!

ISSUE:
  • You get the message "Upgrade in progress: no login is possible" when trying to logon
  •  You are trying to implement a Note in the system during the upgrade and get the message: "Changes in ACM are locked (decision taken by rule A)"

Solution:

1. To unlock the SAP system, enter the following commands. The system may be either the original SAP system or the shadow system, depending on which one the error occurred.
Original SAP system

cd //abap/bin
./SAPup unlocksys


Shadow system
 
cd //abap/bin
SAPup unlockshd


Log on to the SAP system or shadow system and correct the error.

2. To lock the original SAP system or shadow system again, enter the following commands:
Original SAP system
 
cd //abap/bin
./SAPup locksys


Shadow system
 
cd //abap/bin
SAPup lockshd

 


 

Wednesday, 29 November 2017

How to register SLES 12 using the SUSEConnect command line



How to register SLES 12 using the SUSEConnect command Line.

Environment

  • SUSE Linux Enterprise Server 12
  • SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
  • SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
Solution:

SUSEConnect -r YourActivationCode  -e YourEmailAddress  --debug


To get an overview of the existing options for SUSEConnect, run "SUSEConnect --help":
SLES12:~ # SUSEConnect -help
Usage: SUSEConnect [options]

Register SUSE Linux Enterprise installations with the SUSE Customer Center.
Registration allows access to software repositories including updates,
and allows online management of subscriptions and organizations

Manage subscriptions at https://scc.suse.com
    -p, --product [PRODUCT]  Activate PRODUCT. Defaults to the base SUSE Linux
                                           Enterprise product on this system.
                                           Product identifiers can be obtained with 'zypper products'
                                           Format: //
    -r, --regcode [REGCODE]  Subscription registration code for the
                                          product to be registered.
                                          Relates that product to the specified subscription,
                                         and enables software repositories for that product
        --instance-data  [path to file]
                                          Path to the XML file holding the public key and instance data
                                          for cloud registration with SMT
    -e, --email       email address for product registration
         --url [URL]             URL of registration server (e.g. https://scc.suse.com).
                                         Implies --write-config so that subsequent invocations use the same registration server.
    -s, --status                  get current system registration status in json format
         --status-text          get current system registration status in text format
         --write-config       write options to config file at /etc/SUSEConnect

Friday, 4 August 2017

How to install and configure SAP Router in SUSE Linux


SAP Router Install and configuration:

Pre-request Steps:

1. Login to root user.

2.Create the directory usr/sap/saprouter

3. Download the following files and extract to /saprouter directory


4.Create saprouttab file and maintain the permission for your networks.

5. following is an example content of saprouttab


  <SAP server IP> is ip address of the server which is need to be access via SAP ROUTER

  <Port> is port of sap application for access 

  D**** Means Deny all the connection accept the entry of the server IP in which mention   saprouttab

 Configuration :

6. Set the environment variable

     export SECUDIR = /usr/sap/saprouter
     export SNC_LIB = /usr/sap/saprouter/libsapcrypto.so

7. Generate Certificate

     Execute the below commands generate certificate.

   ./sapgenpse get_pse -v -r certreq -p local.pse "CN=<Hostname> , OU = <ou number> ,OU =      SAProuter ,O=SAP,C=DE"

Result: (give password >


8. Now certificate has been generated now open the certreq file and crtl +A and ctrl+C

9. Update certificate request in SAP Market place and paste and generate it.

10.Now import the generated certificate from SAP market place.

Execute below commands to import the certificate file.

 ./sapgenpse import_own_cert -c srcert -p local.pse 

  srcert file will be generated.


11 . Now open the srcert file paste the generated certificate from SAP market place.
      save it.

12. Now we eill have to create the credentials for SAP router Execute below commands to assign the       user to SAP Router.
     
     ./sapgenpase seclogin -p local.pse -0 root


13. Check if the certificate has been imported successfully with following command:

    ./sapgenpse get_my_name -v -n Issuer

14. Get the below result


15. Start Router

   ./saprouter -r -K "p:CN=<sap router hostname>,OU=<Customer Name>,OU=SAProuter,O=SAP,U=DE"




Friday, 16 June 2017

Enable Telnet in suse linux

By default ,telnet is disabled in SUSE.

Go to YAST and double click SOFTWARE MANAGEMENT ,in the search box, enter "telnet" and 
click SEARCH ,tick on telnet-server and click ACCEPT .

Open the TERMINAL.
Edit the telnet file with vi editor and change disable from "yes" to "no" ,Then save the file.

# vi /etc/xinetd.d/telnet

Finally ,restart the xinetd and test the connection.

# /etc/init.d/xinetd restart
# telnet <your ip-address> <port>

Thursday, 15 June 2017

Check SUSE linux Version

You can execute the below command to check the current release of your SUSE Operating System.

# cat /etc/SuSE-release
SUSE Linux Enterprise  Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 1

or

# cat /etc/issue

Welcome to SUSE LINUX  Enterprise  Server 12 (i586)  -kernel  \r  (\l)