Requirement:-
I have to write code to monitor all the running applications on the server and give their name as output if it's down.
Research:-
During my research I found that:-
There are several tools like azure and monito that themselves monitor all the applications but this does not match our requirements.
We can write code that can check all the running services on the local desktop or the server and from there we can also check the running status of the required applications and if the status is stopped or sleep then we can easily notify.
We can send requests to the deployed URL at some regular interval and if we get a response status rather than 200 then we can notify the user as something is wrong and this particular website is not working.
If anyone can through some light on this and can suggest some more methods or references from their experience, it will be highly appreciated.
Greetings for the day!
I am currently facing challenges to induce higher load using Jmeter Distributed mechanism which I configured in AWS windows machines.
My machines are throwing Response code:Non HTTP response code: java.net.BindException
Response message:Non HTTP response message: Address already in use: connect exceptions.
I am trying to calculate the foot print for the slave machines so that I can confidently communicate on how much load they can handle.
I am using a windows 2019 server, with a 16 GB RAM.
While surfing through internet for answers I got the below link which says to change the registry settings to optimally use the ports.
https://www.baselogic.com/2011/11/23/solved-java-net-bindexception-address-use-connect-issue-windows/
I am looking for suggestions from your end to execute more threads seamlessly (especially spikes using free from arrival thread groups) from the available resources I am currently having.
Please let me know if any further information is required from my end which can help me get better solutions.
Many Thanks for your support.
Regards,
Vijay
As per Adjusting TCP Settings for Heavy Load on Windows article you should:
create a DWORD value named TcpTimedWaitDelay with the value of 60 under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\TCPIP\Parameters
create a DWORD value named MaxUserPort with the value of 32768 under the same key
Make sure to follow JMeter Best Practices
Make sure to monitor the networking and other performance counters of the Windows machine using either built-in Windows perfmon or via JMeter PerfMon Plugin
I want to develop a script which will check the state (running or not) of an Essbase application (say, every 15 mins.).
If the Essbase application is not running then it will send an alert via email to user or application admin .
There isn't anything built in to Essbase that is going to do this for you. You really need to look at this in terms of two different things you are trying to accomplish:
How to tell if an Essbase cube is running
How to send an email from a batch/scheduled process
As for item 1, there are at least a couple of ways to go. I believe you could use MaxL (the automation language for Essbase) to determine if an application/cube is running. For example, you could use MaxL to check the status of the cube, output the script to a text file, and then scan that text file for the proper line/indicator that the cube is running or not. This may technically work but it wouldn't be my preferred option. You would also have to develop this so that in case the server itself isn't running, it triggers the specific action you want.
Another way to go (and this is my preferred option) is to use the Essbase Java API to determine if the application/cube is running. Although you may not be familiar with Java, this to me is the cleanest way to implement this functionality. You would use the API to connect to the server, and if the connection to the server was successful you could then check the status of the application/cube. In case the cube or server is down/stopped, you can do the appropriate action. You could also send the email from Java itself, using one of the Java email libraries.
You can also send emails from the command-line. It varies in specifics between Unix/Windows but in general if you can specify an SMTP server, email address, subject, body, and other parameters, it works just fine. There are freely available email clients I have seen and used that work completely on the command-line and handle this use case fairly well.
Once everything is all developed and tested it's just a simple matter of scheduling it to run every 15 minutes or however often you want to run it.
As I mentioned, MaxL is the scripting language for Essbase. There is a program on the Essbase server that interprets MaxL scripts. The MaxL language is documented extensively in the EPM documentation. As a very simple example, you could write a MaxL script like the following:
login "admin" "password" on "localhost";
display application "Sample";
If you are running on a Linux/Unix server then you might then run the script as follows:
startMaxl.sh your_script.msh
This script would then output a text-based grid of different application properties to the console.
One of the columns that the display application command will display is related to the application status, if the app is loaded/started or whatever. Theoretically to get this solution to work you'd need to send MaxL's script output to a file and then scan the file for the proper text and decide if action needs to be taken. While this approach can work, it comes with risks. That's why I think Java (the preferred API for Essbase) is much better suited to solving this.
I am currently trying to get a SoftHSM going (on a Windows platform). The goal is establish a communication channel between a client and the HSM server so that some data can be encrypted on the server side and be sent back to the calling client.
I download one from this site: https://www.opendnssec.org/download/
Furthermore, I followed the documentation as stated on this page: https://wiki.opendnssec.org/display/SoftHSMDOCS/SoftHSM+Documentation+Home - but besides from creating a couple of slots, I haven't managed to get anything right.
I ran the following command to create the slot(s):
softhsm --init-token --slot 0 --label "My token 1"
I am not sure how to go from here, I cannot find any useful information / tutorials about the topic. I guess that I should start small and try and create a server application that communicates to the SoftHSM ... I apologize for all the n00b questions!!
If the installation was successful
in /usr/local/bin/softshm there should be the file libsofthsm.so.
This file contains the implementation of crytoki api -
and you can use it like- so/dll that comes with hardware of pkcs#11
At my workplace, we have lab machines that we use to do our testing.
The standard procedure to reserve a machine for testing was to walk around the office to make sure that no one was using the machine.
This is highly inefficient and time consuming.
At first, I set up a web page where people could reserve the lab machine but nobody was keeping the page updated so that turned up to be useless.
I finally found a solution using Microsoft log parser and wanted to share it to the stack overflow community.
It is a batch file that runs on the machine so the user can identify the last users that use the machine and easily IM them to ask if the machine is free.
Is there a better solution to do this?
Use the built-in command qwinsta (Query Win Station) to figure out what sessions (including console) are active or inactive (disconnected) and then act on the given information (creds to krusty.ar btw for linking this already).
If you feel people are abusing the machine in question, refer to rwinsta to nuke their sessions into oblivion...
You will need to install the Microsoft Log Parser
Then create the following 2 files
TSLoginsDetails.sql
SELECT
timegenerated,
EXTRACT_TOKEN(Strings,1,'|') AS Domain,
EXTRACT_TOKEN(Strings,0,'|') AS User,
EXTRACT_TOKEN(Strings,3,'|') AS SessionName,
EXTRACT_TOKEN(Strings,4,'|') AS ClientName,
EXTRACT_TOKEN(Strings,5,'|') AS ClientAddress,
EventID
FROM Security
WHERE EventID=682
ORDER BY timegenerated DESC
TSLogins.bat
echo off
cls
c:
cd "c:\Program Files\Log Parser 2.2\"
logparser.exe file:TSLoginsDetails.sql -o:DATAGRID
Now by placing this batch file on the desktop, the user can see who were the last people to login and contact them by IM to verify if they are done.
How about posting the information from the log file to the website that tells who is currently using the machine as well.
Check and notify when they log in.
Updated the "who is using the machine" page you made prior.
Run a AT job that checks every couple of hours who is on it.
Totally out of the box:
You can install the Software Testing Automation Framework (STAF) on your servers and desktops to manage your tests. It's written in Java, so you can use it on Windows and Unix/Linux desktops and servers.
Using STAF, you can create a resource pool of test servers on which you conduct tests, then write STAX jobs (STAX is a STAF execution framework) to conduct the tests. The job can grab the first available server from the resource pool, run the test, monitor the test status, log results, notify the submitter, then release the server back into the pool when done. If you have multiple people submitting jobs for tests, STAF will manage the queue of requests and satisfy them as they came in. Users can either monitor the job from their desktop, or you can set up email alerts to notify them when the test is complete.
I'm not sure if I understand you, but there are a set of command line tools to deal with terminal server sessions, and there's also a Windows API to do the same if you need to do this from a program.
Since it sounds like you're a microsoft shop, you can set up the machines as resources in outlook/exchange and reserve them that way.