SlideShare a Scribd company logo
SAP	
  LVM	
  Custom	
  Instances	
  
•  This  is  the  first  in  a  series  of  presenta/ons  dedicated  to  SAP  
Landscape  Virtualiza/on  Management  (LVM)
•  This  document  provides  a  quick  overview  of  how  you  can  
customize  LVM  to  operate  custom  instances
•  This  document  describes  how  this  can  be  achieved  in  a  UNIX  
environment  but  can  be  easily  adapted  for  the  Windows  
plaKorm
•  The  document  is  aimed  at  system  administrators  responsible  
for  configuring  and  opera/ng  SAP  LVM
Introduc5on	
  
Overview	
  
•  SAP  LVM  can  manage  SAP  instances  and  databases  using  the  
SAP  Host  Agent
•  SAP  LVM  can  be  extended  to  manage  custom  instances  such  as  
SAP  Replica/on  Server  (SRS)  via  the  SAP  Host  Agent
•  Custom  instances  are  managed  using  SAP  Host  Agent  registered  
scripts
Generic	
  Opera5ons	
  
•  For  each  custom  instance  type  that  you  want  to  manage  within  
SAP  LVM  you  create  a  set  of  generic  opera/ons  as  follows:
Ø  Detect
Ø  Monitor
Ø  Start/Stop
Ø  Validate
Ø  ATach/Detach
Ø  Getproper/es
Generic	
  Opera5on	
  Scripts	
  
•  The  generic  opera/ons  are  defined  in  configura/on  files  stored  in  the  
exe/pera/ons.d  subdirectory  of  the  host  agent  file  system  on  the  
managed  host
•  Each  generic  opera/on  configura/on  file  must  use  the  following  
naming  conven/on
o  Detect  –  acc_<custominstance-­‐type>_list
o  Monitor  –  acc_<custominstance-­‐type>_monitor
o  Start/Stop  –  acc_<custominstance-­‐type>_start/stop
o  Validate  –  acc_<custominstance-­‐type>_validate
o  ATach/Detach  –  acc_<custominstance-­‐type>_aTach/detach
o  Getproper/es  –  acc_<custominstance-­‐type>_getproper/es
•  To  operate  a  custom  instance  the  minimum  requirement  is  to  
configure  the  detect,  monitor  and  start/stop  opera/ons
Example	
  for	
  SRS	
  -­‐	
  Overview	
  
•  Each  configura/on  file  should  reference  an  opera/ng  system  script  that  
performs  the  corresponding  opera/on
•  Posi/ve  responses  are  reported  to  SAP  LVM  by  echoing  a  string  star/ng  with  
[RESULT]
•  Nega/ve  responses  are  reported  to  SAP  LVM  by  echoing  a  string  star/ng  
with  [ERROR]
•  Responses  returned  by  the  opera/ng  system  scripts  are  visible  in  the  SAP  
LVM  log
•  For  this  example  we  will  configure  the  following  files:
1  Detect  –  acc_SRS_list.conf
2  Monitor  –  acc_SRS_monitor.conf
3  Start  –  acc_SRS_start.conf
4  Stop  –  acc_SRS_stp.conf
Example	
  for	
  SRS	
  -­‐	
  Configura5on	
  
File	
   Content	
  
acc_SRS_list.conf Name:	
  acc_SRS_list	
  
Command:	
  /sap/Scripts/Custom_Instance_SRS_Detect.ksh	
  
