<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LoadRunner TnT &#187; Unix</title>
	<atom:link href="http://www.loadrunnertnt.com/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.loadrunnertnt.com</link>
	<description>Performance Testing, LoadRunner Tips &#38; Tricks</description>
	<lastBuildDate>Mon, 08 Mar 2010 07:57:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Local Unix monitoring made possible?</title>
		<link>http://www.loadrunnertnt.com/tools/local-unix-monitoring-made-possible/</link>
		<comments>http://www.loadrunnertnt.com/tools/local-unix-monitoring-made-possible/#comments</comments>
		<pubDate>Sat, 24 May 2008 08:57:35 +0000</pubDate>
		<dc:creator>TnT Admin</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.loadrunnertnt.com/?p=381</guid>
		<description><![CDATA[Have you ever come across an attempt to monitor Unix resources with just only rstatd? Where there are no options available to use SiteScope via telnet or SSH? Or simply because of the time factor that you must monitor the Unix resources in the load test conducted the following day?
Check out this script from Bad [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever come across an attempt to monitor Unix resources with just only <em>rstatd</em>? Where there are no options available to use SiteScope via <em>telnet</em> or SSH? Or simply because of the time factor that you must monitor the Unix resources in the load test conducted the following day?<span id="more-381"></span></p>
<p>Check out this script from <a title="Bad Penguin.co.uk" href="http://www.badpenguin.co.uk/" target="_blank">Bad Penguin.co.uk</a>. This script at it&#8217;s latest version when placed in a Unix machine, collects performance statistics at desired intervals and convert them into CSV report which can be imported to a spreadsheet, database and LoadRunner Analysis to perform analyzing work. It uses standard unix utilities (<em>iostat, vmstat, netstat</em> and<em> uptime</em>) and has been tested on Linux and Solaris systems.  The usage of <em>vmstat, netstat, iostat</em> and <em>uptime</em> is far more comprehensive than those used by <em>rstatd</em>.</p>
<p>Click on the link below to get a copy of the script!</p>
<p><a title="Download Unix Performance Monitor.sh" href="http://www.badpenguin.co.uk/main/content/view/43/35/" target="_blank">performanceMonitor.sh</a></p>
<p>The script is used in two ways. One to generate statistics and two to convert to a CSV format. The below describes the command to execute.</p>
<div>
<table style="height: 40px;" border="0" width="559">
<tbody>
<tr>
<td>Generate statistics</td>
<td><em> $ performanceMonitor.sh run</em></td>
</tr>
<tr>
<td>Convert to CSV format</td>
<td><em>$ performanceMonitor.sh csv YYYYMMDD</em></td>
</tr>
</tbody>
</table>
</div>
<div>Before you use the script to collect statistics, you will need to configure the interval between each collection. This is to change the variable <strong>SLEEP</strong>. Set it at an acceptable level, e.g. 15 to reduce the overhead generated from the execution of the commands. When you are done with exporting out to a CSV format, you can use the Analysis import feature to import this CSV file for analysis work. We used the below settings in Analysis for import this CSV files.</div>
<div></div>
<div><strong>Fig.1: Analysis Import Settings</strong></div>
<div><strong><img class="aligncenter" title="Unix Import Settings" src="http://loadrunnertnt.com/images/unix_import_settings.JPG" alt="" width="326" height="300" /><br />
</strong></div>
<div>Take note that, after running <em>$performanceMonitor.sh run</em> on the command prompt, the script will run infinitely till it a manual break is issue.  Therefore, you may consider writing a <em>cron job</em> to enhance the monitoring scheduling in the load test.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.loadrunnertnt.com/tools/local-unix-monitoring-made-possible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to monitor 99.99% uptime for a Unix box?</title>
		<link>http://www.loadrunnertnt.com/how-tos/how-to-monitor-99-99-uptime-for-a-unix-box/</link>
		<comments>http://www.loadrunnertnt.com/how-tos/how-to-monitor-99-99-uptime-for-a-unix-box/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 03:12:16 +0000</pubDate>
		<dc:creator>TnT Admin</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[up-time]]></category>

		<guid isPermaLink="false">http://www.loadrunnertnt.com/?p=59</guid>
		<description><![CDATA[Actually, this was a question related to Solaris boxes instead of Unix brought up in the Yahoo LoadRunner Group. We have to differ the purpose of the monitoring to two aspects.  (a) Are you monitoring during a load test or (b) are you monitoring in a production environment?
In respond to the questions, I’ve came out [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><img class="alignleft" title="Unix" src="http://loadrunnertnt.com/images/itm-unix30logo.gif" alt="" width="231" height="76" />Actually, this was a question related to <span style="font-weight: bold;">Solaris</span> boxes instead of Unix brought up in the <a href="http://tech.groups.yahoo.com/group/LoadRunner" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">Yahoo LoadRunner Group</span></span></a>. We have to differ the purpose of the monitoring to two aspects.  (a) Are you monitoring during a load test or (b) are you monitoring in a production environment?</p>
<p>In respond to the questions, I’ve came out with three suggestions:<span id="more-59"></span></p>
<ul>1. Use a single <span style="font-weight: bold;">Vuser</span> to monitor the <span style="font-weight: bold;">Unix System Resource</span> for the duration.<br />
2. Use <span style="font-weight: bold;">BAC (Business Availabilty Center)</span> to monitor.<br />
3. Use <span style="font-weight: bold;">“uptime”</span> command in the Unix box and output to a log file periodically.</ul>
<p>Let’s discussed in details each of the methods details.</p>
<p><span style="text-decoration: underline;">[1] Use a single Vuser to monitor the Unix system resource for the duration.</span></p>
<p>This is a method to circumvent the conventional monitoring technique. You will get your graphs from Unix, however, take note that this is not all perfect. When <span style="font-weight: bold;">LoadRunner</span> completes a <span style="font-weight: bold;">scenario execution</span> (load test), it collates the results from the <span style="font-weight: bold;">Load Generators</span> (LG in short) back to the Controller at the end of the test. Say we are monitoring for 7 days, the monitoring results of these 7 days will be sent back to the Controller which may fail due to (1) the size of data being transmitted over the <span style="font-weight: bold;">bandwidth</span> and (2) the amount of resources needed to process the<span style="font-weight: bold;"> monitoring</span> results sent back, inadvertently causing it to crash or hang.</p>
<p><span style="text-decoration: underline;">[2] Use BAC to monitor</span></p>
<p>BAC and <span style="font-weight: bold;">SiteScope</span>, both from <span style="font-weight: bold;">Mercury/HP</span> will be able to achieve that. The main purpose of the above products is to monitor in a <span style="font-weight: bold;">production environment</span> and send reports or alerts depending on the configuration. There is also other monitoring products out in the market but it’s up the organization to decide what is best for them.</p>
<p>Take note that the monitoring principle for <span style="font-weight: bold;">LoadRunner</span> and BAC/SiteScope is the same (BAC is tapping to capabilities of SiteScope monitoring). I’ve discussed that in an article,<a title="How does the monitoring work in LoadRunner?" href="http://www.loadrunnertnt.com/?p=301" target="_blank">&#8220;How does the monitoring work in LoadRunner?&#8221;</a> previously, which you may want to explore.</p>
<p><span style="text-decoration: underline;">[3] Use “uptime” command in the Unix box and output to a log file periodically (Unix only)</span></p>
<p>This is by far the cheapest method as you are riding on the capabilities of your current resources. <span style="font-weight: bold;">Uptime</span> provides information about the system availability since it’s last boot up. For more information of uptime, click <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?uptime" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">here</span></span></a>. Also, refer to this <a href="http://www.december.com/unix/tutor/redirect.html" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">resource</span></span></a> for redirection output information.</p>
<p>By running a <span style="font-weight: bold;">cron job</span> periodically, example every 30 min, and redirect the output to a log file, you can trace when the system was rebooted. For more information of cron job, click <a href="http://www.adminschoice.com/docs/crontab.htm" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">here</span></span></a>. Use the following syntax in the crontab file if you are keen implementing this suggestion.</p>
<ul><strong>Example:</strong><br />
30 18 * * * uptime &gt;&gt; uptime.log</ul>
<p><!-- Additional Items for the post:Start --><!-- Additional Items for the post:End --><!-- Social Networks --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.loadrunnertnt.com/how-tos/how-to-monitor-99-99-uptime-for-a-unix-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to configure Unix System Resource monitoring</title>
		<link>http://www.loadrunnertnt.com/how-tos/57/</link>
		<comments>http://www.loadrunnertnt.com/how-tos/57/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 03:03:40 +0000</pubDate>
		<dc:creator>TnT Admin</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[LoadRunner]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.loadrunnertnt.com/?p=57</guid>
		<description><![CDATA[To monitor Unix System Resources, you will require rstatd. The rstatd daemon is a server that returns performance statistics obtained from the kernel. The rstatd daemon is normally started by the inetd daemon.
In most cases, rstatd is already configured and started from inet. Therefore, you should verify if the rstatd daemon is already running using [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="Unix" src="http://loadrunnertnt.com/images/itm-unix30logo.gif" alt="" width="231" height="76" />To monitor <strong>Unix System Resources</strong>, you will require <strong>rstatd</strong>. The rstatd <strong>daemon</strong> is a server that returns performance statistics obtained from the kernel. The rstatd daemon is normally started by the <strong>inetd</strong> daemon.</p>
<p>In most cases, rstatd is already configured and started from inet. Therefore, you should verify if the rstatd daemon is already running using <strong>rup</strong> command. The command should report various machine statistics, including rstatd configuration. Run the following command to view the machine statistics:<span id="more-57"></span></p>
<p><strong>rup host</strong></p>
<p>If you fail to retrieve and statistics, then you may need to proceed to the next step of configuring the rstatd daemon.</p>
<p>To configure the rstatd daemon:</p>
<ul>1. Run the command: <strong>su root</strong></p>
<p>2. Go to <strong>/etc/inetd.conf</strong> and look for the rstatd row (it begins with the word rstatd). If it is commented out (with a #), remove the comment directive, and save the file.</p>
<p>3. From the command line, run:</p>
<p><em>kill -1 inet_pid</em></p>
<p>where <strong>inet_pid</strong> is the <strong>pid</strong> of the inetd process. This instructs the inetd to rescan the /etc/inetd.conf file and register all daemons which are uncommented, including the rstatd daemon.</p>
<p>4. Run <strong>rup</strong> again.</ul>
<p>If the command still does not indicate that the rstatd daemon is configured, contact your system administrator. (Source: LoadRunner Monitor Reference) .</p>
<p>Even though <strong>rstatd</strong> is easy to configure (by uncommenting the rstatd in /<strong>etc/inetd.conf</strong>). It poses a challenge in terms of port clearance for load test. This is due to the dynamic ports that is been assigned everytime rstatd is been started.</p>
<p>That’s to say, if inetd is been rstarted or the server is been restarted, the port for rstatd will change. And if your client is one that’s particular about specified port clearance, you will get a headache out of it.</p>
<p>There are couple of alternatives that I can proposed briefly here.</p>
<ol>
<li>Monitor locally using a script that collects statistics using <strong>vmstat</strong> then import into Analysis graph.</li>
<li>Use <strong>SiteScope</strong> to monitor via <strong>SSH</strong> (which also offers more security and flexibility.</li>
</ol>
<p>Hope you find the steps simple and things to note for configuring <strong>Unix System Resource</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.loadrunnertnt.com/how-tos/57/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
