CLI Reference
CLI Reference
Available in HQ Open Source unless marked by * for HQ Enterprise only
Many of the commands Hyperic HQ supports through its web user interface and also available through its CLI. This page enumerates the available commands.
If you have any comments or suggestions for this help page, please submit them at the bottom of the page by clicking Add Comment.
Accessing the CLI
To access the HQ CLI:
- Start the shell using the hq-shell.sh script located in the shell installation directory.
- Upon startup, the shell provides a login prompt:
[user@localhost shell]$ ./hq-shell.sh hq-shell::not-logged-in>
- Log in using the same credentials you use in the web UI:
hq-shell::not-logged-in> login hqadmin@localhost Password: Successfully logged in as hqadmin at localhost:2099
Once logged in, you can begin using the shell. To get a list of available commands, type help at the prompt.
| Automating CLI Commands at Shell Startup When the HQ shell starts, it reads commands from the file ~/.hq/shellrc. You can use this file to have HQ automatically execute commands when the shell starts. For example, if the login command is added to shellrc, then you will be automatically logged in to the shell during startup. |
Available CLI Commands
Following is the complete list of top-level commands supported by the HQ CLI. Click the command name for a complete description of the command and its sub-commands.
| Command | Description |
|---|---|
| agent | Lists, controls, and installs HQ Agents * |
| alert | Lists and deletes alerts |
| autoinventory | Runs and manages auto-discovery scans |
| get | Gets shell properties |
| help | Gives help on shell commands |
| login | Logs in to the HQ system |
| metric | Lists metrics and sets up metric collection |
| quit | Terminates the shell |
| resource | Views and updates HQ resources |
| set | Sets shell properties |
| sleep | Delays execution of an HQ command for a number of seconds |
| source | Reads a file and executes the contents |
| time | Times the execution of a shell command |
| version | Retrieves HQ version information |
Return to the User Manual.
Comments ( Hide )
Anonymous says:Nov 12, 2007 09:06 ( Permalink ) |
|
|
meg bartelt says:You are indeed correct. Those three CLI commands were gone by HQ v3.1.1. I've removed them from this help page. – tech writer Meg |
Anonymous says:So has the functionality of those three commands been removed, moved to within another command or made available only for the Enterprise version? |
|
|
meg bartelt says:The commands were entirely removed. They are no longer accessible anywhere. - tech writer Meg |
I am running 3.1.1, OSS version, which is the most recent as far as I know (and the front page of the docs seems to confirm this as it says current version is 3.1.1). And this list of commands does not seem to correspond to what I have listed. Specifically, I am missing:
Is this a matter of "DOC" being a live document with some features only available in the current source tree? Are these commands only available under certain contexts? Or is this page mislabeled for Enterprise only?