Ayuda de vídeo de Screencast
Búsqueda: vídeos de ayuda Close Back
to help

Check disk space and look for process execution on Windows server in the domain

Created: 24 Mayo 2012 | Updated: 14 Junio 2012 | 9 comments
el cuadro de los MDu1509
0 0 Votos
Login to vote
Se ha solucionado este problema. Vea la solución.

Hello,

I need to check free disk space and to look for a process execution on a production Windows server. Quite easy using "File System Full" and "Is Process Running" on my current WF server but how to target another WS in the domain.

I don't see any possibility to address any external server 

Comentarios ComentariosIr al último comentario

el cuadro de los Nonos

If you are managing your computers with a Notification Server, then you would have to check the reports to get your information. (Reports can be called from the ASDK)

Other possibility with a Notification Server would be to create custom inventory which will fill up dataclasses and you will just have to query the dataclasses to get the information or post your generated XML to a specific URL which would be on the Workflow Server.

With only the Workflow, there is a possibility to run some scripts)

The best options are the first ones, I wouldn't recommend the third option as for security reasons this would be a bit risky if you're not used to develop scripts with security embedded.

Regards,

Nonos

 

0
Login to vote
  • Acciones
el cuadro de los MDu1509

Thanks for this answer but we don't have and as far as I know we don't plan to acquire Notification Server solution.

The solution consequently should entirely based upon Workflow components (your third option).

Could you develop a little bit more this third point: do you mean some "Execute batch" invoking DOS commands ?

Thansd in advance fot your response

0
Login to vote
  • Acciones
el cuadro de los reecardo

You could try using the Start Process comp in the SystemUtilities library (not loaded by default). This lets you execute DOS on remote machines.

0
Login to vote
  • Acciones
el cuadro de los b3tts32

I'm curious about this myself. I thought you could deploy monitoring projects as a windows service but I'm not really sure how that works.

0
Login to vote
  • Acciones
el cuadro de los reecardo

Deploying monitoring projects as Windows services is just a publishing option under the Project properties.

0
Login to vote
  • Acciones
el cuadro de los Rob Moore

It's a bit more complicated than that. When you select Windows Service as the type you cannot directly publish it to the server. Instead you have to create an instalation .EXE and then run that on the server. After it "installs" (it really is just writing a folder in the Deploy folder but not creating the IIS virtual directory)  you have to navigate to the folder and then into the BIN direcotory and double click the Install.BAT file, this will actually compile the app and create the service.

 

In the previous version, this was done automatically when you ran the .EXE. Now it says it installs and completes, but it really does not. I'm hoping this will get fixed in the next release, I have 30 or 40 WF running as Windows Services.

 

Rob

0
Login to vote
  • Acciones
el cuadro de los Nonos

Regarding the component "IsProcessRunning" (from "System Utilities" library, thanks Reecardo), you have a tab "Remote Connect", this will give you the information you require regarding the process on the distant server.

Regarding the disk free space, you could use a WMI query to get this information, there is a component from "Scripting" Library which allow you to add some C#, VB.NET or Jscript code, I am still working on this option as you would have to run workflow with specific rights to be able to get the information from distant server.

 

I wasn't thinking about executing batch cause this means you have to put something on the distant server which could be problematic regarding security teams)

Regarding the montoring projects, I am not quite sure of the use of it in this case.

 

Regards,

 

Cédric DUBIE

 

 

0
Login to vote
  • Acciones
el cuadro de los MDu1509

Hi Cedric,

IsProcessRunning was indeed the solution. On a similar way I used GetComputerInfo with RemoteHost info

for checkng disk space availability

Thanks for your help 

SOLUCIÓN
0
Login to vote
  • Acciones
el cuadro de los Nonos

Hi,

 

My pleasure, happy you could manage to get it to work your way)

 

Regards,

 

Cédric DUBIE

0
Login to vote
  • Acciones