PowerShell Script for TIBCO BW

PowerShell Script for TIBCO BW

Introduction

This project documents the usage of PowerShell scripts which can be used for starting and stopping Windows Services, in this particular case TIBCO ActiveMatrix BusinessWorks services which are also having a related TIBCO ActiveMatrix Adapter for SAP services service.

The scripts used for this are also maintained by this project.

Context and History

Most of us probably experienced it multiple times already…

A maintenance window is scheduled at your company and you are required to stop your specific interface related components during the maintenance window and start it once it is completed.

When doing this all manual, it will be a time consuming activity, so we decided to spent some time on writing a PowerShell script which does the work for you and will save you a lot of time and effort for future maintenance windows.

Scripts

2 scripts are maintained in the project :

  • SAP_BW_Manual_Stop.ps1
  • SAP_BW_Automatic_Start.ps1

In both scripts the code for grabbing the correct services is identical.

Below explanation of the code based on one example interface.

PowerShell Script for TIBCO BW

In the screenshot above you can see that there is a specific naming convention in both the TIBCO ActiveMatrix BusinessWorks services and related TIBCO ActiveMatrix Adapter for SAP. The identifier in this case is the value IS0026, this is called the InterfaceID.

The below code snippet will find all services for TIBCO ActiveMatrix Adapter for SAP and deduct the InterfacesID (ex : IS0026) from it.

Once the unique list of InterfaceIDs is captured this will be used to find the correct TIBCO ActiveMatrix BusinessWorks services and to perform the needed operations in it.

Note : In the example setup it is sufficient to only modify the TIBCO ActiveMatrix BusinessWorks service, the TIBCO ActiveMatrix Adapter for SAP service will automatically follow as this is managed with TIBCO HAWK rules.

Second part of the script performs the operations on the TIBCO ActiveMatrix BusinessWorks services, this is different in the 2 scripts:

  • SAP_BW_Manual_Stop.ps1
  • SAP_BW_Automatic_Start.ps1

To run these PowerShell scripts you can create a bat file (.bat) with the below command.

Author: Glenn Collier

Samuel Vandecasteele

Samuel Vandecasteele

Curious to know more about this topic?

Working at i8c

i8c is a system integrator that strives for an informal atmosphere between its employees, who have an average age of approx 30 years old. We invest a lot of effort in the professional development of each individual, through a direct connection between the consultants and the management (no multiple layers of middle management). We are based in Kontich, near Antwerp, but our customers are mainly located in the triangle Ghent-Antwerp-Brussels and belong to the top 500 companies in Belgium (Securex, Electrabel, UCB, etc…).

Quality Assurance

i8c is committed to delivering quality services and providing customer satisfaction. That’s why we invested in the introduction of a Quality Management System, which resulted in our ISO9001:2000 certification. This guarantees that we will meet your expectations, as a reliable, efficient and mature partner for your SOA & integration projects.

i8c - ISO9001-2015

Also worth reading

Integrating with TIBCO CLOUD

Our experts Glenn, Jason, Jurgen, and Kevin dedicated an i8c FastTrack Day to examining the TIBCO iPaaS offering. Check out their Research & Development day report to learn what they uncovered. 👇  TIBCO CLOUD™ The TIBCO Cloud™ Integration enterprise integration platform-as-a-service (iPaaS) provides self-service integration

Read More »

Meet our Integration Specialist – Alexandra

Alexandra worked in tech for 15 years before joining i8c. With lots of experience in API management and Java development, we’re thrilled to add yet another expert to our i8c community! It’s pretty clear why we want to work with Alexandra, so let’s take a

Read More »