VMware Cloud Community
hypermike
Contributor
Contributor
Jump to solution

how to understand hyperic shell command line format ??

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 .
0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

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





View solution in original post

0 Kudos
4 Replies
admin
Immortal
Immortal
Jump to solution

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





hypermike
Contributor
Contributor
Jump to solution

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 ..
0 Kudos
admin
Immortal
Immortal
Jump to solution

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





0 Kudos
hypermike
Contributor
Contributor
Jump to solution

Thank so much an example is worth a thousand words !!
0 Kudos