Any example for Timed ShellScript Discovery with PowerShell Discovery Probe?

Hi all,
Kris Bash provided a unix authoring library with many examples for dynamic discoveries for Unix/Linux (Unix/Linux Authoring
Library). What I am missing here is a timed shell script discovery, using a powershell discovery probe for creating discovery data. There is only a PropertyBag Discovery available.
Maybe one of you has already implemented such a discovery and can provide this as an example? I tried some things but so far it is not working.
The idea behind this is to execute a shell script on a linux host that returns several lines. The output should then be parsed by a powershell script that - depending on the output - creates different class instances. Any ideas?
Regards,
Holger

Holger,
See the blog post here (http://operatingquadrant.com/2011/03/24/operations-manager-%e2%80%93-extending-unixlinux-monitoring-with-mp-authoring-%e2%80%93-part-iii/)
for an example of using the PowerShellDiscoveryProbe.  It doesn't matter whether this follows a Shell Command or a Shell Script probe, as in both cases you are passing the StdOut output as a parameter to the PowerShell script.  You would parse StdOut
just as you do in the PropertyBag examples, but use the MOMApi calls to create and return the class instances and properties.
I hope this helps,
Kris
www.operatingquadrant.com

Similar Messages

  • Is there any possibility for a MacBook Air With Touch screen??

    Is there any possibility for a MacBook Air With Touch screen??

    I think they call that the iPad.... 

  • HT5312 i am in Iraq right now and i cannot make any schedule for having a call with your support team , however, i forgot the answer for security questions , and also previously i have not summited a rescue Email address is there any way to reset my accou

    i am in Iraq right now and i cannot make any schedule for having a call with your support team , however, i forgot the answer for security questions , and also previously i have not summited a rescue Email address is there any way to reset my account?

    Please be aware that you are not communicating with Apple when you post in these forums. These are user-to-user support forums, so in almost all cases the only people who will reply to your posts are, like me, your fellow users.
    As to whether you can work with Apple via email on this issue I can't say for sure, but you can contact them via this web page:
    http://www.apple.com/support/appleid/contact/
    and see if they can help. It's mostly going to be an issue of you being able to prove to them that you are the account owner.
    Regards.

  • Is there any Example for N9010A EXA Signal Analyzer

    Hi All,
    Is there any example for N9010A EXA signal analyzer , I tried to use example of MXA got from the driver page but couldnt get to work. I need to capture the RF data form the analyzer. Please let me know if there any example or way to do it.

    AnkitG wrote:
    Hi All,
    Is there any example for N9010A EXA signal analyzer , I tried to use example of MXA got from the driver page but couldnt get to work. I need to capture the RF data form the analyzer. Please let me know if there any example or way to do it.
    That is an Agilent instrument. Shouldn't be looking for examples on THEIR website?????

  • Any example for a MFC, WTL or Win32 without Measurement Studio?

    It seems that NI wants you buy their Measurement Studio which can easily cost you a fortune. I am looking around a simple example for MFC, WTL without touching the measurement studio. But if you do not have measurement studio, NI only gives you very old examples in ANSI C which is difficult to implement to MFC or WTL. Apparently they want to increase their revenue by forcing you to buy the Measurement Studio. But I will not buy their hardware in the future if this is their strategy.
    Anyone successfully implement the ANSI C example to MFC or WTL without measurement studio? Can you share an example?

    Junqi,
    Im a little confused with this request in general. What development environment are you using? Visual Studio? Also, what language are you coding in? We provide C, C#, VB.net, and legacy VB6 examples with our DAQmx driver that do not require measurement studio. They can be found in documents\National Instruments\NI-DAQ\Examples 
    Now forgive me if Im misinformed about this, but MFC and WTL are just libraries that have some of the windows API wrapped into them, correct? If so, I dont see how interfacing with them is any different than interfacing with any other library, or why this would cause issues with doing DAQ calls. If you need help with the MFC or WTL library, there are many good places to find help with on the internet. MSDN, codeproject.com, and many others come up as having examples of using MFC in various projects.   
    The MS examples dont install withough MS because they wouldnt be able to be used because they use libraries that are installed with measurement studio, so they would be nonfunctional and largely useless. 
    Regards,
    Kyle Mozdzyn
    Applications Engineering
    National Instruments
    Regards,
    Kyle M.
    Applications Engineering
    National Instruments

  • Any example for ENQUEUE_ARRAY for JMS compatible messages?

    Is there any examples of using ENQUEUE_ARRAY with messages that are compatible with JMS? either a VARRAY or NESTED TABLE of JMS content?
    I have an after insert trigger that propagates to JMS and in the for each row loop I'd much rather enqueue as a batch than for each individual message.
    It's hard enough getting JMS compatible content working where you are enqueuing just a single message but just what's involved to get this working with batches of JMS compatible messages?

    Hi prajithparan,
    Thanks for the response. I already looked at the link and a few other links in this forum that are related to array inserts/updates. However, I could not find answers to my specific questions. I am specifically concerned with the setup of parameters to the API calls (OCIBindByName and OCIBindArrayOfStruct) that fully reflects the two-dimensional nature of the array of structs that I am trying to insert.
    Moreover, I need to set the data type of the columns to be inserted as SQLT_STR. I think this data type requires the programmer to supply the length of the null terminated C strings as well. If we are inserting just one column, we can provide the length of each of the strings to be inserted into a VARCHAR2 column as part of a OCIBind call, for each of those columns.
    Since in an array insert, we are supplying multiple rows at the same time, how do we supply the lengths of strings to be inserted ? Should it be some form of two-dimensional array ?
    I could not get clear answers to these questions from either the Oracle documentation or the links on this forum. May be the answers are there and I am just missing them ?

  • Any suggestions for learning measurement studio with c#

    Hi,
    I am just about venture into learning measurements studio with the C# language with limited knowledge of object orientated programming. I have a very primitive understanding of object orientated language delphi and know some Labview. Can anyone suggest any resources for teaching me the basics so that I can get a grasp how to program in C#. Essentially I just wish to write to digital channels amd analogue channels of a DAQ card in a certain timing sequence.
    Thanks in advance
    Jonathan

    Hello Poopy Head,
    There are some resources that can get you started programing your DAQ device. You can access the Interactive tutorials.
    VIs from the interactive tutorial are zipped and attached below.
    good luck
    Attachments:
    DataAcquisitionInCSharp.zip ‏147 KB

  • JAAS - any example for: Security.setProperty ?

    Hi there,
    I've just started to play with JAAS. I wonder if anyone can provide an example of such file for: login.rule
    When I run my application I get the following error:
    Exception in thread "main" java.lang.SecurityException: C:\workspace\Ds\login.rule (The system cannot find the file specified)
    Assuming I create such file - what should be the content inside?
    Thank You!
    Security.setProperty("login.config.url.1", "file:C:/workspace/Ds/login.rule");

    Hello Friend,
    The detailed instructions for setting up an external LDAP
    provider for WLS 7.0 can be found at the following link.
    http://e-docs.bea.com/wls/docs70/secmanage/realm.html#1172008
    I hope that helps.
    Regards,
    Tom Hegadorn
    Developer Relations Engineer
    BEA Support
    "Friend" <[email protected]> wrote:
    >
    Is there any example I can follow to setup a LDAP as the default security
    realm
    for wls7.0 ?

  • Is there any API for performing Assembly Completion with LPN

    Hi,
    Is there any API available for performing Assembly Completion with LPN..??
    Thanks and Regards,
    Ramnish.

    We had looked into doing something similar, and this post is the closest we found.
    https://community.qualys.com/thread/11816
    Basically you will need a middle-man between Qualys and ConfigMgr to house the data. This may be a new database, or a whole seperate platform. I expect this could easily be done with SQL and SSRS.
    Also note, database edits to the ConfigMgr database are
    not supported  by Microsoft, I would recommend using a central system to pull data from Qualys and ConfigMgr without modifying either.
    Daniel Ratliff | http://www.PotentEngineer.com

  • Any example for (bounded task flow) popup return value

    I need to know what is the type of popup RETURN VALUE
    any example will be great

    I want to get parameter form popup bounded task flow with NO page fragment (task flow 1) to jsff page from another task flow with page fragment(task flow 2)
    I applied the scenario exist in URL's in first replay and it didn't work
    when I select task flow 1 from inside task flow 2 diagram I found in its inspector page filed called "Dialog Return Value"
    how can I use this field

  • Examples for good programming practice with multiple DAQmx tasks

    I'm writing a program to continuously log data from 8 counters, 8 encoders, and 8 voltages. The proof of concept VI with a single counter was simple and elegant, but scaling up to all signals resulted in a wiring mess. I've been working through the Labview Core courses, and am currently on Core 3. I still haven't come across a discussion on how to work with multiple DAQmx tasks without making a mess of the block diagram. Can anyone point me in the right direction?
    Also, say I have a state machine that has a configure, idle, and logging states. I need to set the initial values of the encoders during configuration, and keep up with their changes while in the idle state so I have appropriate starting values when entering the logging state. Can anyone point to an example that shows how this might be accomplished?
    Thanks

    I'm very familiar with AE's/Functional Globals - but I have struggled in the past with handling multiple DAQmx tasks - particularly when you're using multiple devices and using different types of measurements which require seperate tasks/handling (e.g. such as thermocouples which require extra compensation).
    I'm not even sure I know whare the requirements are for needing multiple tasks - I know you can need multiple tasks for a single device if the type of measurement is different but can you share an Analogue Input task amongst multiple devices?
    I think in hindsight (and without too much thought now) it looks like a good case for Object Oriented LabVIEW - with a base DAQmx class (initialise, configure, start, acquire, stop, close etc.) and then child classes for each type of measurement (with one task associated with each - and private data unique to that specific class). You then hold an array of objects (one for each task) and iterate through each one with dynamic despatch to get the data.
    I don't know your particular experience level of using LabVIEW (and as such, OO may not be appropriate) - but as a wider discussion of 'best practice' it seems like an appropriate method I would use going forward.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Any example for using LDAP for WLS7.0

    Is there any example I can follow to setup a LDAP as the default security realm
    for wls7.0 ?

    Hello Friend,
    The detailed instructions for setting up an external LDAP
    provider for WLS 7.0 can be found at the following link.
    http://e-docs.bea.com/wls/docs70/secmanage/realm.html#1172008
    I hope that helps.
    Regards,
    Tom Hegadorn
    Developer Relations Engineer
    BEA Support
    "Friend" <[email protected]> wrote:
    >
    Is there any example I can follow to setup a LDAP as the default security
    realm
    for wls7.0 ?

  • Any examples for drawing image in comboBox?

    Hi,
    I don't know how can I list some images in comboBox, can some of you provide an example for me?
    Actually, If I make an own class, which save some parameters and implement the onpaint. Can this object to be drawn in comboBox?
    thanks a lot

    my deadline is coming.., so I need urgent help...
    here is some of my code, can any experts give me suggestions?
    I created a listdata class, to store each items for comboBox:
    class listData
        protected ImageIcon m_icon;
        protected int m_index;
        protected boolean m_selectable;
        protected String m_data;
        public listData(ImageIcon icon, int index, boolean selectable, String data)
            m_icon = icon;
            m_index = index;
            m_selectable = selectable;
            m_data = data;
        public ImageIcon getIcon()
            return m_icon;
        public int getIndex()
            return m_index;
        public boolean isSelectable()
            return m_selectable;
        public String getString()
            return m_data;
    }and I implemented the ComboBoxRenderer as :
    class ComboBoxRenderer extends JLabel implements ListCellRenderer
        public ComboBoxRenderer()
            setOpaque(false);
        public Component getListCellRendererComponent(
                JList list, Object obj, int index,
                boolean isSelected,   boolean cellHasFocus)
            if(obj == null)
                return this;
            boolean selectable = true;
            if(obj instanceof listData)
                listData ldata = (listData)obj;
                selectable = ldata.isSelectable();
                setIcon(ldata.getIcon());
            else
                setIcon(null);
            return this;
    /code]
    and how I setup the comboBox is :....
    if(this.images != null)
    for(int i=0; i<images.length; i++)
    jComboBox_Page.addItem(new listData(images,i,
    true, images[i].getDescription()));
    ComboBoxRenderer renderer = new ComboBoxRenderer();
    renderer.setPreferredSize(new Dimension(86, 86));
    this.jComboBox_Page.setRenderer(renderer);
    am I wrong in some parts ?? Can you help ??
    Thousand Thanks !!!!!

  • Any tricks for shooting green screen with C300?

    Any tricks to shooting green screen with C300?

    Sounds like the color space conversion is simply intensifying compression artifacts that are there in any case. It's a compressed format, after all. You might need to check some specific CoDec options to get a better conversion. Short of that I have no idea, since I don't have access to such files ATM, but if you can provide a short clip somewhere (rapidshare, yousendit etc., ca. 30-100 MB), I might have a look and be able to offer more specific guidance how to work around the issue.
    Mylenium

  • Is there any example for a software transceiver in labview / labview modulation toolkit ?

    hi everyone
    i am sure you have heard of this a lot ..... but i am new (like 20 minutes old) to labview. i am quite fimiliar with matlab and other programming languages. i am doing a project based on software defined radio. for that i understood an example demo from matlab where a fully functional software transceiver has been built as an example.
    now i myself have to do that in labview for the sake of comparison and better real time compatibility with USRPs. i am just getting started and was hopping if there is a similar example in labview or someone else's project. i have installed the modulation toolkit and have gone through its various blocks. i understand that i can build a tranmitter and receiver from scratch but that would take a lot of time and testing. so can anyone help me out in any way.....?
    regards
    khurram

    Hi khurram,
    did you look for examples with the ExampleFinder?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • How to use jsp:plugin action with type = bean

    Hi everybody, I'm new to JSP so it could be a stupid question but I'm wondering how can I use a jsp:plugin action with a type equal to "bean". Everyone is talking about type equal to applet so the browser can display this applet but if the type will

  • Conversion of Word 2007 Docs to PDF

    I am using Word 2007 & Acrobat 9 Pro.  I am attempting to convert a chinese document into a PDF file within Word 2007.  After conversion,  many of the chinese characters are missing and replaced with an empty box.  Why?  What can I do to correct this

  • Install Flash Payer 9 error message

    Hi, When I try to install Flash Player 9 for OSX I get the following error message: "It appears that a browser is still running on your system. Please close all browsers and click 'Continue'" I do not have any browsers running, and have tried restart

  • Hello,  I want to know how to clear the memory or buffer cash from my mac book?

    Hello,  I want to know how to clear the memory or buffer cash from my mac book? When I look at the series, it puts more and more time to load. Thank you. Sorry for my english, i talk french.

  • Stacks in LR5 will not expand, and I can't seem to select any photo other than the top of the stack.

    Since upgrading to LR5, I've been really frustrated by stacks. When I export to jpg, I add it to the library, and add it to a stack with the raw. In LR4, it was easy to select either of these files, since they were side-by-side in the library, but wi