History | Log In     View a printable version of the current page.  
HQ 4.0 EE Release is Now Available | HQ 3.2.5-EE Maintenance Release is Now Available
Issue Details (XML | Word | Printable)

Key: HHQ-3
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ryan Morgan
Reporter: Ryan Morgan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hyperic HQ

Shell commands 'resource configure' and 'metric configure' no longer work.

Created: 03/Mar/06 08:03 AM   Updated: 26/Oct/07 07:35 AM
Component/s: CLI
Affects Version/s: 2.7.0
Fix Version/s: 3.2.0

Verify By: Kashyap Parikh
3.0 Category: UI
Last comment: 56 weeks ago
Resolution Date: 24/Oct/07 08:03 AM


 Description  « Hide
Trying to configure an oracle server through the shell:

hq-shell::hqadmin> resource configure -server 10010
[ Configuring resource: 2:10010 ]
(null) null:
net.hyperic.util.shell.ShellCommandExecException: Unable to configure resource
  [1]-NESTED-EXCEPTION:
  java.lang.NullPointerException
NESTED-EXCEPTION:
java.lang.NullPointerException
        at net.hyperic.util.config.ConfigOption.isOptional(ConfigOption.java:44)
        at net.hyperic.util.config.InteractiveResponseBuilder.processConfigSchema(InteractiveResponseBuilder.java:105)
        at net.hyperic.hq.bizapp.client.shell.ClientShell.processConfigSchema(ClientShell.java:227)
        at net.hyperic.hq.bizapp.client.shell.ClientShell_resource_configure.processCommand(ClientShell_resource_configure.java:93)
        at net.hyperic.util.shell.MultiwordShellCommand.processCommand(MultiwordShellCommand.java:58)
        at net.hyperic.hq.bizapp.client.shell.ClientShell.processCommand(ClientShell.java:151)
        at net.hyperic.util.shell.ShellBase.handleCommand(ShellBase.java:301)
        at net.hyperic.util.shell.ShellBase.handleCommand(ShellBase.java:255)
        at net.hyperic.util.shell.ShellBase.run(ShellBase.java:235)
        at net.hyperic.hq.bizapp.client.shell.ClientShell.main(ClientShell.java:346)
net.hyperic.util.shell.ShellCommandExecException: Unable to configure resource
  [1]-NESTED-EXCEPTION:
  java.lang.NullPointerException
        at net.hyperic.hq.bizapp.client.shell.ClientShell_resource_configure.processCommand(ClientShell_resource_configure.java:103)
        at net.hyperic.util.shell.MultiwordShellCommand.processCommand(MultiwordShellCommand.java:58)
        at net.hyperic.hq.bizapp.client.shell.ClientShell.processCommand(ClientShell.java:151)
        at net.hyperic.util.shell.ShellBase.handleCommand(ShellBase.java:301)
        at net.hyperic.util.shell.ShellBase.handleCommand(ShellBase.java:255)
        at net.hyperic.util.shell.ShellBase.run(ShellBase.java:235)
        at net.hyperic.hq.bizapp.client.shell.ClientShell.main(ClientShell.java:346)
Caused by: java.lang.NullPointerException
        at net.hyperic.util.config.ConfigOption.isOptional(ConfigOption.java:44)
        at net.hyperic.util.config.InteractiveResponseBuilder.processConfigSchema(InteractiveResponseBuilder.java:105)
        at net.hyperic.hq.bizapp.client.shell.ClientShell.processConfigSchema(ClientShell.java:227)
        at net.hyperic.hq.bizapp.client.shell.ClientShell_resource_configure.processCommand(ClientShell_resource_configure.java:93)
        ... 6 more
net.hyperic.util.shell.ShellCommandExecException: Unable to configure resource
  [1]-NESTED-EXCEPTION:
  java.lang.NullPointerException
hq-shell::hqadmin> metric configure -server 10010
[ Configuring metric: 2:10010 ]
Unable to configure 2:10010: Invalid configuration: Error retrieving value: Query failed for CPUUsage: ORA-00942: table or view does not exist

hq-shell::hqadmin>


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Ryan Morgan - 12/Feb/07 09:36 AM

Unset fix version.

Ryan Morgan - 24/Oct/07 08:03 AM

The 'resource configure' command has been removed in 3.2.0 #512. The 'metric configure' command was removed some time ago.

Kashyap Parikh - 26/Oct/07 07:35 AM
resource configure command is removed from shell.

hq-shell::hqadmin> resource configure
resource: don't know how to resource configure

hq-shell::hqadmin> help resource
Syntax: resource <delete | export | import | list | set | view>
    View and update HQ resources.
    For further help on each subcommand, type 'help resource <subcommand>'

      delete: Delete a resource
      export: Export the HQ inventory.
      import: Imports application definition data
      list: List HQ resources by type
      set: Set a resource's custom properties
      view: View a specific HQ resource
hq-shell::hqadmin>