Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
monitorizar estado tarea programada
#6
bueno, te cuento lo que he hecho:

en pandora_agent.conf añadi lo siguiente:

module_begin
module_name tareas
module_type generic_data_string
module_exec cscript "%ProgramFiles%\pandora_agent\util\tareas.vbs"
module_description Estado de las tareas
module_end



en tareas.vbs puse: (y este fichero lo puse en el directorio util)

Set objService = GetObject("winmgmts:\\" & strComputer)
Set objNewJob = objService.Get("Win32_ScheduledJob")


Set colScheduledJobs = objService.ExecQuery("SELECT * FROM Win32_ScheduledJob")
For Each objJob in colScheduledJobs
Wscript.Echo ( "Command: " & objJob.Command & vbCRLF _
  & "Days Of Week: " & objJob.DaysOfWeek & vbCRLF _
  & "Interact with Desktop: " & objJob.InteractWithDesktop & vbCRLF _
  & "Job ID: " & objJob.JobID & vbCRLF _
  & "Job Status: " & objJob.JobStatus & vbCRLF _
  & "Run Repeatedly: " & objJob.RunRepeatedly & vbCRLF _
  & "Start Time: " & objJob.StartTime )
Next


y este es el resultado que obtengo:

[Image: pandorap.jpg]

aki hay algo raro Wink
 Reply
Messages In This Thread
monitorizar estado tarea programada - by Alki - 03-30-2010, 08:52 AM
Re: monitorizar estado tarea programada - by Alki - 03-30-2010, 10:41 AM
Re: monitorizar estado tarea programada - by Alki - 03-30-2010, 04:40 PM
Re: monitorizar estado tarea programada - by Alki - 03-30-2010, 10:48 PM
Re: monitorizar estado tarea programada - by Alki - 03-31-2010, 08:06 AM


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes