Auto IT: with System Center Orchestrator-Use Counter

Sometimes you may want run a complex process. In the process you may need select different direction that based on some conditions.

We’ve discussed that how to use ‘link’ fulfill these request:  Auto IT: with System Center Orchestrator-Link

Suppose that I need to monitor the iexplore.exe running on the machine. I’ll check the process exist or not every 10 seconds. If the check failure over 2 times in 1 minute, system will record a event log and send a notification mail to me.

The pseudo-code is shown below:

Do While every 1 min;
  If GetProcessStatus(iexplore.exe)=False Then
      If ReadCounter=2 Then
        If Schedule.Date=Sunday Then Couter.Reset
      Else Counter=Counter+1;

At first you need a counter to count the errors. And a schedule to limit the time cycle. Just right click on “Schedules” or “Counters” in the MMC tree.

I’ve placed these activities on the SCO designer:

SCO Counter 01

The Activities named ‘Modify Task Counter’ and ‘Check Schedule’ are used to determine the conditions. So I’ll show the Links properties below.

SCO Counter's Link 01SCO Counter's Link 02

SCO Counter's Link 03SCO Counter's Link 04

SCO Counter's Link 05SCO Counter's Link 06

SCO Counter's Link 07SCO Counter's Link 08

You can find the settings of the Links via click the photos.

The “Modify Task Counter” use link “(3)” and “(6)” to determine the process monitor error over threshold.

The “Send Event Log Message” use link “(4)” and “(5)” to execute both “Send Mail” and “Modify Counter”.

BTW, may be you notice that the link “(7)” is shown as dotted line. Just because the link is ‘disabled’.

此条目发表在System Center分类目录,贴了标签。将固定链接加入收藏夹。


Fill in your details below or click an icon to log in: 徽标

You are commenting using your account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s