Skip to main content

Posts

Showing posts from February, 2021

Update Apache Tomcat from 9.0.26 to 9.0.43

  Download Latest Available Version of Tomcat apache-tomcat-9.0.43.tar.gz copy in /sap/upgrades/ extract : tar zxvf apache-tomcat-9.0.43.tar.gz   Stop Data Services Take Backup of /usr/sap/IPS folder in /sap/upgrades or only Tomcat folder under /use/sap/IPS/sap_bobj/   go back to  /sap/upgrades/ mv apache-tomcat-9.0.43 tomcat cp -rp * /usr/sap/IPS/sap_bobj/tomcat/   Start Data Services

Check Server Port Open or not

[Username@<Server> ~]$ nmap -p 8101 <Target Server> Starting Nmap 5.51 ( http://nmap.org ) at 2020-12-08 02:01 MST Nmap scan report for <Target Server> (xxxxx) Host is up (0.00076s latency). PORT     STATE SERVICE 8101/tcp open  unknown Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds [Username@<Server> ~]$

Starting and Stopping MAXDB

 /maxdb/programs/bin Procedure Starting the Database (Transfer to the ONLINE Operational State) Call Database Manager CLI, log on as operator DBM with password DBM, connect to the database DEMODB, and transfer the database to the ONLINE operational state: [root@<Server> bin]# ./dbmcli -u superdba,Password -d SDB db_online OK [root@<Server> bin]# Stopping the Database (Transfer to the OFFLINE Operational State) Call Database Manager CLI, log on as operator DBM with password DBM, connect to the database DEMODB, and transfer the database to the OFFLINE operational state: ./dbmcli -u superdba,Password -d SDB  db_offline OK Displaying the Current Operational State of the Database Call Database Manager CLI, log on as operator DBM with password DBM, connect to the database DEMODB, and display the operational state of the database: ./dbmcli -u superdba,Password -d SDB  db_state OK State ONLINE [root@<Server> bin]# OK OFFLINE

Increase Swap in Azure Instances

[root@<Server> ~]# vi /etc/waagent [root@<Server> ~]# vi /etc/waagent.conf ResourceDisk.SwapSizeMB=14336 <Enable this Parameters> ResourceDisk.EnableSwap=y [root@<Server> ~]# systemctl restart waagent [root@<Server> ~]# free -h               total        used        free      shared  buff/cache   available Mem:            27G        1.9G         11G        141M         14G         24G Swap:           15G          0B         15G

SSH Trust Between Servers

 jsmith@local-host$ [Note: You are on local-host here] jsmith@local-host$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key] Enter passphrase (empty for no passphrase): [Press enter key] Enter same passphrase again: [Pess enter key] Your identification has been saved in /home/jsmith/.ssh/id_rsa. Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub. The key fingerprint is: 33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host Step 2: Copy the public key to remote-host using ssh-copy-id jsmith@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host jsmith@remote-host's password: Now try logging into the machine, with "ssh 'remote-host'", and check in: .ssh/authorized_keys