Using one class data in a monitor targeting another class

Hi All,
I have a scenario where in i have a class  A which has some machines. There is one more class B which also has some more machines.
I create a monitor which basically targets the machines in class A to read their event viewer and raise an alert. The condition for raising the alert has a condition where in the event description contains the machine names taht are part of class B.
How do i create a monitor in such a scenario. Any sample MP shared would be of great use
Regards, Mahadev Sundeep Maruvada

Please use the way descripted below.
http://blogs.technet.com/b/kevinholman/archive/2008/04/22/using-event-description-as-criteria-for-a-rule.aspx
You need to list out the machines in Class B and add them in the expression.
Juke Chou
TechNet Community Support

Similar Messages

  • Use one fpga vi to control two targets

    Hi,
    I have two fpga because I need more than 8 analogue output and analogue input.  I wonder if I can use one fpga vi to control two targets (the two FPGA boards I use are PCI-7833R) so that the outputs can be synchronized.  I think if it's possible it'll be easier to implement the synchronization between while loops,etc.  If it's not possible, how can I interface between between fpga.vi and make the synchronization possible and make two vi's talk to each other?  Thank you very much for your help!
    Thanks,
    Charles

    I have successfully ran the same code on two (2) different FPGA boards. The difference being that the host will use different Aliases to control the FPGA boards,
    Both FPGA Boards MUST be the same type ( I used PXI-7811s). 
    My program consisted of 6 individual communication portals and there was NO synchronization between boards
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • How to use one variable as a default value for another variable?

    Hi Experts,
    Is it possible to use one variable as a default value for another variable?
    For example:
    Variable 1 = current calendar year month
    Variable 2 = mandatory input ready variable for calendar year month
    I want to use variable 1 as default value for variable 2, but also have the ability to change the month if required.
    Thanks!
    Kathryn

    u can use replacement path variable
    in that case u can replace the values of 1 variable with the another variable...
    but  u cannot do this setting
    u cannot make variable 2 as mandatory
    u cannot enter value for variable 2
    because by default it will take the value of variable 1
    u have to make follow settings
    variable 2
    name , technical name
    processing by = replacement path
    infoobject = ocalmonth
    next tab
    replaced by another variable
    variable name
    offset start , offset lenght
    save and hit okey

  • Can i use the iq526 touchscreen as a monitor for another computer? if so, how do i input the video?

    can i use the iq526 touchscreen as a monitor for another computer? if so, how do i input the video?
    This question was solved.
    View Solution.

    You know, this is just a thought.  I'm not sure the differences between the iq526 and iq770, but as I was looking around I found this article.  I don't know if it'll help, but you might want to take a look.  Evidently someone figured out how to use the HP touchsmart as an external monitor for his Dell laptop.
    GeorgeFN
    I work on behalf of HP.

  • Using a class that has a main from another class

    Can I call a class that has a main from another classes public methods?

    Yes, you can, although strictly speaking you won't be calling that classes "main" method, you will simply be calling and initializing the class through it's constructor, the "main" method will be ignored. If you have code inside your main method that you want executed as well consider moving it inside your constructor and simply using the "main" method as an application initializer:
    public static void main( String args[] ) {
    new MyClass();
    This way you can use your class as an application or call it from another class and not have any duplicate code inside your "main" method and constructor. You can also take this further and have it call the applet initialization so that you can launch it any way you like, I suspect this is a bit beyond what you were asking.
    Does this solve your problem?

  • How do you call a java class from the main method in another class?

    Hi all,
    How do you call a java class from the main() method in another class? Assuming the two class are in the same package.
    Thanks
    SI
    Edited by: okun on May 16, 2010 8:40 PM
    Edited by: okun on May 16, 2010 8:41 PM
    Edited by: okun on May 16, 2010 8:47 PM

    georgemc wrote:
    To answer your impending question, either the method you're calling has to be static, or you need an instance of that other class to invoke it against. Prefer the latterAnd to your impending question after that: no, don't use the Singleton pattern.

  • Using one Cursor data in anothe rcursor

    Hi all,
    I have a requirement of processing the following.
    I have to select the rows for which few selected attributes are null. Then I need to take one more attribute for these rows and check that if the value of that row exists for any other row except this one. If that id exists for another row ,then I have to update two fields concatenate with the value.
    Ex:- suppose I have 3 rows for which all the three attributes are null. I have a value say CCN_ID which I have to check if that exists for any other row other than this. That means the CCN_IFD of these 3 rows should be checked for existence in any other rows in the same table. If any of the CCN_ID of these 3 rows exists, then I need to update that row with attribute (Sayx)CCN_ID concatenated by the CCN_ID.
    I wrote the following query to accomplish this.
    select CCN_ID from TEMP_ARTICLE_TABLE where ARTICLE_NO is null and COLOR_BOTTOM is NULL and COLOR_TOP is NULL and CCN_ID IN
    (SELECT DISTINCT CCN_ID from TEMP_ARTICLE_TABLE where CCN_ID in(select CCN_ID from TEMP_ARTICLE_TABLE where ARTICLE_NO is null and COLOR_BOTTOM is NULL and COLOR_TOP is NULL)
    and rowId not in(select rowId from TEMP_ARTICLE_TABLE where ARTICLE_NO is null and COLOR_BOTTOM is NULL and COLOR_TOP is NULL));
    But I was requested to write a Stored Procedure to do this. So, I am thinking of creating two cursors in which the first cursor's data is used in second one as follows.I am receiving compiling errors as follows while compiling t he code.Am I doing in the best possible approach? Is there any other better approach to accomplish my requirement?
    SP Code:-
    CREATE OR REPLACE PROCEDURE SP_ARTICLEDATA_CLEANING IS
    CURSOR Cur_CCNID is
    SELECT rowId,CCN_ID FROM TEMP_ARTICLE_TABLE WHERE ARTICLE_NO is null AND COLOR_TOP IS NULL AND COLOR_BOTTOM IS NULL;
    CURSOR Cur_ModCCNID IS
    SELECT DISTINCT CCN_ID FROM TEMP_ARTICLE_TABLE WHERE CCNID IN(Cur_CCNID.CCN_ID) AND rowId NOT IN(Cur_CCNID.rowId);
    BEGIN
    FOR rec in Cur_CCNID
    LOOP
    BEGIN
    UPDATE TEMP_ARTICLE_TABLE SET COLOR_TOP='FIX_'||rec.CCN_ID WHERE CCN_ID=rec.CCN_ID and rowId in(cur_CCNID.rowId);
    END;
    END LOOP;
    END;
    Errors:-
    [Error] PLS-00225 (5: 102): PLS-00225: subprogram or cursor 'CUR_CCNID' reference is out of scope
    [Error] ORA-00904 (5: 102): PL/SQL: ORA-00904: "CUR_CCNID"."ROWID": invalid identifier,
    [Error] PLS-00225 (11: 102): PLS-00225: subprogram or cursor 'CUR_CCNID' reference is out of scope,
    [Error] ORA-00904 (11: 102): PL/SQL: ORA-00904: "CUR_CCNID"."ROWID": invalid identifier
    Please guide me if there is abetter way or how to correct these errors.
    Thanks,
    Pavan.

    The basic answer to your problem is use SQL. A single SQL statement can very likely do the entire operation. There is no need for using row by row (called slow by slow) processing in PL/SQL.
    PL/SQL is inferior when it comes to crunching database data. That is the territory of the very powerful and very flexible SQL language. Or simply put: Maximise SQL. Minimise PL/SQL.*
    As for cursors - a cursor is the compiled and executable for a source code program (e.g. SQL statement). It is not a result set. This cursor/program outputs data. It even takes parameters in the form of bind variables. Which means the same cursor (executable) can be used repeatedly, even by different sessions, and executed with different parameters (called bind variables).
    Want to insert 10 million rows? Single SQL cursor (executable program). Called 10 million times. Each time with different parameters (bind variables). Via 10,000 different application sessions. At the same time.
    So a cursor calling a cursor - not really a sensible approach. Cannot be done the way you want in your code. Is used for unique processing requirements like running PL/SQL in parallel using pipe line table functions.
    Bottom line - whoever told you to write a stored proc to do this, is wrong. The correct solution is writing SQL to perform the processing and update you need. That SQL can then be placed inside PL/SQL in order to manage the execution of that SQL cursor and deal with validation of input parameters, handling errors, code instrumentation and so on.

  • How to use one DC's view/component/appln in another DC

    Hi All,
      I am new to DC concept. I am trying to use one DC's component in another DC. I have done following steps.
    a)Created two DCs A and B
    b) DC A's 'New Public Part-->Entity Type(Web Dynnpro Component) I selected component
    c) Add Used DC in B, I added A's component
    <b> From this point onwards I am not getting any clues</b>. How do I call A's component in DC B. <i>Please guide. Any examples will be great.</i>
    Thanks and Regards,
    Ganga.

    Hi Gangadharaya,
    Just tell me do u want to display a view, use some context or use some methods defined in other controller.
    So that i can help you in the same direction.
    <b>Component Usage</b>
    Suppose you have following scenario:
    1) DC2 has component Comp2. In this dc you read the context a value and stores it in context named "Ctx_value".
    2) DC1 has component Comp1. Here you want to read the Ctx_value from comp2.
    In Comp2 create a method getValue()
      public java.lang.String getProcessId( )
          return wdContext.getCurrentElement().getAttributeValue("Ctx_value");
    In the interface controller of Comp2 click on properties tab and add reference to the cont2 controller. Now create a method here in interface controller to get the value of Ctx_value
      public java.lang.String getValue( )
        return wdThis.wdGetComp2Controller().getValue();
    Expose the Comp2 as public part now.
    In DC1 add DC1 as used DC.
    Build both dc's
    In Comp1 create Component usage by name Comp2Usage to Comp2.
    Now you can access the method getValue() from interface controller of Comp2.
    wdThis.wdGetComp2UsageInterface().getValue();
    This is how you can access a value of Context. Same can be done by direct binding.
    <b>View Access</b>
    If you want to access a view v2 in comp2 then goto windows in comp1 and embedd an existing view and in that select the interface view of comp2. The default view in comp2 can now be displayed in comp1.
    Regards,
    Murtuza
    Message was edited by:
            Murtuza Kharodawala

  • Is there a way to click on one image and activate the animation in another class?

    I'm using the ibooks.js library. So it'd need to .activate another class if using the ibooks-toggleable function.
    Thanks!

    Harold,
    I can't say how this compares to Word, since I don't use it, but you can open as many document at a time as you wish in Pages. Each will have its own window. Having too many open will slow your system and reduce Macbook battery life.
    Jerry

  • Instantiate a Class through a constructor argument of another class.

    public function LevelManager(owner:Home)
                                  _owner = owner;
    In my LevelManager Class I have the above code in the constructor. Home is another Class which is not instantiated anywhere with the new keyword. It is merely a parameter in the constructor and then passed into the body and assigned to a local variable. I didn't know you could instantiate a class through a function parameter. Is that right???
    Cheers in advance.

    Well, I know Amy is big on design patterns and she is going to slap me but I am the guy who is not a big fun of DPs in regular Flash applications. I have many reasons to dislike them.
    I am not against DPs in principal. In collaborative environments (big teams) or in situations when software is developed for industrial consumption or as partially closed frameworks - it makes sense. Otherwise - they are just possible solutions and reference point at best. In Flash they frequently are major silly overkills. They are more of academic than practical value contrary to what people tend to believe.
    Design patterns are possible solutions that developers came up with heuristically base on the problems they needed to solve - not vice versa. Problems do not dictate design patterns.
    There is a strong tendency among DPs proponents and followers to make DPs self-fulfilling prophecies. Instead of conceptualizing of particular application needs developers often are searching for DP first and then try to squeeze logic into a particular or a group of several design patterns.
    If a person is taught that DPs is the only way to go - there is a great danger of killing creativity and the thought process.
    I strongly believe that what makes a star programmer is the ability to conceptualize the project, model it well and only then find coding solutions based on language capacities. And to question any suggestions in favor of current task efficiencies.
    By the same token, if your painting doesn't need color red - why use it? This is another thing that happens often - developers implement something that is actually not needed.
    Code is cheap! When project is well conceived and modeled - coding takes very little time. One ends up with his/her own "design pattern" that may or may not fall into one of DPs that is articulated already.
    Also, there is a great deal of activism around DPs that, as with any activism, forms an ideology that is full of misleading simplifications.
    First one is that OOP is equated to DPs usage. This is totally dangerously  untrue!!!
    Another one is you mentioned. Spaghetti coding is not the only alternative to design patterns. In other words, if one doesn't use DP - it absolutely doesn't mean person is engaged in spaghetti coding. And vice versa - DP does not shield program from spaghetti coding. I have seen DP warriors going crazy with spaghetti coding although DP was implemented to the tee.
    Another example of misconception is that DP proponents always carry banners of decoupling and modularization. Be very skeptical when someone gives you this shpeal. Modularization is easy to conceal for "propaganda" purposes and it is comfortable not to think about when DPs are used (especially MVC concept). Since this is just a concept - there are no real checks and balances.
    Decoupling, on the other hand, is not that easy to shove down someone's throat. Decoupling can be actually calculated - this is where a lot of idealistic beliefs that someone's code is well decoupled because of the DP fails miserably. Not because of DP itself but because of implementation. Well, sometimes pattern too.
    See, there is no black and white again.
    My point is that DPs do not protect anyone from any kind of challenges or mistakes as they don't make a better programmer. They can make one a disciplined follower but not a real creator (not that everyone must be the Creator).
    If not used properly DPs may be a ground for crappy inefficient un-scalable application as much as any other approach.
    And the last thing. I said that DPs are special suspects in Flash. This is because ActionScript and Flash are already limited frameworks that force us into thinking in MVC terms. This is just a nature of the beast. To attempt to warp it up into another MVC framework looks like a self-indulgent irrelevant academic activity to me.
    And I did not even mentioned practicalities of the target environments we develop our applications for.

  • The name of this class conflicts with the name of another class

    I had a problem when compiling my flash movie. I had made an
    instance from a class, but the output kept saying:
    "The name of this class, XXX, conflicts with the name of
    another class that was loaded XXX."
    I read a lot of developers have the same problems, when i
    looked it up:
    Google
    link on : "conflicts with the name of antother class that was
    loaded"
    Apparently it is some kind of bug caused by different times,
    between local/network machines and servers.
    Also when there is a time difference involved between 2
    computers, then this problem also occurs.
    Can't macromedia fix this bug? .....Because as a developer i
    don't want to adjust my time, everytime i want to test my flash
    movies or have to compile my movie 2 times. The other developers
    are getting tired of it also.
    We need to get this bug trough to macromedia or adobe!
    It needs to be fixed!

    Can anyone help?

  • Is it possible to use  one imac to control the screen of another?

    Hi,
    I'm thinking of buying a new iMac. At present I have an older intel iMac (1.83, 17 inch, 2 Gigs ram, 250 hd) and I work mainly with Logic Pro 8. Logic Pro 8 has a node function which allows you to use the processing power of a second computer to enhance the processing power of the primary computer. My present iMac in my new setup would be the node computer to the new iMac. I already know I can use the processing power of my present computer but can I also use it's display? In other words can I use the new iMac to control the old iMac's screen? Thanks

    One thing I'd caution you on, Logic node uses resources over an ethernet connection, which this screen sharing application also appears to be transmitted over. Using this screen sharing app, the internet, or any other networking application on the Logic Node computer will affect the amount of bandwidth available to Logic Node, reducing the amount of performance you get by having the second "node" computer hooked up.
    It's possible that it may not be very noticeable, but I'd definitely do a test with and without the screen sharing app to see how far you can push it.
    I'm curious to see if this works well, I wouldn't mind using my PC laptop for a second monitor.

  • Use one layer as alpha map (mask) for another - how?

    Hi, I do not understand how to do this in Photoshop. In After Effects, which I use a lot, this is easy. For example, I have one layer with transparent, semi transparent an opaque areas. I can then tell AE to use this layer as an alpha channel map for another layer. But how do I do this in Photoshop? I understand how to use a layer mask and draw on the same layer to create treansparent areas. But I want to use a separante layer, or even a separate image.
    I use Photoshop CS 5.
    Ingvar

    Hello!
    And by "look up", Chris means in the Adobe Community Help application, or in the online help:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e 41001031ab64-7853a.html
    I immediately flagged the answer as correct yesterday, but thanks anyway

  • How can I use one hierarchical table as a node of another hierarchical tabl

    I have a requirement where I have two hierarchical tables and one table should  work as node for other table . How to achieve this??
    To elaborate more the structure is like
    Main Table (Company Structure)
    Sub table “Consolidation Groups” which has got hierarchical structure
    Sub table “Entity” which is also hierarchical.
    The Entity table should act as a node for table “Consolidation Groups”
    How can I achieve this functionality??
    Thanks
    Suvarna

    you misunderstood me apparently. I said you can't organinze to tables so one serves as a node's value of the other. Let me show you wnat I suggested by an example.
    First table has such values:
    -A
    |-B
    |-C
    and the second one is
    -x
    |-y
    |-z
    -p
    |-r
    |-s
    I thought you wanted to confine relationships between them so fo B node be able to select only x's branch and for C - only p's branch. If it's similar to the truth then let's create another table with two fields. Field one points to table containing capital letters and field two - lower case letters. Both fields are of type lookup pointing to an hierachial tables. Now when you populate this table you'll create records like (I list two columns):
    B - y
    B - z
    C - r
    C - s
    from your orinal table from now you should point to the above table. So instead of having two fields each pointing to its own table and compeling you to think how to organize two hierarchies, now you have only one field pointing to a table with all valid combinations. When you populate this table though YOU have to decide what such combinations are. It may make sense (if you have different users) to restrict access to this table on read-only level  for regular users to preserve the valid combinations.
    Hope it helps but if I understood your wrong give a concrete example.

  • Using one laptop as an external display for another?

    The title says it all really, can this be done?

    Not directly, no. But you can approximate the function with Screen Recycler. I haven't tried it myself, but it's worth a look.

Maybe you are looking for

  • Search file for text and delete the found text.  How?

    I need to know how to search a file for text and delete the found text. I think grep will let you do this but not sure of the syntax.

  • Screen not refreshing properly

    Hi: So this happened in Safari 4: http://www.vimeo.com/5122791 I've talked to someone who said they had the same thing happen, and it was caused by having a second user account open at the same time. Which might indeed be the case. However, I've been

  • Type parameter question

    I'm trying to figure out if I can simplify this interface definition: public interface BaseService<T extends BaseEntity<ID>, ID> {     public T find(ID id);     public void persist(T entity); }To implement this interface, I have to do something like:

  • Bid inviatation not sent to vendor.

    Hello, when i sent a bid invitation to vendor ( BP maintatined ), it is not visible in his inbox.Can you please help me to fix this problem. regards, Vivek

  • Photoshop not convertting color settings regardless of warning..

    Despite what settings I put into photoshop...the colors are coming out the same but only on a few different files and restarting the computer is the only thing that seems to fix this....O_o I have also set the settings in lightroom to srgb before pos