• OMW: Script to Change Agent from DCE to HTTPs Part2

    Many administrators looking to automate the time consuming process, I had seen requests in HP support forums on how to change agent in bulk I have created the below script which utilizes Policy Management and Deployment (PMAD) API which mainly starts by set pmad = CreateObject(“PMAD.OvPmdPolicyManager”) pmad.ConnectDB We can compare the above lines by opening… Read More »

    Written by 0 Comment
  • OMW:Read Multi-lined log files

    I had seen so many questions about joining multiline log  as in OMW the Log Interceptor is parsing line by line, so if your data is scattered on different lines it can not be monitoring unless you imply a pre-processing script.   I have created the below script is to join multiple lines together but… Read More »

    Written by 0 Comment
  • OMW: Alert when files are older than 30 minutes Part 1

    1- Create the needed script This script is listing the files that are located in certain directory cscript /nologo checkolderfiles.vbs abc c:scripts list I have added two features for the script One is to display list the files which are not modified within the time specified file1.txtfile2.txtlistfiles.vbs Second is to use opcmon to with a… Read More »

    Written by 0 Comment
  • OMW: List files on folder that didn’t modified within 30 minutes Part 2

      nodeName = “.”Set dateTime = CreateObject(“WbemScripting.SWbemDateTime”)dateTime.SetVarDate( DateAdd(“n”,-30,now()))Set objWMIService = GetObject(“winmgmts:” _ & “{impersonationLevel=impersonate}!\” & nodeName & “rootcimv2”)Set colFiles = _ objWMIService.ExecQuery(“Select * From CIM_DataFile Where Drive = ‘C:’ and Path = ‘\Scripts\’ “) ‘Wscript.Echo colFiles.Count ‘echo number of filesFor Each objFile in colFiles IF objFile.LastModified < dateTime.Value Then strNewFile = objFile.FileName & “.” &… Read More »

    Written by 0 Comment
  • Check the status of OMW nodes part1

    I have create the below script to run opcragt command and check for the failure values and display the matching lines to the screen and this can be later used to write it in a log file for policy monitoring.   1: If Wscript.Arguments.Count < 1 Then 2: wscript.echo “Usage cscript checkstatus.vbs “”nodename”” ” 3:… Read More »

    Written by 0 Comment
  • Script for creating nodes in OMW

    Copy and paste the script below as createNodes.vbs If Wscript.Arguments.Count < 1 Then ‘Check that you spacified the nodes filename wscript.echo “Usage cscript createNodes.vbs “”filename”” ” wscript.echo “Ex:” wscript.echo “cscript createNodes.vbs “”c:nodelist.txt”””ElseSet args = WScript.Argumentsarg1 = WScript.Arguments.Item(0) Set CSVoFS = CreateObject(“Scripting.FileSystemObject”)nodesFile = arg1 Set file = CSVoFS.GetFile(nodesFile) Set line = file.OpenAsTextStream(1,TristateUseDefault)Do While line.AtEndOfStream <> True… Read More »

    Written by 0 Comment
  • Get Network Utilization Using VBs script

    Last week I have faced challenge in responding to HP support (ITRC) thread regarding collecting Network utilization for Operation Manger to evaluate it against threshold. Infrastructure SPI contain some policies for Monitoring network utilization but it is quite complicated (but efficient) as it has various  mathematical calculations. Any way the script I have provided was… Read More »

    Written by 0 Comment
    Uncategorized