vCenter

  • 1.  how to understand hyperic shell command line format ??

    Posted Mar 30, 2007 11:30 PM
    I logged into the hyperic shell and just wanted to check on the commands and their
    output . Im having trouble understanding the sysntax I do a alert list and get :

    alert list
    org.hyperic.util.shell.ShellCommandExecException: Error getting alerts
    Within undeclared throwable was: java.lang.ClassNotFoundException: org.hibernate
    .collection.PersistentBag (no security manager: RMI class loader disabled)

    When I use the"alertdef list "command it comes back with :
    alertdef list <-group | -platform | -server | -service > <resource> [-enabled | -disabled]

    Do I replace -platform with say -linux ? or a particular platforn computer name
    what are they referring to with resource ? is the HQ agent a resource ?

    what is required and what is not. . Cant seen to get anything to work .
    An example for this command is all I need .


  • 2.  RE: how to understand hyperic shell command line format ??

    Posted Mar 30, 2007 11:51 PM
    Hi Mike,

    This issue was logged and resolved:

    http://jira.hyperic.com/browse/HHQ-792

    Essentially, 'alert list' without any parameters should not be
    valid. To get help with any command in the CLI, you can simply type
    'help command' or just 'help' for a list of available commands.
    Also, here's the link to our CLI documentation:

    http://support.hyperic.com/confluence/display/DOCSHQ30/CLI+Reference

    Charles







  • 3.  RE: how to understand hyperic shell command line format ??

    Posted Mar 31, 2007 12:26 AM
    I see the refenece BUT the syntax and what I have to plug in is the question . I used the help but it is unclear as my example shows. If you could give me a example of the alertdef list
    command and use some of the options I could work from that. Please see my 2nd example
    in my original question ..


  • 4.  RE: how to understand hyperic shell command line format ??
    Best Answer

    Posted Mar 31, 2007 04:52 PM
    You will see many commands with similar syntax to alertdef list. You
    do not replace the '-' keywords with anything, it's the <resource>
    that you would replace. The <resource> can either be the ID of the
    resource (if you know it) or the name (use double-quotes if there are
    spaces). For example, I can do:

    alertdef list -server 10001

    or

    alertdef list -server "hq.hyperic.com HQ Agent"

    Also, as my example illustrates, the HQ Agent is indeed a resource,
    it's a server.

    Charles







  • 5.  RE: how to understand hyperic shell command line format ??

    Posted Apr 02, 2007 08:48 PM
    Thank so much an example is worth a thousand words !!