You must be logged in and have permission to create or edit a blog.
|
|
By Stefan Koell on
Thursday, May 27, 2010 10:03:51 PM
Last couple of weeks were really slow. Had lot’s of troubles getting infrastructure stuff up and running. Had to get rid of my Exchange server, needed to switch to Team Foundation Server because I’m really sick of Subversion and the latest challenge was to get the Royal TS 2.0 to compile against .NET 4.0. Let me tell you, it’s not that easy as you might think! Anyhow, I’m back on track and I think I will be able to finish the Options dialog by the end of the upcoming weekend. 2 Sections of the Options dialog are done already: The “General” Section: ”Application Start” will allow you to set one of three options which are pretty self explanatory: - Do not open any documents
- Open documents from last session
- Open a selection of documents (see screenshot)
The option “Application Close” moved from the main window’s “Tools” menu to the options dialog and will prompt for confirmation before you close the application if any connection is still active. “Theme” works pretty much the same way as before except for one small detail: changing the selection will “preview” how the theme will look like by temporarily change the theme. Royal TS 2.0 will have some informational popup-banners which you can hide and some prompts with a checkbox option “Do not show this again”.“Reset Warnings and Messages” will reset all those dialogs and popup-banners which may annoy you. The “Encryption” Section: This section is exactly the same UI element you can find to encrypt and password-protect your documents. Because Royal TS 2 will allow you to store credentials in your application settings, this makes sense. The general idea is, that you do not have any credentials defined in your documents – you still can, but you should define your credentials in your application settings and just reference them in your documents. This way you do not really have to encrypt your document (again, you still can if you need to). It makes document sharing much easier. I will post a detailed blog post in a couple of weeks how document sharing and referencing credentials will work. One important question, I would love to get your feedback: I’m considering to reduce the priority or maybe drop one feature present in Royal TS 1.x for the first Royal TS 2.0 release: “Minimize to Systray”. It seems that Windows 7 changed the game a bit and the “Show Desktop” function and the new task bar integration seems to cause weird behavior. I originally planned to keep at least every Royal TS 1.x feature in the 2.0 release but this could delay the release date a bit and I was wondering how important that feature might be for you. Please leave a comment or drop me an email…
|
By Stefan Koell on
Tuesday, May 18, 2010 1:13:38 PM
I start to think, I will never get V2 of Royal TS out. There’s always something coming up consuming time and I’m not talking about family here. Things you expect to just work, do actually not – at least not always. First I was very happy when I got my new server. I was looking forward to setup all the stuff which should actually help me to develop more efficiently. I bought a nice box where I could run Hyper-V, run my test boxes on it as well as Team Foundation Server 2010 (which btw is great compared to Subversion!). But then, reality caught up on me. Problems with the network driver on my Hyper-V box (reminder to myself, never trust a Broadcom driver – only use Intel network adapters!). The NIC on the host worked perfectly but all guests moved from another hyper-v machine weren’t able to get networking up and running, even when I used the legacy network device. Days of research and tests were necessary until I gave up and led me to try a different NIC brand. After installing an Intel card, everything worked fine – on host and on the guests. On a sidenote: this server box is a Dell box and is officially “Hyper-V certified”. My Exchange server died a horrible death because of this incident. Fortunately no data loss. Btw, the nice guys @ netmonic offered to host my Exchange mailbox for a reasonable price and let me say, I would never go back to hosting it myself. Perfect service, good value, no headaches anymore! (contact them for the latest rates, the prices on their site are a bit outdated) Then, out of the blue(!), my new server started to blue screen whenever I copied approx. 1 GB to or from the server. Even when doing backups, it blue screened somewhat after a GB. The server ran fine for weeks – even with the backups! The good news, there’s a fix for that (http://support.microsoft.com/kb/975530). The bad news, it wasn’t really easy to find and I am starting to lose confidence in MS server products. The past few months showed that things like WHQL, certified drivers, Hyper-V certification, all doesn’t really mean anything. If you are out of luck you can have a hard time. I hope everything is stable now and I can start to do actual work now…
|
By Stefan Koell on
Saturday, May 15, 2010 7:22:54 PM
Since a lot of users are confused about targeting, I decided to give it another shot and try to explain on a more practical side why targeting is done the way it is. There are some fundamental technical reasons why you need to use overrides and cannot target a group directly (as many might expect first), so let's take a closer look at the platform beneath and it might be clearer to understand why this has to be done this way.
Here's the line you read (or hear) when it comes to targeting a workflow (i.e. discovery, rule, monitor, etc.):
You cannot target a group directly, you always need to target a class like Windows Computer, disable the workflow, create an override afterwards to enable the workflow for a limited number of instances (Windows Computers in this case).
So, what's all about targets (classes) and groups?
A group (after you created one) is basically a class, very much alike the "Windows Computer" class. The main difference is, it's a singleton class (only one instance will always exist) and it is hosted on the RMS (which is maintaining the group membership). Because of this fact, you:
- see all the groups in your system when you have to choose a target class
- see every workflow targeted directly to a group's class run on the RMS (this is the host of the singleton-instance) because OpsMgr thinks that's the place you want to execute the workflow.
A group can have members (nothing more than instances of other classes) from different kinds. You can actually have one or more "Windows Computer" classes and one or more "IIS Web Sites" class instances mixed with some "Logical Disk" class instances, all in the same group.
Why do we need to specify a target which is not a group when we create a workflow?
The most obvious reason is the "Variable Replacement Mechanism" (I have no clue if there's an official name for that). When you target a workflow, OpsMgr knows all attributes (properties) of your target. This allows you to pass any attribute from the current instance your workflow is running against to your workflow. For example, when you target a workflow (i.e. a script monitor) to the class "IIS Web Site", you can pass the attribute "LogFileDirectory" to your script.

After you select the target you can access all the attributes from that target in your workflow:

This is one of the most powerful features OpsMgr has to offer in all the workflow processing. Once you've wrapped your brain around that concept you will realize that this beast can do almost everything in a relatively simple way.
As a result, the following rules apply:
- Once you chose a target class, you cannot change it after the workflow was applied to the system. This is simply because of the implications related to the "Variable Replacement Mechanism". When you change the target, all the dynamic values you pull in might or might not work afterwards. I guess the engineers at MS could come up with a solution allowing you to change the target and prompt for each and every dynamic value to change for the new target class but as you can see for yourself, the outcome is unpredictable. Therefore they just disabled the option to change the target class. Even doing so in XML can be a mess and you often just end up creating this workflow from scratch using your new target class.
- Because of groups can have members of different classes, there's no way for OpsMgr to find out which attributes can be used for the variable replacement. Consider our previously shown group containing classes of "IIS Web Site", "Logical Disk" and "Windows Computer". Each class have a different set of attributes, so targeting a group directly would prevent you from using the replacement feature. Many of the built-in workflows and vendor MPs depend on that feature!
But why can I target a group in the Windows Service monitoring template wizard?
Since OpsMgr 2007 R2 the Windows Service monitoring template wizard was “upgraded” and allows you to specify a group you want to target the monitor. I really wished they designed that dialog differently because every new user will get confused because all the workflows are not directly targeted to the group you specify in this dialog!

In the end, the wizard is doing the exact same thing behind the scenes you would do when you create your own workflow:
It creates a disabled workflow (in this special case a discovery) targeted to "Windows Computer".
It then creates an override for this workflow, enabling it for the group you chose.

Ok, I need to do overrides, any other benefits of using this technique?
Using an override to enable/disable a workflow for a group of members has also its advantages. See Jakub's post here:http://blogs.msdn.com/jakuboleksy/archive/2006/12/06/overrides-in-scom-2007.aspx
Jakub explains how overrides are actually applied and shows how powerful this mechanism really is. In short, for overrides it isn't really necessary to use the exact same target as your workflow is targeted to. The calculation algorithm allows you to be more flexible here. For example:
A workflow targeted to an "IIS Web Site" instance can be overridden using a group containing "Windows Computer" instances. OpsMgr will find out for which "IIS Web Site" instances this override will be applied and includes all instances running on the specified "Windows Computer" instances.
Summary:
I completely understand anyone having a hard time with this concept. It is a bit strange at first and as most of you I had to get used to it as well. The stuff above is just a very condensed view and is far from being complete. There are several other reasons, benefits and rules in the workflow engine I did not mention here. These are the facts that helped me to understand the engine and platform better and I hope I could illustrate some of that for you.
One thing MS can and should do better is making these concepts more accessible in the UI. It begins with the very confusing terminology in all the dialogs and wizards and surely ends in the documentation. The documentation is getting better and better while the UI is still confusing or getting more confusing (see Windows Service monitoring template wizard).
|
|
|
|
|
|