How to find children and parent of a resource in the HQU

How to find children and parents of a resource in the HQU?
for example, there is a server, how can I find all its services and its platform?

by the way, where can I get a full HQU API doc? There is no description in detail in the Documentation of HQU:http://support.hyperic.com/display/hypcomm/HQU+Documentation
Advertisement

Hello

You can use the ResourceCategory.getPlatform () method to get the parent platform and you can use Resource.getViewableChildren () to the children. Here is a very basic example which comes out in the server.log:

import org.hyperic.hq.hqu.rendit.metaclass.ResourceCategory
import org.hyperic.hq.hqu.rendit.helpers.ResourceHelper
imports org.hyperic.hq.authz.server.session.AuthzSubjectManagerEJBImpl AuthzMan

def authzMan = AuthzMan.one
def Overlord = authzMan.overlordPojo
def rHelper = new ResourceHelper (overlord)

def resource = rHelper.find (server: 12226)

println ("" Resource: "+ resource.name +" is a child of ' + ResourceCategory.getPlatform (resource) .name + "and has children:" ")
resource.getViewableChildren (overlord) .every child {-->
println (child.name + "\n")
}

As far as documentation goes, what you see on this page is all that is available at this time. I use the code source HQApi as reference when I can't find anything in the docs.

Tags: VMware

Similar Questions

  • Log in: how to find children and return their full hierarchy

    I tried to find messages with an answer for this but no luck.

    Let's say some queries return line these lines (for example, the employee/manager relationship):

    John

    -Richard

    -Jason

    -Mark

    -Renee

    -Jay

    -Mary

    If I need to return everybody whose name starts with an "M", I can just wrap the hierarchical query in another SELECTION and apply a condition. Then what I get is:

    -Mark

    -Mary

    However, what I really need, is the following:

    John

    -Richard

    -Mark

    -Renee

    -Mary

    In other words, I need not only the lines that meet the condition, but also all their parents at the root.

    Any ideas on if/how this is possible?

    Thank you

    Luis

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > SELECT LPAD (' ', 2 * (LEVEL - 1)). Ename ename
    2 FROM (SELECT DISTINCT empno, ename, Bishop
    3 FROM emp
    4 START WITH ename LIKE'm %'
    5 CONNECT BY PRIOR mgr = empno)
    6 START WITH mgr IS NULL
    7 CONNECT BY PRIOR empno = mgr;

    ENAME
    -----------------------------------------------------------------------------
    KING
    BLAKE
    MARTIN
    CLARK
    MILLER

    SQL > SELECT LTRIM (LPAD ('-', 2 * (LEVEL - 1)))
    2            '-') || ' ') || Ename ename
    3 FROM (SELECT DISTINCT empno, ename, Bishop
    4 FROM emp
    5 START WITH ename LIKE'm %'
    6 CONNECT BY PRIOR mgr = empno)
    7 START WITH mgr IS NULL
    8 CONNECT BY PRIOR empno = mgr;

    ENAME
    -----------------------------------------------------------------------------

    KING
    -BLAKE
    -MARTIN
    -CLARK
    -MILLER

    SQL >

  • How to find, separate and convert hexagonal channels streaming via the com port?

    Hello

    I have a xbee wireless network set up with 3 sensors. Output 1 (23bytes) at 20 Hz, the other 2 (46bytes) to 1 Hz. The data arrives correctly in the computer and I can see the stream on my read series VI (joint) basis. on my software XCTU (terminal program that comes with the wireless nodes), the console displays the packets received:

    22/08/2016 13:36:04.196, 6126, RECV, 7E00178100002B00205A203030303230207A2030303031350D0A00
    22/08/2016 13:36:04.252, 6127, RECV, 7E00178100002B00205A203030303230207A2030303031350D0A00
    22/08/2016 13:36:04.296, 6128, RECV, 7E00178100002B00205A203030303230207A2030303032300D0A04
    22/08/2016 13:36:04.346, 6129, RECV, 7E00178100002C00205A203030303230207A2030303032320D0A01
    22/08/2016 13:36:04.346, 6130, RECV, 7E00178100002F00205A203030303230207A2030303032320D0AFE
    22/08/2016 13:36:04.436, 6131, RECV, 7E002E81000032004F20303230362E332054202B32352E38205020313031382025203032302E3237206520303030300D0AC4
    22/08/2016 13:36:04.436, 6132, RECV, 7E00178100003200205A203030303230207A2030303032300D0AFD
    22/08/2016 13:36:04.486, 6133, RECV, 7E00178100003600205A203030303230207A2030303031350D0AF5
    22/08/2016 13:36:04.536, 6134, RECV, 7E002E81000032004F20303230362E362054202B32362E38205020313031392025203032302E3237206520303030300D0ABF
    22/08/2016 13:36:04.596, 6135, RECV, 7E00178100003800205A203030303139207A2030303030380D0AE9
    22/08/2016 13:36:04.596, 6136, RECV, 7E00178100003300205A203030303138207A2030303030380D0AEF
    22/08/2016 13:36:04.652, 6137, RECV, 7E00178100003100205A203030303139207A2030303032320D0AF4
    22/08/2016 13:36:04.652, 6138, RECV, 7E00178100002F00205A203030303139207A2030303032340D0AF4
    22/08/2016 13:36:04.738, 6139, RECV, 7E00178100002F00205A203030303139207A2030303032310D0AF7
    22/08/2016 13:36:04.786, 6140, RECV, 7E00178100003000205A203030303139207A2030303032300D0AF7
    22/08/2016 13:36:04.836, 6141, RECV, 7E00178100003200205A203030303139207A2030303032320D0AF3
    22/08/2016 13:36:04.886, 6142, RECV, 7E00178100003200205A203030303139207A2030303031380D0AEE
    22/08/2016 13:36:04.946, 6143, RECV, 7E00178100003200205A203030303139207A2030303031330D0AF3
    22/08/2016 13:36:04.996, 6144, RECV, 7E00178100002E00205A203030303138207A2030303031310D0AFA
    22/08/2016 13:36:05.046, 6145, RECV, 7E00178100002C00205A203030303138207A2030303031360D0AF7
    22/08/2016 13:36:05.096, 6146, RECV, 7E00178100002C00205A203030303139207A2030303032350D0AF6
    22/08/2016 13:36:05.146, 6147, RECV, 7E00178100002E00205A203030303138207A2030303031340D0AF7
    22/08/2016 13:36:05.146, 6148, RECV, 7E00178100002F00205A203030303138207A2030303031330D0AF7
    22/08/2016 13:36:05.236, 6149, RECV, 7E00178100003000205A203030303138207A2030303032300D0AF8
    22/08/2016 13:36:05.286, 6150, RECV, 7E00178100003300205A203030303138207A2030303032320D0AF3
    22/08/2016 13:36:05.346, 6151, RECV, 7E00178100003700205A203030303138207A2030303031360D0AEC
    22/08/2016 13:36:05.396, 6152, RECV, 7E00178100003900205A203030303138207A2030303031320D0AEE
    22/08/2016 13:36:05.446, 6153, RECV, 7E002E81000032004F20303230362E332054202B32352E38205020313031382025203032302E3237206520303030300D0AC4
    22/08/2016 13:36:05.446, 6154, RECV, 7E00178100002A00205A203030303138207A2030303031360D0AF9
    22/08/2016 13:36:05.506, 6155, RECV, 7E00178100002600205A203030303138207A2030303032320D0A00
    22/08/2016 13:36:05.506, 6156, RECV, 7E00178100002300205A203030303138207A2030303031380D0AFE
    22/08/2016 13:36:05.566, 6157, RECV, 7E002E8100002E004F20303230362E362054202B32362E37205020313031392025203032302E3237206520303030300D0AC4

    Since it is an endless stream of hexagonal channels, how can I isolate each of them so that I can convert them then their values digital sensor to plot, display, etc.?


  • Hi people! Can someone advise me something in Lightroom please CC.  When I export files once after you have finished the adjustments etc. and I click 'Save with the previous' - how to find where it was recorded, if I forgot the last folder saved to?

    Can someone advise me something in Lightroom please CC. When I export files once after you have finished the adjustments etc. and I click 'Save with the previous' - how to find where it was recorded, if I forgot the last folder saved to?

    I guess you mean "Export with previous. If so, open the export page. It will be defined as "precedent".

  • How to find users and groups in the Sun box

    Please adivce how to find users and group in sunsolaris

    Thanks in advance

    We can get all the details of the Group of the file/etc/Group.

    Similarly the user details are in/etc/passwd.

  • How I find myself with two passwords to iCloud for the same account?

    How I find myself with two passwords to iCloud for the same account?

    For security reasons, I only use iCloud for Contacts and "find my iPhone".

    Several months ago Apple forced me to change my password to iCloud.  So I did this.   In the last months, I used successfully the new password to 10 or 12 times when asked without problem.

    However, I received a notification of a software update for my Apple Watch. I did the update without problem. However, after completing the update my iPhone asked me to connect to my iCloud account. When I did this, she rejected my password. I made 4 attempts typing very slowly and with care for you sure I did it right.

    Then, operating under a hunch, I decided to enter my old password to iCloud. It worked?  I'm confused about this, any ideas would be appreciated.

    I had a similar problem last year. I had to call Apple. Contact is a bottom of this page.

  • With the help of Hewlett Packard Win 7 64 bit with Lightroom 5.7. I have read many explanations of how to drag and drop digital images in Lightroom - but I never got.  I need to know WHERE LTRM drop, HOW to find them and how to get them I

    I need to know EXACTLY how to drag and drop digital pictures into LTRM. WHERE to put them. HOW to find them. How to MOVE in the DEVELOPMENT MODULE.

    When you drag / drop photos, you actually perform a step to import, so it would be wise to figure out how to import your photos and all of the affected options. I agree with Jim Hess and al., drag / drop are an easy way to screw up your organization. Importing is a much more organized way to manage things. There are a lot of tutorial vid3os on import.

  • How to find .fmb and the path of .fmx pending

    Hi all
    I use oracle EBS 12.1.1
    I can access form of people in India HRMS manager-> people-> Enter and keep the responsibility.
    I want to make some adjustments on this form of people.
    How can I do that.
    Can I have to first FTP which form the server, then how to find where this form is stored?

    Best to ask this question in the forum of the EBS.

  • How to find name and instnace host names in the CCR

    Hello

    How to find the name of the instance of the RAC and the hostnames in RAC environment.

    Thank you

    You can find the information using sqlplus, connect to one of your RAC instances, try with it, hope this helps.

    SQL > select instance_number, instance_name, status of gv$ instance;

    INSTANCE_NUMBER STATUS INSTANCE_NAME
    --------------- ---------------- ------------
    OPEN 1-A01
    OPEN 6 A02
    OPEN 5 A03
    OPEN 4-A04
    OPEN 3 A05
    OPEN 2 A05

    6 selected lines.

  • Uninstall windows games 8 and how to find them and delete them

    I can't find games on my windows 8 and when I run the virus it scans stalls on the course through png for the games files

    You want to "Uninstall" your games, rather than just deleting (which removes only the partially).

    Windows key + X

    Control Panel

    Programs

    Programs and features

    (right click on the game of your choice and select 'Uninstall')

    Sometimes the games are listed by the Publisher (such as tangent, rather solitary games, etc.) If you are not sure, do not uninstall it until you do a Web search and will find his name of the editor).

    NOTE:  Be very careful when you do this... it really uninstall quick.  Don't carelessly zip autour with your mouse, or finger or you can easily remove the other important programs by accident.

  • How to set up and use two video cards at the same time.

    I have HP Pavilion a6150d desktop under Windows XP SP3 PC. My goal is to be able to use the integrated video card and GeForce 220 video card I just buy at the same time.

    The integrated video card and GeForce video card (connected to the PCI-E) are installed and usable, but the problem is that I think that my computer cannot detect a video at a time card, so I can't use 2 monitors at the same time.  The video only card detects my computer is what I chose as a primer in the BIOS. When you go to the Device Manager display adaptors I can only find an available video card and that's regardless of Setup as primary in the BIOS.

    My GeForce 220 have VGA, DVI and HDMI display connectors, but I don't have that VGA cables. So my only option at the moment is to use my video card GeForce with band single VGA connector and integrated everyone to use my two monitors.

    I hope someone can help me without spending more money...

    "You're not going to be able to use the graphics card integrated Intel and PCIe x 16 graphics card at the same time."

    Thanks Frank, this already answered my question, you help me already by saving my time searching for the fix (since there is NO solution), although it won't save my money I like always your quick response and your support. My monitor is HPw1907 with a DVI connector, so I'll just buy a DVI cable. My other monitor LCD SHARP that have a HDMI and VGA connector so I'll just use the VGA cable in this one.

    So I guess that my simple goal is not achievable using HP Pavilion a6150d. I love HP more than Dell, but it's doable in Dell, so I hope that HP will have way on how to make this thing work in the future.

  • How to find any user while increasing its application by the OIM 11 g

    Hello

    In the Access screen OIM 11 g asks, how to find any user while trying to raise a request for access?

    Currently, when I connect on OIM 11g with my id and then I can search only my subordinates not all present users in IOM.

    I know that it comes by default with IOM 9.1.0.2 for OIM 11 g not sure than the required configuration changes?

    Please help me if you have any information on that.

    Thank you!!

    I know that it comes by default with IOM 9.1.0.2

    It does not come by default in IOM 10 g.

    In OIM 11 g, create a strategy of Authroization for user Search access and assign roles for which you want to apply this policy. Research work at the level of the Organization, as we in IOM 10g.

  • How can I delete and reinstall my Macbook pro at the new factory

    I bought a Macbook pro 13-inch, mid 2010 at a yard sale and I want to do as good as new. I ordered 2 DVD discs for her and have just received. Applications install DVD and Mac os x install DVD. I don't know anything about computers other than how to turn it on. can someone guide me, step by step what to do to clear all personal data previous owners?

    Snow Leopard erase and install

    1. Insert the Snow Leopard DVD in the optical drive and restart the computer.
    2. Immediately after hearing the chime hold down the C key.
    3. Release the button when the Apple logo appears and wait for loading to complete.
    4. After the installer loads, choose your language and click on the continue button. When the menu bar appears select utility drive in the Utilities menu.  After disk utility charges select the entry out-bumpy in the list aside (mfgr. size ID and disc drive.)  In the right side of the disk utility window, click the Partition tab.  Set the number of partitions of one (1) in the menu dropdown. Click the Options button and select GUID, click on OK, the value of the Mac OS Extended journaled format type. Finally, click on the apply button.
    5. Once the format is complete, quit disk utility.  Continue with the installation of OS X and follow the directions.
    6. Once installation is complete, the computer will restart in the installation wizard. After completing the Setup Wizard, you will use a new installation of Snow Leopard. Open the software update and install updates recommended.
    7. Download and install Mac OS X 10.6.8 v1.1 updated Combo. If necessary. It is not necessary if you are selling or giving your computer away.
  • How to only new and updated backup files to update the

    When I backup by using the backup and Restore Center it backup all my files each time, taking up a huge amount of space and take ages to complete. How can I put it to back up only new files or files that have changed since the previous backup?

    Use a third-party software. If you want a straight file copy program, second copy is excellent and inexpensive. If you want the imagery with imagery of incremental backup, try the version of Acronis True Image Home . MS - MVP - Elephant Boy computers - don't panic!

  • How can I stop and then resume when you use the magnetic Lasso tool?

    CS4 on Mac. I have some fairly complicated selections to make and the magnetic lasso tool seems a good choice. However: How can I stop and then resume when in use? For example, I would like to zoom, start by dragging along the edge, then stop, move the image to a different area of it is in the middle of my screen, then pick up again where I left.

    Hi MarieMeyer,

    You can press the SPACEBAR shortcut to activate the hand tool temporarily once you are finished with the selection on a part of the image.

    Then, move the image with the key space key and let it continue with the selection by using the magnetic lasso tool.

    You can use the SHIFT key to add to the selection by using the magnetic lasso tool.

    Kind regards

    Claes

Maybe you are looking for

  • Satellite C660-1RQ, no internet connection

    Hi all I know that he of been asked several times, but in any case you could provide information, what should I do to set up an internet connection? I have Win 7(32bit) installed, internet is to be provided by the cable operator but I can t set up a

  • Windows 98 license number

    can anyone answer me on this issue of license? My application needed to run on windows 98, but because Windows 98 is selling to the market, can we just install to use it without buying any license? or can buy us Windows 7 license, then install Window

  • Add or remove programs list has an extra space with black blocks and white space.

    This problem causes the list to be VERY long with some programs listed at the top, and then, many white and black spaces blocked in betweent the rest of the programs.  I do not have autocad and I ran the .exe that true negative results in Exposeicon.

  • Photosmart C5283 installation on windows 8

    I have a Photosmart C5283 all in one. I bought a new computer - Lenovo Ideapad Z710. I want to install the printer on the computer, but I get a message that the operating system (windows 8) is not supported. How can I install the printer? I heard tha

  • Cannot organize Windows Contacts by last name

    When I open Windows Contacts, the contacts are all sorted by first name (the full name, in fact).  Is it possible to sort/organize the list of contacts by last name?  This is how most people organize their address books.