Sunday, May 28, 2017

Load Testing the FTP Site with Open Source Apache Jmeter

Sometimes we might have to load test your website/ ftp site for reliability or to measure performance. The top listed open-sourced tools are:
  • The Grinder
  • Gatling
  • Tsung
  • JMeter
(item list from bazemeter.com)
Out of the top 4, I'll use Apache JMeter which has a good reputation and is available for windows platform. A lot of options are available for beginner to advanced testers. Java will be needed prior to Jmeter installation. Test if you machine already has java installed in the command prompt by typing:
java -version
If not installed, download java from here.
Download Jmeter for windows from sourceforge.

Thursday, May 11, 2017

Powershell: How to Shift Time Offset of a Movie's Subtitle

I usually go through my holidays with good movies. Some of the subtitles I downloaded do not have a correct timing with the video soundtrack. And it makes me re-adjust the subtitle whenever I re-play old movies. Since I do not want to install extra software or use websites to change my file whenever I get this problem, I decided to make it work in powershell. It takes me more than expected time in writing script as I want to include running dots while changing the time offset of the file. No matter what ! You can try out the script if you want.

Sunday, May 7, 2017

Find all SNMP Settings of Windows Machine in Powershell

SNMP has a long history with Microsoft Windows. And Microsoft now said that it has been deprecated (moreover, snmp v1 or v2 is less secure than the latest snmp v3, but windows natively doesn't support version 3 till now) and recommend using CIM for managing hardware and software layers.
SNMP is deprecated. Instead, use the Common Information Model (CIM), which is supported by the WS-Management web services protocol and implemented as Windows Remote Management.
But, there might be Servers/Desktops that still use snmp v1/v2c for monitoring purpose. And, here is the powershell function to get the SNMP Security Settings by reading registry. For each SNMP service options tab, microsoft technet stated that: