How do I run a snmpwalk/any bash command as a Linux/Unix command (2 state monitor) on a Isilon storage device

Is there a way that I can run a snmpwalk / isi devices (to find the status of the disk drives in islon) / any Linux bash command using a 2 state monitor Unix/Linux shell command and target a storage device (Isilon in my case) and not target a Unix/Linux
machine. I tried creating one and it complained saying,
Is there a way I could run a bash command in my isilon storage and use the ouput to determine the state of the monitor? Please let me know
Hari V

For Unix/Linux shell command in Operation Manager to monitor 2 state, you can refer to below link
http://contoso.se/blog/?p=2680
http://stefanroth.net/2012/10/21/scom-2012-linux-two-state-monitor-with-script-in-script/
http://operatingquadrant.com/2012/02/01/opsmgr-2012-unixlinux-authoring-templates-more-information-on-the-shell-command-templates/#more-746
Please remember, if you see a post that helped you please click (Vote As Helpful" and if it answered your question, please click (Mark As Answer).

Similar Messages

  • How can i run application client from the command prompt ?

    Hi,
    I'm new to java & EJB. so can any body tell me the command to run the application client from the command prompt. Here is the code to print hello world:
    /* Remote interface */
    public interface Hello extends javax.ejb.EJBObject
         public String hello() throws      java.rmi.RemoteException;
    /* Home interface */
    public interface HelloHome extends javax.ejb.EJBHome
         Hello create() throws java.rmi.RemoteException, javax.ejb.CreateException;
    /* Stateless session bean class */
    public class HelloBean implements javax.ejb.SessionBean
         private javax.ejb.SessionContext ctx;
         public void ejbCreate(){
              System.out.println("ejbcreate()");
         public void ejbRemove(){
              System.out.println("ejbRemove()");
         public void ejbActivate(){
              System.out.println("ejbActivate()");
         public void ejbPassivate(){
              System.out.println("ejbejbPassivate()");
         public void setSessionContext(javax.ejb.SessionContext ctx){
              this.ctx=ctx;
         public String hello(){
              System.out.println("hello()");
              return "Hello, world!";
    /*Client class */
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Properties;
    public class HelloClient
         public static void main(String[] args) throws Exception{
              Properties props=System.getProperties();
              Context ctx=new InitialContext(props);
              Object obj=ctx.lookup("HelloHome");
              HelloHome home=(HelloHome)javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);
              Hello hello=home.create();
              System.out.println(hello.hello());
              hello.remove();
    I have stored .java files in c:\ejb
    I have successfully created the .class files using javac command in the following directory :
    c:\ejb
    I have also created Helloworld.ear file in c:\ejb using sun application server which contains the following files:
    ejb-jar-ic.jar
    app-client-ic.jar
    sun-j2ee-ri.project
    application.xml
    sun-application.xml
    Manifest.mf
    But the problem is that i'm not able to run the HelloWorld.class file successfully from the command prompt. So please suggest me the comand.
    Thanx in advance.
    Best regards,
    Pankaj

    Hi
    You can run this code from the command prompt in the same way as you run any other simple java program. The only thing is you need to set the Home and Local interfaces in the classpath.And obviously if u had deployed the bean in ur app server container, then its all over.
    And one more thing is that u need to set the provider URL in the InitialContext created in the client program.
    Thanks
    Arun B

  • What does this actually mean and how do I fix it: Alert: Error Count Monitor Resolution state Object Hyper-V Virtual Storage Device Has a value

    We are getting this alert on a fair few of our VMs with VHDXs and Dynamic VHDs. Everything seems OK but I am not sure what this actually means and what I need to do to resolve the issue. How do I reset the error count if that is what is required? Thanks
    in advance.
    Alert: Error Count Monitor Resolution state: New
     Error Count Monitor Source: MyVm01 Path: MyHost.MyDomain.local;MyHost.MyDomain.local;FE71577B-A2E2-45C0-B757-2FBCEC9311DE Last modified by: System Last modified time: 2/9/2013 2:08:48 PM Alert description: Instance c:-clusterstorage-volume1-MyVm01-virtual
    Sat 09/02
    To:Administrator
     09 February 2013 14:09
    Alert: Error Count Monitor
    Source: MyVm01
    Path: MyHost.MyDomain.local;MyHost.MyDomain.local;FE71577B-A2E2-45C0-B757-2FBCEC9311DE
    Last modified by: System
    Last modified time: 2/9/2013 2:08:48 PM
    Alert description: Instance c:-clusterstorage-volume1-MyVm01-virtual hard disks-MyVm01-DATA02.vhdx
                Object Hyper-V Virtual Storage Device
                Counter Error Count
                Has a value 9
                At time 2013-02-09T14:08:48.0000000+00:00
    Darren

    But I am getting this alert from SCOM and SCOM has no information about the alert for me to find out what to do - thought that was the point of SCOM to let you know of problems and how to resolve them. :)
    The alert is coming from the Error Count Monitor that is part of the Hyper-V Management Pack Extensions (v 4.0.0.0)
    I have tried looking in the Event Logs on the Host and there doesn't seem to be any storage related errors there. I am trying to establish if this is a false positive, why it is happening and if it is safe to override and ignore.
    There is nothing on the Product Knowledge tab and nothing on the Alert Context other than what I have already mentioned (see below).
    Thanks for responding.
    Time Sampled:
    09/02/2013 14:08:48
    Object Name:
    Hyper-V Virtual Storage Device
    Counter Name:
    Error Count
    Instance Name:
    c:-clusterstorage-volume1-myvm-virtual
    hard disks-MyVM-DATA02.vhdx
    Value:
    9
    Darren

  • How Can I run a .vbs (Visual Basic Script) file on Linux?

    Hello, I have a doubt:
    How Can I execute on Linux a .vbs file? I can't use wine cause it is not a .exe file.
    Is there any way?
    Greetings

    Mikko777 wrote:http://www.cyberciti.biz/tips/visual-ba … linux.html learn to use google
    Google works, yes ... if you know what you are searching for. Try this search: VisualBasic is not VBScript.
    Here is what you will need (consult an attorney first):
    - Wine
    - Windows Scripting Host (WSH) 5.6* (available officially from MS website, but requires validation):
    http://www.microsoft.com/downloads/deta … laylang=en
    * There is an update to 5.7 also available form MS
    - You will also need (from your Windows installation):
    mfc42.dll
    - Once you have the files placed in your Wine '/system32' folder (via installer or extraction), you will need to register dll files. At minimum, I think you can get by with:
    wine regsvr32 /path/to/vbscript.dll
    wine regsvr32 /path/to/wshext.dll
    Others may be required ... if you get more messages alerting you to register files, just repeat for each one necessary. Or register them all and be done with it.
    Once you have WSH setup, you can launch the VBScript file by opening 'winefile' and double clicking on the script. From the command line, you will need to launch it with 'wscript':
    wine wscript "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
    If you attempt to launch the VBScript with just:
    wine "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
    you will get a message about 'BAD EXE Format' or similar.
    Last edited by MrWeatherbee (2007-11-09 15:03:36)

  • HT5246 I installed the Flashback removal tool - now how do I run it?

    I downloaded and installed the Flashback removal tool, but I have no idea where it was installed to or how I should run it. Any suggestions?

    Hi..
    If you are referring to this >   Flashback Removal Tool - F-Secure Weblog : News from the Lab
    Check your Downloads folder.
    The file name is:   FlashbackRemoveal.zip
    Then double click that file to open.
    Click Accept. After that you should see a dialog window telling your the trojan was removed or not found.

  • My iPod touch was stolen and recovered.  I can use my Apple id for this site but the theif changed the Apple id needed to update apps etc and I do not know how to delete his acct. Any help with this will be greatly

    My iPod touch was stolen and recovered.  I can use my Apple id for this site but the theif changed the Apple id needed to update apps etc and I do not know how to delete his acct. Any help with this will be greatly appreciate

    If the thief enabled activation lock on the device, then there is nothing that can be done.  Only the password for the Apple ID that it is locked with can disable activation lock.

  • Running eclipse java project on command prompt

    Hi all,
    I have one simple java project and that is very well running in eclipse. I have added some external JARs to that project. It performs this job- it creates connection to server, and listens to the signals from server.
    My question is - how do I run that java project on command prompt?*
    I want to run that using ANT or simply I want to make a JAR file so I can execute JAR on command prompt. I created JAR, but it doesn't contain external jar which I added to the project. So I was not able to run that project.
    Can you please tell me any of the method - using ANT or by making JAR?
    Also can you be little bit more explanatory in reply?
    Thanks

    I want to make a JAR file so I can execute JAR on command prompt.This is very likely a good way to proceed. It is explained in great detail in Sun's Tutorial in the section on [Packaging Programs in JAR Files|http://java.sun.com/docs/books/tutorial/deployment/jar/index.html].
    I created JAR, but it doesn't contain external jar which I added to the project. So I was not able to run that project.Yes - the jar file you create has to know about the classes and other resources in that external jar. Otherwise, at runtime, the program will not be able to get at the stuff it needs. Usually you don't include that other jar (or its contents) in the jar file you are creating. Instead you provide your jar file with a manifest that describes the other jar's location. Details are also in the tutorial.
    One thing to note is that Sun's tutorial provides a lot of explanatory, conceptual, material. To that end it keeps the context simple and transparent by describing the steps as they would be carried out by someone working at the command line. The Eclipse documentation and forums might provide a more click-this-drag-that "explanation". If you do follow the method in the Tutorial and get stuck, post a description of the actual commands you used and their outcome.

  • Accessing Bash Command on Lion OS X.

    Hello Apple Forum Community.  Can anyone help me to understand how you access Bash in Lion (through which Utilities)?  If you are not a professional programmer or developer, is Bash command still worthy of being educated about on your Mac?  A website was describing a Bash command prompt for UNIX passwords; hence, could using Bash to generate and/or organize your passwords be your best bet?  Should we really trust 'random password generator' websites to create UNIX passwords, or are we simply wasting our time if we are really not creating the proper password for our Lion OS X. 
    What other functions can Bash be useful for?  Are there a few simple ways to know and/or get into Bash (to know a few advantageous command prompts) for the general Mac user.  Are any Bash commands different for OS X Lion, or are there new ones as well? Thanks.

    Open Applications->Utilities->Terminal.
    I believe the default shell for at least the last few releases is bash, so you'll get straight to it (though I have mine set to tcsh). If not, just type /bin/bash to start a bash shell.
    Random password generator sites are fine  - all they do is generate a random sequence of characters. However, you're probably going to have to write that password down to remember it, which makes it less secure. Better to come up with a sequence that has some mnemonic meaning to you, that contains uppercase and lowercase letters, numbers and other characters, and is at least eight characters long.
    I doubt there's any need for the "general Mac user" to be using a shell, but if you are interested in programming or getting to know how the OS works "under the hood", then it's worth learning about. There are any number of good resources on the web about UNIX shells.

  • Running the net or sc commands with the rights of the local System

    Hi
    In Windows 7 SP1, how do I run the net or sc commands with the rights of the local System?
    Thanks
    Bye
    Balubeto

    Hi,
    I agree with
    T. Kujala , it's easy to achieve this goal with PsExec.exe, the tool is easy to download and use.
    http://blogs.technet.com/b/askds/archive/2008/10/22/getting-a-cmd-prompt-as-system-in-windows-vista-and-windows-server-2008.aspx
    If you don't want to use external utilities, then this link below might give you some hints
    http://blogs.msdn.com/b/adioltean/archive/2004/11/27/271063.aspx
    Yolanda Zhu
    TechNet Community Support

  • How do I run a bash script *before* login?

    I've got a bash script that opens an SSH tunnel that I'd like to run (as root) before any user logs in. How do I go about getting this script to run between boot and user login?
    Thanks.

    Post Unix queries to the Unix forum under OS X Technologies where those mavens frolic.

  • How can I run a BW Function from EXCEL-IN-PLACE (BPS)??? Please give any ex

    How can I run a BW Function from EXCEL-IN-PLACE (BPS)using VBA??? Please give any example.
    I would like to run my function module ZMY from EXCEL-IN-PLACE using VBA and get a result.

    if you are using excel in place in the web application environment I doubt you can, you've never really had any macro functionalty there.
    If you are in the gui environemnt (Planning folders) it will depend on how you want to invoke the module...

  • I keep getting a message saying my protection engine has corrupted and that i should try re-installing live update. What is live update and how do i run it? - be grateful for any help

    Hi,
    I turn my i mac on and when it has loaded onto the home screen I get a message popping up saying my protection engine has corrupted and that i should try reinstalling live update and my computer will no longer be protected until I do so. Would anyone be able to tell me what live update is and how I would run/reinstall it? - be grateful for any help!!!
    Thankyou

    It would be a great idea to uninstall Norton - you don't need it and it has a pretty poor reputation for mucking up otherwise healthy Macs.
    Have a look at this User Tip from klaus1: https://discussions.apple.com/docs/DOC-2435
    To uninstall Norton:
    https://support.norton.com/sp/en/us/home/current/solutions/kb20080427024142EN_En dUserProfile_en_us
    Edit: To see whether you actually have Norton installed launch Activity Monitor in the Utilities folder. If it's installed you'll likely see some Norton entries there.
    Also, in System Preferences>Users & Groups or Accounts, depending on OS)>Login Items, it might be listed.

  • How to know what reports are running by looking at SSReproting Services to see what reports are running and also any clue of which application is using the reporting services?

    How to know what reports are running by looking at SSReproting Services to see what reports are running and also any clue of which application is using the reporting services?

    To see what reports are running, take a look at the execution log views that are available in the database.  Which views that are available are dependent on your version of SSRS.
    http://technet.microsoft.com/en-us/library/ms159110.aspx
    To see which application is using SSRS is a little more difficult.  You can turn HTTP logging on, which will give you an idea of where connections are coming from, so you can see IP addresses.  You can also look at the execution log view to see
    user accounts.  So, depending on your environment and use of service accounts, this could be easy, or difficult.
    http://technet.microsoft.com/en-us/library/bb630443.aspx
    If all else fails you can look for clues in the SSRS logs.  Good luck...

  • How can I run ni488216.exe without any prompts during installation?

    How can I run ni488216.exe without any prompts during installation (Silent mode)?

    Typically you can do a silent install of the NI-488.2 software by running:
    setup.exe /S LV_INSTALL path=
    Regards,
    Greg Caesar
    National Instruments
    Applications Engineer

  • HOW DO I  RUN A UNIX BASH SCRIPT FROM JAVA??

    HI. Here's a tricky little problem i have. There's a unix bash script that has some commands in it, that manipulate a file. It appends a certain string variable to a file called users. The users file is an ordinary text file.
    I know this script to work perfectly, when i invoke it like this directyl from the command line: ./addusers.sh
    or even: bash /downloads/selinux/policy/addusers.sh
    Now, i have a java program, and its meant to just execute that script. It doesnt throw any Exceptions at runtime. But when i look at the users file, and expect it to have an extra line that was the string variable, the file is UNTOUCHED!
    Again, direct command line invocation works, but not from java. Here's what my invocation from java looks like:
    Process p = Runtime.getRunTime().exec("bash downloads/selinux/policy/addusers.sh");
    The strange thing is, i tried a different bash command. I tried:
    Process p = Runtime.getRunTime().exec("mkdir /temporary");
    and this worked!
    so why not the other one??
    I cant figure it out.

    You say:
    bash /downloads/selinux/policy/addusers.sh
    And you say in Java:
    Process p = Runtime.getRunTime().exec("bash
    downloads/selinux/policy/addusers.sh");
    As if a leading / would be missing from the Java
    version...nyix says:>
    ...OK sorry about that. i DO have a / in front of the downloads.... section in the java method. So its:
    Process p = Runtime.getRunTime().
    exec("bash /downloads/selinux/policy/addusers.sh");
    HELP please?

Maybe you are looking for

  • Add a Link Column in WAD Report

    Dear All. my requirement is to show the link column as a first or last column of the table, user want that if he click the link the outlook should open with the email taking from the vendor. All i want to add a new column and place the following (<ma

  • TEXTAREA in JSP dosen't work

    TEXTAREA in JSP dosen't wrap to next line and I use the following syntax. <input type='textarea' name='code' rows='2' cols='30' style='width: 180px;height:30px'> when I type it keep wraping in the first line and dosen't go to 2nd line at all.

  • Oracle Express on Ubuntu 7.10 not starting up..

    I install the .deb package (as root) and all seems well.. it says its starting up.. but when I try to connect to the web interface on port 8080 or the listener on 1521.. nothing seems to be running.. What logs can I check out to see what the scoop is

  • Best accessories for uMBP -- Cleaning and Protecting

    Hey guys, Just wondering what you guys use to clean your uMBP -- I've been using iKlear with the cloth they give us and I have no problem with that. Is there anything else that you guys use to clean the keys and casing? I only use the iKlear to clean

  • Can't define CF server in Builder

    On 64-bit Windows Vista machine CF 9 wouldn't install 64-bit version - threw Windows 216 error Installed CF 9 32-bit over typical IIS 7 server 127.0.0.1 and localhost both serve  from c:\inetpub\wwwroot CF templates in iis web sites execute normally