Resource CLI Command

CLI Command: resource

The resource command allows for management of the resources within the HQ inventory. This includes listing and viewing resources, as well as importing, exporting and deleting resources.

If you have any comments or suggestions for this help page, please submit them at the bottom of the page by clicking Add Comment.

resource Commands

Command Description Example
resource list
-platform
-server
-service
-group
-app
Lists resources in the HQ inventory. The default is a list of all resources. The list can be narrowed to a specific inventory level with the appropriate flag value (listed at left): platforms, servers, services, groups, or applications, respectively.
hq-shell::hqadmin> resource list -server
[ Server listing ]
ID      Name                                     Server Type
--      ----                                     -----------
10004   dyn-16.intranet.fuse.net HQ Agent     HQ Agent
10006   dyn-16.intranet.fuse.net HQ JBoss 4.x JBoss 4.0
10008   dyn-16.intranet.fuse.net HQ PostgreSQL 8.1 PostgreSQL 8.1
10003   dyn-16.intranet.fuse.net HQ Tomcat 5.5 Tomcat 5.5
10007   dyn-16.intranet.fuse.net Tomcat 5.0   Tomcat 5.0
hq-shell::hqadmin>
resource view Lists individual resources. Gives more information than resource list.
hq-shell::hqadmin> resource view -server 10007
Server:         dyn-16.intranet.fuse.net Tomcat 5.0 (id=10007)
Server Type:    Tomcat 5.0
Description:
Install Path:   /home/tomcat/jakarta-tomcat-5.0.28
Owner:          hqadmin
Location:
Last Modified:  2/27/06 1:50:14 PM (by hqadmin)
Created:        2/27/06 1:49:55 PM

[Configuration : resource]
  jmxUrl               = 'http://localhost:8080'

[Configuration : control]
  startupScript        = '/home/tomcat/jakarta-tomcat-5.0.28/bin/catalina.sh'
resource set Sets custom inventory properties  
resource delete Deletes a resource. The user will be prompted before the delete is performed.  
resource export Exports the HQ inventory to an XML file, which can be imported using the resource import command. The XML import syntax is described in the Inventory XML Descriptor Syntax document.  
resource import Imports resources into the HQ inventory via an XML file. The XML import syntax is described in the Inventory XML Descriptor Syntax document.  


Related Topics
Return to the CLI Reference.

Labels

 
(None)