rblog

Splunkd


Splunkd: Stopped
Splunkd: Stopped

Splunk> Be an IT superhero. Go home early.

Checking prerequisites...
        Checking http port [8000]: open
        Checking mgmt port [8089]: open
        .....

Reinstalling the IBM ECM System Monitor agent fails

Has just recently upgraded to IBM ECM SM FP 5.1.0.2 and today I wanted to update the configuration after the deployment done yesterday. Pretty straight forward, selected one server – did the needed – and then Install and configure. All files transferred to the server, but when running setup.bat it failed

Executing d:\IBM\ECMSM_AGENT\cala\setup.bat, please wait...
..?
The system cannot find the batch label specified - JAVA_ERROR?


Got confused, tried a second time with same result, was about to create a PMR for IBM Support, but decided to try the other server. Installed without any problems. So I gave the first server a third try…installed without any errors.

Update

Rune,

this can happen if a JAVA monitor is running. To override this issue stop the CALA service for the particular monitoring agent and try again.

Cheers

Alex

Task Execution Manager – stop Cala, then install – no problem.

How to get uptime for a Windows service

Needed to know the uptime of a service on a Windows 2012 server to verify that the suggested solution for restarting all Splunk Universial Forwarders did work, see answers.splunk.com/../how-can-i-restart-all-my-forwarders.

Solution found here /blogs.technet.com/…/how-can-i-get-the-uptime-of-a-service, did make some minor adjustments to the vbscript as shown below.

strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colServices = objWMIService.ExecQuery _
    ("Select * From Win32_Service WHERE displayname = 'SplunkForwarder'")
 
For Each objService in colServices

    intProcessID = objService.ProcessID

    Set colProcesses = objWMIService.ExecQuery _
        ("Select * From Win32_Process Where ProcessID = " & intProcessID)

    For Each objProcess in colProcesses
        Wscript.Echo objService.Name + "/" + objProcess.Name + " " + objProcess.CreationDate
    Next
Next

Running it from the Powershell prompt like this PS D:\Temp> cscript.exe .\uptime.vbs

The Mini Bottle Gallery

Yesterday at a work seminar held at the Mini Bottle Gallery. Interesting topics, and also fun afterwards to spend some time wandering around in the gallery.

The brothel theme room. As we where told, Nevada being the only state in the U.S where brothels are allowed, each place having its own mini bottle (seems to be a fact http://www.figuralminibottles.net/dug%20nevada/dug%20nevada.shtml)

And then the farmer theme, a John Deere and an International

Using grep to match lines not containing a word

My case was: Match all lines with key purgepolicy, but not containing the word Entirepool


purgePolicy=EntirePool
purgePolicy=FailingConnectionOnly

First I tried to use the ! operator in the regex, but that only causes the error

bash: !": event not found

Solution was to first find all lines with purgepolicy then pipe the result and exclude all results with EntirePool

grep "purgePolicy=" myfile.props | grep -v "EntirePool"

Solution found at http://www.thegeekstuff.com/2011/10/grep-or-and-not-operators/

A good day for regex

^\b(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|-)\s(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b|-)\s(\[.*\])\s"(\w{3,})\s([^.+].+(?=\sHTTP))\s([^\s]+)\s(\d{3})\s(\d+|-)\s(.)\s(\d.)


Extracting a custom Apache log file format. Test it at http://rubular.com/ using

99.99.99.999 88.88.88.88 [12/Jan/2014:09:04:06 +0100] "HEAD /blog/index.php?blog=6 HTTP/1.1" 200 - + 0 myserver.mydomain.local

Blog upgraded

Some advantages of having children waking me up early in the morning, I get to do stuff while they are watching tv. I have now applied the latest patch for B2Evolution. All done in less than ten minutes, download the patch and upload the changed files, smooth!

Hjem