Workdir:	
  $[DIR_HOME:#sapparam]	
  
Username:	
  sapadm	
  
ResultConverter:	
  hook
acc_SRS_monitor.conf Name:	
  acc_SRS_monitor	
  
Command:	
  /sap/Scripts/Custom_Instance_SRS_Monitor.ksh	
  
Workdir:	
  $[DIR_HOME:#sapparam]	
  
Username:	
  sapadm	
  
ResultConverter:	
  flat
acc_SRS_start.conf Name:	
  acc_SRS_start	
  
Command:	
  /sap/Scripts/Custom_Instance_SRS_Operate.ksh	
  START	
  
Workdir:	
  $[DIR_HOME:#sapparam]	
  
Username:	
  sapadm	
  
ResultConverter:	
  hook
acc_SRS_stop.conf Name:	
  acc_SRS_stop	
  
Command:	
  /sap/Scripts/Custom_Instance_SRS_Operate.ksh	
  STOP	
  
Workdir:	
  $[DIR_HOME:#sapparam]	
  
Username:	
  sapadm	
  
ResultConverter:	
  hook
Example	
  for	
  SRS	
  -­‐	
  Scrip5ng	
  
File	
   Sample	
  Coding	
  (perform	
  any	
  site	
  specific	
  checks	
  beforehand)	
  
Custom_Instance_SRS_Detect.ksh	
   echo "[RESULT]: SAP Replication Server host detected”
echo "service_name="${SID}"_REP;service_caption=SAP Replication
Server;system_sid="${SID}
Custom_Instance_SRS_Monitor.ksh	
   /usr/sap/hostctrl/exe/saphostctrl -function GetDatabaseStatus -dbname ${SID}_REP
-dbtype syb >> /tmp/log
STATUS_DB=`grep "Database Status" /tmp/log | awk '{print $3}'`
STATUS_RS=`grep "Replication" /tmp/log | awk '{print $10}'`
STATUS_DR=`grep "Agent" /tmp/log | awk '{print $10}'`
echo "service_name="${SID}"_REP;service_status="${STATUS_DB}
echo "process_name=DRA;process_description=DR Agent;process_status="${STATUS_DR}
echo "process_name=SRS;process_description=Replication Server;process_status="$
{STATUS_RS}
Custom_Instance_SRS_Operate.ksh OPERATION=$1
case $OPERATION in
START) echo "[RESULT]: Start operation request detected"
host_oper="StartDatabase";;
STOP) echo "[RESULT]: Stop operation request detected"
host_oper="StopDatabase";;
esac
/usr/sap/hostctrl/exe/saphostctrl -function ${host_oper} -dbname ${SID}_REP -
dbtype syb
Thank-­‐you	
  

More Related Content

PDF
SAP LVM Custom Operations
PDF
SAP Host Agent x509 authentication
PDF
SAP LVM Post Copy Automation Integration
PDF
SAP LVM Custom Instances
PDF
SAP LVM Integration with SAP BPA
PDF
SAP Post Copy Automation
PDF
SAP ASE Migration Lessons Learned
PDF
Config Management Camp 2015 - How to Deploy CFEngine in the Open Internet
SAP LVM Custom Operations
SAP Host Agent x509 authentication
SAP LVM Post Copy Automation Integration
SAP LVM Custom Instances
SAP LVM Integration with SAP BPA
SAP Post Copy Automation
SAP ASE Migration Lessons Learned
Config Management Camp 2015 - How to Deploy CFEngine in the Open Internet

What's hot (16)

PPTX
Run tests at scale with on-demand Selenium Grid using AWS Fargate
PPTX
Database and Public Endpoints redundancy on Azure
PDF
Cfg Mgmtcamp 2015 - Releases
ODP
20110701 zsc2011-advanced proxying-formatted
PDF
Upgrading or migrating to a higher AEM version - Planning and process
PDF
Aem offline content
PPTX
Sp automation with dsc
PDF
Installation of EM 12c
PPT
V Mwarev Storage Intregration
PPTX
Caching strategies with lucee
PPTX
Travis Wright - PS WF SMA SCSM SP
PPTX
Lucee writing your own debugging template
PPTX
Lucee writing your own debugging template
PDF
Managing your exchange architecture
PDF
Aligning to AEMs Release Cycle
PPTX
Configuration / Patching of EM 12c
Run tests at scale with on-demand Selenium Grid using AWS Fargate
Database and Public Endpoints redundancy on Azure
Cfg Mgmtcamp 2015 - Releases
20110701 zsc2011-advanced proxying-formatted
Upgrading or migrating to a higher AEM version - Planning and process
Aem offline content
Sp automation with dsc
Installation of EM 12c
V Mwarev Storage Intregration
Caching strategies with lucee
Travis Wright - PS WF SMA SCSM SP
Lucee writing your own debugging template
Lucee writing your own debugging template
Managing your exchange architecture
Aligning to AEMs Release Cycle
Configuration / Patching of EM 12c
Ad

More from Gary Jackson MBCS (20)

PDF
SAP ASCS on Kubernetes - A Proposal
PDF
SAP on Azure Web Dispatcher High Availability
PDF
Office 365 SaaS Mail Integration with SAP on Azure
PDF
OpenText Archive Server on Azure
PDF
SAP OS/DB Migration using Azure Storage Account
PDF
Principal Propagation with SAP Cloud Platform
PDF
SAP HANA System Replication (HSR) versus SAP Replication Server (SRS)
PDF
High Availability of SAP ASCS in Microsoft Azure
PDF
Azure Custom Backup Solution for SAP NetWeaver
PDF
SAP Adaptive Computing Design
PDF
SAP LaMa Cloud Manager Azure
PDF
SAP Host Agent x509 authentication
PDF
SAP LVM Integration with SAP BPA
PDF
SAP LVM Post Copy Automation Integration
PDF
SAP LVM Customer Operations
PDF
SAP Router Installation with SNC
PDF
SAP ASE Migration Lessons Learned
PDF
SAP Rolling Kernel Switch RKS
PDF
SAP Post Copy Automation
PDF
SAP Web Dispatcher - Best Bits
SAP ASCS on Kubernetes - A Proposal
SAP on Azure Web Dispatcher High Availability
Office 365 SaaS Mail Integration with SAP on Azure
OpenText Archive Server on Azure
SAP OS/DB Migration using Azure Storage Account
Principal Propagation with SAP Cloud Platform
SAP HANA System Replication (HSR) versus SAP Replication Server (SRS)
High Availability of SAP ASCS in Microsoft Azure
Azure Custom Backup Solution for SAP NetWeaver
SAP Adaptive Computing Design
SAP LaMa Cloud Manager Azure
SAP Host Agent x509 authentication
SAP LVM Integration with SAP BPA
SAP LVM Post Copy Automation Integration
SAP LVM Customer Operations
SAP Router Installation with SNC
SAP ASE Migration Lessons Learned
SAP Rolling Kernel Switch RKS
SAP Post Copy Automation
SAP Web Dispatcher - Best Bits
Ad

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation theory and applications.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Cloud computing and distributed systems.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MIND Revenue Release Quarter 2 2025 Press Release
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
sap open course for s4hana steps from ECC to s4
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation theory and applications.pdf
A comparative analysis of optical character recognition models for extracting...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Machine learning based COVID-19 study performance prediction
Cloud computing and distributed systems.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
“AI and Expert System Decision Support & Business Intelligence Systems”
Reach Out and Touch Someone: Haptics and Empathic Computing

SAP LVM Customer Instances

  • 1. SAP  LVM  Custom  Instances  
  • 2. •  This  is  the  first  in  a  series  of  presenta/ons  dedicated  to  SAP   Landscape  Virtualiza/on  Management  (LVM) •  This  document  provides  a  quick  overview  of  how  you  can   customize  LVM  to  operate  custom  instances •  This  document  describes  how  this  can  be  achieved  in  a  UNIX   environment  but  can  be  easily  adapted  for  the  Windows   plaKorm •  The  document  is  aimed  at  system  administrators  responsible   for  configuring  and  opera/ng  SAP  LVM Introduc5on  
  • 3. Overview   •  SAP  LVM  can  manage  SAP  instances  and  databases  using  the   SAP  Host  Agent •  SAP  LVM  can  be  extended  to  manage  custom  instances  such  as   SAP  Replica/on  Server  (SRS)  via  the  SAP  Host  Agent •  Custom  instances  are  managed  using  SAP  Host  Agent  registered   scripts
  • 4. Generic  Opera5ons   •  For  each  custom  instance  type  that  you  want  to  manage  within   SAP  LVM  you  create  a  set  of  generic  opera/ons  as  follows: Ø  Detect Ø  Monitor Ø  Start/Stop Ø  Validate Ø  ATach/Detach Ø  Getproper/es
  • 5. Generic  Opera5on  Scripts   •  The  generic  opera/ons  are  defined  in  configura/on  files  stored  in  the   exe/pera/ons.d  subdirectory  of  the  host  agent  file  system  on  the   managed  host •  Each  generic  opera/on  configura/on  file  must  use  the  following   naming  conven/on o  Detect  –  acc_<custominstance-­‐type>_list o  Monitor  –  acc_<custominstance-­‐type>_monitor o  Start/Stop  –  acc_<custominstance-­‐type>_start/stop o  Validate  –  acc_<custominstance-­‐type>_validate o  ATach/Detach  –  acc_<custominstance-­‐type>_aTach/detach o  Getproper/es  –  acc_<custominstance-­‐type>_getproper/es •  To  operate  a  custom  instance  the  minimum  requirement  is  to   configure  the  detect,  monitor  and  start/stop  opera/ons
  • 6. Example  for  SRS  -­‐  Overview   •  Each  configura/on  file  should  reference  an  opera/ng  system  script  that   performs  the  corresponding  opera/on •  Posi/ve  responses  are  reported  to  SAP  LVM  by  echoing  a  string  star/ng  with   [RESULT] •  Nega/ve  responses  are  reported  to  SAP  LVM  by  echoing  a  string  star/ng   with  [ERROR] •  Responses  returned  by  the  opera/ng  system  scripts  are  visible  in  the  SAP   LVM  log •  For  this  example  we  will  configure  the  following  files: 1  Detect  –  acc_SRS_list.conf 2  Monitor  –  acc_SRS_monitor.conf 3  Start  –  acc_SRS_start.conf 4  Stop  –  acc_SRS_stp.conf
  • 7. Example  for  SRS  -­‐  Configura5on   File   Content   acc_SRS_list.conf Name:  acc_SRS_list   Command:  /sap/Scripts/Custom_Instance_SRS_Detect.ksh   Workdir:  $[DIR_HOME:#sapparam]   Username:  sapadm   ResultConverter:  hook acc_SRS_monitor.conf Name:  acc_SRS_monitor   Command:  /sap/Scripts/Custom_Instance_SRS_Monitor.ksh   Workdir:  $[DIR_HOME:#sapparam]   Username:  sapadm   ResultConverter:  flat acc_SRS_start.conf Name:  acc_SRS_start   Command:  /sap/Scripts/Custom_Instance_SRS_Operate.ksh  START   Workdir:  $[DIR_HOME:#sapparam]   Username:  sapadm   ResultConverter:  hook acc_SRS_stop.conf Name:  acc_SRS_stop   Command:  /sap/Scripts/Custom_Instance_SRS_Operate.ksh  STOP   Workdir:  $[DIR_HOME:#sapparam]   Username:  sapadm   ResultConverter:  hook
  • 8. Example  for  SRS  -­‐  Scrip5ng   File   Sample  Coding  (perform  any  site  specific  checks  beforehand)   Custom_Instance_SRS_Detect.ksh   echo "[RESULT]: SAP Replication Server host detected” echo "service_name="${SID}"_REP;service_caption=SAP Replication Server;system_sid="${SID} Custom_Instance_SRS_Monitor.ksh   /usr/sap/hostctrl/exe/saphostctrl -function GetDatabaseStatus -dbname ${SID}_REP -dbtype syb >> /tmp/log STATUS_DB=`grep "Database Status" /tmp/log | awk '{print $3}'` STATUS_RS=`grep "Replication" /tmp/log | awk '{print $10}'` STATUS_DR=`grep "Agent" /tmp/log | awk '{print $10}'` echo "service_name="${SID}"_REP;service_status="${STATUS_DB} echo "process_name=DRA;process_description=DR Agent;process_status="${STATUS_DR} echo "process_name=SRS;process_description=Replication Server;process_status="$ {STATUS_RS} Custom_Instance_SRS_Operate.ksh OPERATION=$1 case $OPERATION in START) echo "[RESULT]: Start operation request detected" host_oper="StartDatabase";; STOP) echo "[RESULT]: Stop operation request detected" host_oper="StopDatabase";; esac /usr/sap/hostctrl/exe/saphostctrl -function ${host_oper} -dbname ${SID}_REP - dbtype syb