|
Restarting email service with WMI |
|
|
|
|
Written by Administrator
|
|
Wednesday, 19 October 2011 21:54 |
|
On Error Resume Next
Dim arserver
Dim fieldValueList
Dim entry
Set arserver = CreateObject("BMC.ARSystem.Server")
arserver.Login "localhost", "Demo", "password"
Set fieldValueList = CreateObject("BMC.ARSystem.FieldValueList")
formName = "AR System Email Messages"
qualification = "1=1"
Set entryListFieldValues = arserver.GetListEntry(formName, qualification)
Dim i
i=0
For Each entry in entryListFieldValues
i=i+1
Next
wscript.echo i
if i > 2000 Then
strServiceName = "BMC Remedy Email Engine "
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery("Select * from Win32_Service Where Name ='" & strServiceName & "'")
For Each objService in colListOfServices
' objService.StopService()
WSCript.Sleep 15000
' objService.StartService()
Next
end if
|
|
|
Updating Record using .Net API |
|
|
|
|
Written by Administrator
|
|
Wednesday, 19 October 2011 21:52 |
|
On Error Resume Next
Dim arserver
Dim fieldValueList
Dim entry
Set arserver = CreateObject("BMC.ARSystem.Server")
arserver.Login "localhost", "Demo", "password"
Set fieldValueList = CreateObject("BMC.ARSystem.FieldValueList")
formName = "NTE:SYS-NT Process Control"
fieldValueList.Item(1000000076) = "START"
qualification = "1=1"
Set entryListFieldValues = arserver.GetListEntry(formName, qualification)
For Each entry in entryListFieldValues
entryId = entry.EntryId
arserver.SetEntry formName, entryId, fieldValueList
WScript.Echo " Entry : " & entryId
Next
|
|
Written by Administrator
|
|
Monday, 23 August 2010 02:02 |
|
While back I put this together to troubleshoot CMDB issue. It has been couple year's. Thought someone might find it useful. |
|
Read more...
|
|
Adding custom app to the Overview Console |
|
|
|
|
Written by Administrator
|
|
Saturday, 17 April 2010 05:03 |
|
Posted to ARSlist by Sabyson Fernandes We have developed a custom console which allows our users to view requests from different forms on a single table via the OOB ITSM vendor forms.
To add a new form to the overview console or any table field that points to the vendor form here is what we did. |
|
Read more...
|
|
Use of Remedy Java API in jsp pages for integration on web |
|
|
|
|
Written by Administrator
|
|
Tuesday, 03 March 2009 02:42 |
Use of Remedy Java API in jsp pages for integration on web (Amar Dadhi)
Integrating web based application with remedy is now more easier with remedy java api and remedy web service. Here we discuss only jsp page using remedy java api. Jsp page with remedy api can be called any of the other code viz., Cold Fusion, PHP etc and pass the required parameters. This will help to create modify and query remedy record. See more code sample for creating and modifying records using jsp pages. See more code sample for creating and modifying records using jsp pages.
|
|
Read more...
|
|
|
|
|
<< Start < Prev 1 2 3 4 5 Next > End >>
|
|
Page 1 of 5 |