Using LoadRunner / Performance Center to kill a rogue process

I recently saw a question in a discussion forum for LoadRunner and after replying with a potential solution for a friend of mine, I thought that I’d share my solution here as well. My friend was testing using a Citrix client and when the script failed, the Citrix client was left running. This meant that subsequent test iterations would all fail as well.

Testers using other thick clients such as SAPGUI, RDP, TruClient (using Firefox or Chrome), QTP or UFT may also face this issue.

One way to resolve the problem of orphaned process such as this would be to use a command line function to kill the offending process when an error is detected. In the example below, the script kills any instance of the “calc.exe” (calculator) process. You should replace “calc.exe” with the name of the executable / rogue process.

 

 

 

 

 

N.B. You need to be extremely careful with this code (for obvious reasons).

Monitoring Ubuntu Linux from LoadRunner (RSTAT)

Over the years I’ve used RSTAT to monitor the performance of Linux servers during performance tests many times. Historically I’ve asked Linux admins to enable RSTAT for me but over the last year or two I’ve incorporated various Linux machines into my test and demo environment so I’ve had to do this myself.

I’m primarily a Microsoft specialist so I always seem to rely on Google searches and some trial and error to resolve problems that I encounter with Linux and this weekend was no exception. I spotted a FaceBook post from Scott Moore describing problems that he was having with LoadRunner and RSTAT so I decided to see if I could help him.

2016-11-15-08_16_07-scott-moore

I installed RSTAT on my Ubuntu test machine at home and immediately saw the dreaded error message “Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification).”

Whatever I tried, I could’t get RSTAT to start. After some ‘Googling’, I found a number of posts in various places which helped me to resolve this problem.

A post on StackExchange (related to NFS issues) told me that rpcbind may have a dependency on a package called nfs-common. I installed this “just in case”. The same post told me that to start STATD (which I think is related to RSTAT) automatically at boot, I needed to add “NEED_STATD=yes” to the file “/etc/default/nfs-common”.

A  post on GadgetWiz.com told me that I should edit my /etc/hosts.allow file to ensure that the local host could make rstatd requests.

After restarting my Ubuntu PC, I checked that RSTATD was running using the commands “rsysinfo localhost” and “rup localhost”. I was pleased to see that after making these changes, it was possible to monitor my Ubuntu machine using LoadRunner.

 

lr_ubuntu2

I repeated my test on a new Ubuntu 16.04 LTS machine which I monitored using LoadRunner 12.53. A list of the commands that I used is below:

Install rstatd and related components:

sudo apt-get install rstatd rstat-client nfs-common

Add a line to /etc/hosts.allow to allow certain hosts to make rstatd requests:

rpc.rstatd: localhost

Added a line to /etc/default/nfs-common to start STATD automatically:

NEED_STATD=yes

These commands confirm that RSTATD is running:

rpcinfo -p localhost 
rsysinfo localhost
rup localhost

Proposed HPE Software & Micro Focus Merger

I’m the current President of Vivit Worldwide, the HPE Software user group and I’ve obviously heard about the recent proposed merger of HPE Software and Micro Focus.

I recently wrote to Vivit members sharing some publicly available information about the HPE Software / Micro Focus announcements as well as my opinions on the proposed merger. Here is a copy of the note that I sent to Vivit members.


Richard Bishop

Most members of Vivit will by now have heard Meg Whitman’s major announcement from her quarterly market update earlier this month.

Speculation about a potential “sell off” of the HPE software business to established software businesses or technology-focused venture capitalists was rife in the weeks leading up to the merger announcement.

I was initially surprised to hear that Micro Focus was the company in negotiations with HPE because that name wasn’t amongst the many rumours that I heard. Over 24-hours, the news wires buzzed with more and more information describing the transaction as a merger, rather than a straightforward sale. HPE shareholders will retain 50.1% of the new company through equity and several HPE execs including Robert Youngjohns and Chris Hsu are moving to Micro Focus as part of the deal. I think that this bodes well for HPE software users, this represents an ongoing collaboration, not a fire-sale.

Press Releases: HPE | Micro Focus

Many Vivit members may appreciate some background information about Micro Focus:
Micro Focus was founded in Newbury, England in 1976 and initially focused on software products based on COBOL. Micro Focus specialises in bridging the gap between modern and legacy systems, either by assisting in the migration from mainframe to newer platforms or by introducing newer concepts such as DevOps to the traditionally slow-moving world of the mainframe which remains key to many enterprises.

Over recent years Micro Focus has grown organically as well as by acquisition, notably in 2009 with the purchase of Borland and in 2014 when it acquired Attachmate. The Borland deal gave it access to the ALM marketplace and Attachmate added the Novell, NetIQ and SUSE product lines to its portfolio.

Micro Focus has a good track record of taking ownership of established software businesses and improving their profitability by simplifying business processes and strategy, consolidating similar business units and slimming down management structures. This could help to reinvigorate the HPE software business which has market-leading products, but has been in the shadow of the much larger hardware business units.

Micro Focus tends to retain the established brand names of the companies that it acquires, this is why SUSE, Borland, Novell and Attachmate brands are still in existence. Since it would be impractical to retain the name “HPE”, this may mean that brands such as Mercury Interactive, ArcSight, Vertica and Autonomy could make a comeback. (This is speculation on my part).

How will this affect the user group?
As HPE’s independent software user group, Vivit will obviously be affected by these changes. Over recent years we’ve grown significantly, gaining members at the HP and HPE Discover conferences and by running webinars to complement our traditional face-to-face meetings.

Vivit’s last “re-invention” came in 2007, when following the acquisition of the Mercury Interactive business, it was no longer appropriate to use “OpenView” as part of the name of our user group. We chose the name Vivit to represent “living IT” and it has served us well.

As a thriving community with over 30,000 members, we’re looking forward to working with Micro Focus and continuing to support our members in our three core areas:

  • Advocacy – providing customer feedback to the vendor
  • Community – providing opportunities to share best practice
  • Education – helping to educate software users to get the most from their investment

Over the coming months we’ll contact our counterparts in the Micro Focus user communities to find out whether there are any opportunities for co-operation and collaboration.

What next?
The HPE press release includes these two statements which I feel demonstrate that the future remains bright for those products that Vivit members have built their careers upon.

“As part of the transaction, HPE software assets – including Application Delivery Management, Big Data, Enterprise Security, Information Management & Governance and IT Operations Management – will join a more focused portfolio better able to serve you as part of a company that’s purely dedicated to software. We believe this is absolutely the right move for HPE, our Software business, and most importantly you, our customer.

Micro Focus’s proven track record of managing both growing and mature software assets will enable higher levels of investment in growth areas, while maintaining a stable platform for mission-critical software products. Together, HPE’s software assets and Micro Focus will have global reach and strong go-to-market capability with nearly 4,000 salespeople and deep R&D resources – ensuring that our customers continue to receive best-in-class software solutions.”

Vivit has always been focused on the needs of our members. We will continue to help you get the most out of the software that runs your business throughout the transition to the new organisation. Assuming that the merger is approved by the regulators and shareholders of HPE and Micro Focus, we expect that the merger will take place in Q3 2017. Until then, we’ll do all that we can to keep you informed as other announcements are made.

Additional Sources: Computing | CNBC | Reuters | BBC