Tag: Operations Manager Windows
Configure OMW to forward all events to OMi
1- Configure OMW to forward all events to OMi a- Create Server-Flexible Management Policy — TIMETEMPLATES# noneRESPMGRCONFIGS RESPMGRCONFIG DESCRIPTION “Forward all messages to HP OMi” SECONDARYMANAGERS ACTIONALLOWMANAGERS MSGTARGETRULES MSGTARGETRULE DESCRIPTION “forward all messages rule” MSGTARGETRULECONDS MSGTARGETRULECOND DESCRIPTION “forward all messages ” MSGTARGETMANAGERS MSGTARGETMANAGER TIMETEMPLATE “$OPC_ALWAYS” OPCMGR IP 0.0.0.0 “dxb-bsm-01.mahmoudthoughts.com”— replace dxb-bsm-01.mahmoudthoughts.com with your OMi server…. Read More »
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 »
OMW: Script to Change Agent from DCE to HTTPs Part1
HP Operations manager prior to version 8, managed node are monitored through Agent uses RPC/DCE communication, which had lots of issues as it is unsecured communication and communication configuration headache for the Agent and Server through firewall In HP Operations Manager 8 and later a new Agent is introduced called HTTP agent which uses encrypted… Read More »
OMW: Enhanced HP Operations Manager 8.10 for Windows (short sessions)
Introduction | HP Upgrade to OMW 8 | HPWhat’s new with OMW 8.10 | HPDependency Mapping Automation | HPNNMi Integration | HP
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 »
OMW: Log file monitor for multiple log files
To monitor multiple files using a OMW log file monitor policy, you have to configure the policy to list those files separated by spaces. Normally in Unix-based systems if you used ls command with wildcards, the result will be the full files path and separated by spaces In Windows, dir is not delivering the same… Read More »
OMW: List log files to be monitored
In an answer to HP support forum about how to list files with certain extention to be used on OMW We have a sample directory contain may different logs, we need to monitor only files start with cisco Use dir /b /s will list the files only with their full path to optimality integrate… Read More »
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 »
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 »