Several possible results of Script plugin?

Hi all

My company has several custom applications that I am considering writing plugins for.  If successful, we can move forward with a bigger HQ demo.  What I'm trying to understand, that is if it is possible to have multiple "instances" of a metric in a plugin XML.  Please excuse me if this is an a newbie, I'm indeed a beginner HQ.

For example, the application can have global stats, but then to have a variable number of groups, each with their own settings:

App1:
-Avail %
-CPU %
-Last file processed
-Time since the last file
-Group 1:
-Name
-The State
-Process time
-Treatment of the file
-Group 2:
-Name
-The State
-Process time
-Treatment of the file

Different servers would have a different number of these groups of group-#, so I wouldn't have to write the plugin to take the maximum number of groups and then simply return a bunch of zeroes or something.  This is similar to the record variables in the IO subsystem.  Due to the nature of the application, I learned to do this via a script, but I can format the output in any way.

Any thoughts?

Thank you
Andrew

There are two ways that we could manage the Autodiscover:
-The CLI has a 'import of resources' command, which reads an xml file
Description of all the types of server and service you want to create or
Update.  Of course, the xml file could be generated by a script.
-We had the intention of adding the auto-decouverte script-able, it would be
a great use case

Regarding the execution of the script to collect surveillance data, there are
built-in caching.  The cache key is the metric properties
model.  In the example of iostat, where the model is:

exec:file=PDK/scripts/device_iostat.pl,args=SDA:availability

The properties/cache-key would be:

file=PDK/scripts/device_iostat.pl,args=SDA

If you want the script to collect data for all resources in a
single turn, you could just change the model as follows:

exec:file=PDK/scripts/device_iostat.pl:sda_Availability

Which makes the properties cache-key/identical for all resources:

file=PDK/scripts/device_iostat.pl

The io-device - plugin.xml would change to:
    
value="exec:file=%script%:%device%"/ >


model = ' ${model} _Availability.
indicator = "true" / >

And device_iostat.pl would be just the format of the output with device keys
key name:
Print "labels of $_ ${device} [$i] = $values [$i] \n";

The lifetime of the cache is defined by the metric, including intervals
default values are defined by the plugin and can be changed later by-
resources or in the world by type in the user interface.
So, if your metric intervals have been set up to collect all 5
minutes, run the script would only once every 5 minutes without worrying
How many resources, the output of the script applies to.

For this, all the senses?  Whatever it is, I'll do a second
version of the iostat plugin that works this way, which should be more
Claire.

On 4 January 2007, at 21:34, Andrew Noonan wrote:

> Hi Doug,.
>
> Thank you for the quick response!  I saw the example iostat and
> while it would work to implement the structure of the Group/App
> concept, it seems to indicate that you would have to manually
> define each resource.  As you can imagine, if I've got 40 groups
> a single application and 20 on the other, through moments of 60 UI to set
> each group is rather painful.  In addition to this, as I understand it
> good things, the script that collects this information will
> call 40 times on this first server just to get one
> 'round' of data.  I guess it could be minimized by design
> the script to create a cache file, but then you have to worry
> on all problems that can bring.  And then, maybe I'm
> base this concern on a false assumption.  It looks like the iostat
> script needs * someone * to tell him what to send as input devices
> to the wrapper script.  I'm trying to design it for the output
> a single call returns information for the equivalent of several
> resources, just as the original iostat returns information on
> multiple devices.
>
> If HQ can do, that's fine.  In other monitoring solutions
> I worked with, the variable part of this (usually called a)
(> 'instance', 'class' or something similar) has been defined (usually in
(> XML) with a key of some sort attribute (name, PID, etc) so that the
> next call data could be associated to the previous call
> data.  In the present was if you were a tree OID, or call
> iostat, surveillance or other process, you just have to define
> the attributes of the instance instead of each individual thing.
>
> If no, then no, it's not the end of the world... I may be
> could create a family of plugins for groups (Group - 1 -
(> plugin.xml, group-2 - plugin.xml, etc..) and auto-discovery group
> existance?
>
> Thank you,
> Andrew
>

Tags: VMware

Similar Questions

  • Tile join script/plugin required

    I need help because it's a little bit urgent and I have no idea about PS scripts yet. I need a script/plugin PS CC 2014 that connects all the images in a folder selected in a huge image based on their filenames, which follow the model tile_X_Y.png where X and Y are the coordinates of tiles that can be positive (not character) or negative (""-"character") and the number of digits (no previous 0) varies. A possibility to choose the directions of size and axis of tile would be great, but in my case 100 x 100 px as is necessary, the horizontal coordinates are growing at the road right and vertical down, tile_ - 3_7.png should be moved to the left and 700px down 300px. The png have a transparency that must not be lost (no opaque background layer), if there is in the folder files by file name not following the model that they must be omitted.

    I think this should be easy, but I don't really have the time to do that myself, I'll appreciate any help.

    Why would you think that someone would want to do your job because you can't and don't have the time to do?  Yes, it would be easy for you if someone else did your work.  If it's really urgent, you have a big problem of IMO. User here that help other users learn seems you have not the time to learn.  I hope you enjoy what I have written

  • Looking for a SQL query to retrieve callvariables + ECC to a RESULTS of SCRIPT EXECUTE (translation VRUS)

    Hi team,

    I'm looking for a SQL query check data (ECC + CallVariable) due to a RESULT of SCRIPT EXECUTE when you ask an external VRU with a translation route to VRU with a 'run external Script '.

    In my view, that the data are analyzed between the termination call detail + termination call Variable.

    If you have already such a SQL query I would be very grateful to have.

    Thanks and greetings

    Nick

    Omar,

    respectfully, shorten the interval of a day might not be an option for a history report ;-)

    I recommend to take a look at the following SQL query:

    DECLARE @dateFrom DATETIME, @dateTo DATETIME

    SET @dateFrom = ' 2014-01-24 00:00:00 '

    SET @dateTo = ' 2014-01-25 00:00:00 '

    SELECT

    TCV. DateTime,

    TCD. RecoveryKey,

    TCD. RouterCallKeyDay,

    TCD. RouterCallKey,

    VME. EnterpriseName AS [ECVEnterpriseName],

    TCV. ArrayIndex,

    TCV. ECCValue

    OF Termination_Call_Variable tcv

    JOIN THE

    (SELECT RouterCallKeyDay, RouterCallKey, RecoveryKey IN Termination_Call_Detail WHERE DateTime > @dateFrom AND DateTime)< @dateto)="">

    THE tcv. TCDRecoveryKey = tcd. RecoveryKey

    LEFT OUTER JOIN Expanded_Call_Variable VME ON tcv. ExpandedCallVariableID = VME. ExpandedCallVariableID

    WHERE the tcv. DateTime > @dateFrom AND tcv. DateTime<>

    With variables, you can set up your code (for example, you could write SET @dateFrom =? and let the calling application to fill in the DateTime for you).

    In addition, join two large tables with all the lines, as you did (TCD - TCV) is never a good option.

    Another aspect to consider: all the ECC is actually arrays (always), is not good to leave aside the index value (tcv. ArrayIndex).

    G.

  • Is it is possible to add script in Adobe Muse? I have added the functionality to export file .csv to the contact form

    Is it is possible to add script in Adobe Muse? I have added the functionality to export file .csv to the contact form

    Hi Vicky,

    Yes, you can add scripts customized to a page of muse. To do this, you must go to 'properties-> metadata-> html to head page' or ' object-> insert html.

    - Abhishek Maurya

  • Captivate 7 - several test results?

    Hi all

    I'm pretty new to Captivate, but use more Adobe CS for years.  I have trouble understanding how to do one or two things about the results of the quiz, and I was hoping someone might be able to help.  I have a 10 question quiz is worth 1 point each for a total of 10 points, and I slide before and after the test.  I am on Captivate 7 on Windows 7.  If all goes well, Miss me something obvious!  I defer to the greater knowledge of the forum and the users of power I see here!


    First of all, I would like the results slide to display different information according to pass or fail.  Also, I was expecting to set up the continue button to go back to slide 1 if the user fails the quiz.

    My first question, I did a little research and found this tutorial: using advanced Actions (CP5) to show the conclusion, based on several partitions

    I tried to add several legends and images, hiding a game to fail conditions and showing that the other defined in function pass and enter the advances in stocks to add the conditional script.  I put it to run to enter the slide of results, with captionPass and a green check mark set to display with a note of 7 or more, and captionFail, and a red X mark to show with a score under 7.  Unfortunately, I can't understand why he continues to display the legend and the images to spend conditions even when the quiz is down.

    Secondly, I would like to define conditional actions on the continue button so that it moves to the next slide on the pass and jumps back to slide 1 failure.  It doesn't seem like I'm able to change the default buttons added to the result slide, I'm able to add my own buttons or click on the boxes that would be my workaround.  Is there a possible way to achieve this functionality?

    All the help that a smarter person is willing to share with me would be much appreciated!  I have included my workspace screens, the quiz options and advanced actions.

    Please let me know if there is additional information that I am neglecting to post!

    Thank you!

    Jayson

    workspace.JPGquiz_preferences.JPGpass.JPGfail.JPG

    Hi all

    Well, I finally found my own solution.  I remembered that this post had not responded, so I thought I would provide some closure for me and anyone who is having a similar problem.

    Captivate 7 requires a significant amount of trial and error to track problems of this kind.  I literally had to use all the combinations of options and settings before you find what standing things upwards.  It was a combination of the conscious 'branch' parameter have a conflict with the option «resume quiz»

    I had to remove the test of recovery and on/off button each setting and each configuration test, I found that disabling the induction of branch resolved the problem.  This in turn allowed me to add a tip action on the screen after the result slide, which allowed me to return the user to slide 1 with reset questions.

    Not sure why it was so hard to track down.  I know I am a new user to the CP, but the parameters described were in my first few screenshots.  Logically, it tells me that everything in CP is not obvious to even the most advanced users.  This is not a flaw with the people using CP7, it's a flaw with CP7 itself in my opinion.  Too complicated with too much setting conflicts that are not easily recognized.  Well, sometimes you just got to keep hitting your problem until you create your own solution.

    Thanks to Ron and Lily to spend their time trying to help me, I really appreciate it.  I learned a lot about CP7.  But I hope for a little more off CP8, we will be upgrading soon.

    Kind regards

    Jayson

  • Is it possible to generate scripts the assignment of drive letters, such as the computer will remember each reader the same way with every new beginning?

    * Original title: Windows 7 - letters card readers

    I have a laptop computer when it is in a dock, it will have two hard drives connected.  It will also in most cases, a USB flash drive connected in and out of the dock.

    These discs are used for the back to the top of file transfer and I always wish to have the same assigned to them to drive letters.

    When I was with Windows XP, the computer remembered the mapping and each player has been located at the same place every time.  However, now I've upgraded to Windows 7 and is not only the computer remember the drive letter every time, it disconnects regularly readers.

    My question is: is there a way to the assignment of drive letters, such as the computer will remember each script will travel the same with every new beginning?

    I can live with it disconnect readers, but it is precisely an effort to use disk management to change the drive letter for each reader, whenever a re-start of your computer.

    Details: Dell E6510, Windows 7, Western Digital external drives (e-sata) 1 Flash drive (USB).

    You are aware that usb keys are not designed to stay connected on the start or stop, because there is a possibility of resulting corrupt file

  • Export several query result tabs in an Excel worksheet in the form of tabs

    I want to export several "Result of the query" tabs in an Excel worksheet as individual tabs in the workbook. is this possible?

    Not today.

  • Arguments of control Script in the execution of Script Plugin

    I created the following control Plugin in which I intend to use a shell script to start and stop my HQ UI program.
    The run.sh script takes DATALOAD as the argument to start the program and STOP to stop.
    However, when I run the command HQ UI start, the officer proceeds to 'start' as an argument instead of LOADING. Can you please tell what is missing in the plugin?

    <? XML version = "1.0"? >
    < plugin >
    < = "Dataload" server name >
    < plugin type = 'measure' class="org.hyperic.hq.product.MeasurementPlugin"/ >
    < plugin type = "control" class="org.hyperic.hq.product.ScriptControlPlugin"/ >

    < property name = "PROC_QUERY" value="State.Name.eq=java,Args.*.ct=-Dprocessname=Dataload"/ >

    < property name = value = "run.sh" / "DEFAULT_PROGRAM" >
    < property name = "BACKGROUND_COMMAND" value = "false" / >

    < config >
    < option name = "process.query" description = 'Application process' default = ' ${PROC_QUERY} "/ >"
    < / config >

    <! - visible actions in the user interface - >
    < actions include = "start, stop, another" / >

    <! - name = Action = argument value add to the script - >
    < name = "start.args property" value = "DATALOAD" / > "

    < name = "stop.args property" value = "STOP" / > "

    "< name metric = 'Availability' alias = 'Availability' template="sigar:Type=ProcState,Arg=%process.query%:State '.
    category = flag of 'AVAILABILITY' = "true" units = 'percentage' collectionType = "dynamic" / >

    < / Server >
    < / plugin >

    Hi all

    Janne is right
    Documentation:
    Control measures are defined in the XML of Plugin descriptor. Server and Service resources may include a tag that will define controls that supports resources. Several control measures can be set by separating the actions by a comma. For example:

    These actions are spent in action as a string argument.

    So it should work:









    category = flag of 'AVAILABILITY' = "true" units = 'percentage' collectionType = "dynamic" / >


    I had a misunderstanding and therefore does not have the example of the documentation.

    See you soon,.
    Mirko

  • Distribution of LVOOP/FPGA-based application on several possible projects?

    SITUATION: I develop a large enough project that relies heavily on LVOOP: I encapsulated material-interaction and functionality in the classes of LV that are loaded at run time. I have different types of plug-ins that are interacting with each other in the first level VI. These types of plug-ins are made in more generic classes defining their interfaces that are used by the top-level VI. Plug-ins actual instantiated at runtime classes are child-classes of matching the more generic classes (dynamic distribution).

    PROBLEM: The Labview project file is now big enough and takes forever to load/save. Also, I regularly get crashes or other very odd behavior of Labview himself. For example, Labview stalls when loading the project file, except when it is loaded through the list 'recentlly open project' in the start menu in Labview.

    POSSIBLE SOLUTION: I would like to make an individual Labview project file for each plugin real. This would have the additional advantage that they could be indivually developed by different developers without cause version conflicts.

    The PROBLEM WITH THIS SOLUTION: First tests show that it would work in effect plug-ins that do not target FPGA use. However, many of my plug-ins use the FPGA screws, which are still features some plug-ins (i.e., some plug-ins can use an FPGA VI, while others use it an another VI FPGA: a single FPGA VI will run both, however). For this reason, I would like to put these FPGA VIs in Labview for the plug-in project only, but not in the top-level Labview project. Because otherwise, I would have to update the project level higher every time that someone has written/edited a plug-in that uses an FPGA VI.

    Unfortunately, Labview generates an error when executing in the first level VI a method of a class of plug-in that uses an FPGA VI: "1498 error in Get LV class by default Value.vi. Possible reasons: LabVIEW: library has errors. Correct the errors before performing this operation. "Complete the call chain: get LV class default Value.vi top_level_vi.vi.

    In fact, it not even help to add to the project LV level the target FPGA including the FPGA VI which will be called: the error message remains the same.

    QUESTIONS RELATING TO THE:

    -Is it possible to distribute the LV classes on various projects with some of these projects with their own VI FPGA/resources dedicated.

    - Or is there a completely different solution to avoid a huge project file LV with problems?

    Thanks in advance for any help!

    I discovered that you can access an FPGA VI without adding all resources FPGA (for example the FIFOs, i/o etc.) for the respective project by obtaining the FPGA VI reference via bitfile VI (unlike obtaining by the path of the VI). Exactly what I needed. I now have a project containing the FPGA resources and live FPGA. And in all the other projects that I can make use of the FPGA screws without adding resources FPGA, just by opening the bitfile FPGA VI related references.

    The idea of encapsulating the FPGA VI in own LabVIEW class is also very useful. In combination with obtaining the FPGA VI reference via the bitfile it allows me to charge flexibly different screw FPGA running (according to the settings in the configuration files), again without having to add any combination of FPGA resources to the project.

    Problem solved. Thank you!

  • How to troubleshoot scripts plugin does not not Linux

    I added two scripts of plugin for my client Enterpirse of SUSE Linux 10.

    But it does not work. How to troubleshoot?

    Where is the journal of bbclient errors.

    ------------------------------------------------------------

    Home/BB/BBC4.40-bbpe/ext/BB-DB2.sh

    Home/BB/BBC4.40-bbpe/ext/BB-Memory.sh

    ------------------------------------------------------------

    Here's the ps - ef grep form the client server:

    -----------------------------------------------------------------

    BB@xxx:~/BBC4.40-bbpe/etc> hostname

    XXX

    BB@xxx:~/BBC4.40-bbpe/etc> ls - 1 | grep XXX

    BB@otwdev:~/BBC4.40-bbpe/etc> ps - ef | grep bb

    BB 922 1 0 12:56 pts/7 00:00:00 / bin/sh./runbb.sh restart

    BB 925 922 0 12:56 pts/7 00:00:00 /home/bb/bbc4.40-bbpe/bin/bbrun

    -a /home/bb/bbc4.40-bbpe/ext/bbcd

    BB 930 1 0 12:56 pts/7 00:00:00 / bin/sh./runbb.sh restart

    BB 935 1 0 12:56 pts/7 00:00:00 / bin/sh./runbb.sh restart

    BB 945 1 0 12:56 pts/7 00:00:00 / bin/sh./runbb.sh restart

    BB 945 946 0 12:56 pts/7 00:00:00 /home/bb/bbc4.40-bbpe/bin/bbrun

    -a /home/bb/bbc4.40-bbpe/bin/bb-local.sh

    BB 997 11579 0 12:45? 00:00:01 [kdeinit] konsole

    BB 1064 997 0 12:45 pts/3 00:00:00 / bin/bash

    BB 1799 930 0 12:56 pts/7 00:00:00 /home/bb/bbc4.40-bbpe/bin/bbrun

    -a /home/bb/bbc4.40-bbpe/ext/bb-db2.sh

    BB 2397 935 0 12:56 pts/7 00:00:00 /home/bb/bbc4.40-bbpe/bin/bbrun

    -a /home/bb/bbc4.40-bbpe/ext/bb-memory.sh

    BB 2713 11579 0 12:48? 00:00:00 kdesu u root - c/sbin/yast2

    BB 2901 1 0 12:48? 00:00:00 / opt/kde3/bin/kdesud

    BB 4471 11579 0 12:41? 00:00:00 [kdeinit] konsole

    BB 4559 4471 0 12:41 pts/1 00:00:00 / bin/bash

    BB 10356 4731 0 10:15? 00:00:00 / bin/sh/usr/X11R6/bin/kde

    BB 11579 1 0 10:15? 00:00:00 kdeinit4 running...

    BB 11587 1 0 10:15? 00:00:00 [kdeinit] dcopserver - nosid

    BB 11599 11579 0 10:15? 00:00:00 [kdeinit] klauncher

    BB 11613 1 0 10:15? 00:00:00 kded [kdeinit]

    BB 11670 10356 0 10:15? 00:00:00 kwrapper ksmserver

    BB 11674 1 0 10:15? 00:00:00 [kdeinit] ksmserver

    BB 11693 11579 0 10:15? 00:00:02 kwin [kdeinit] - session 10d4ea77 64000131856755600000165840000_1318576857_742551

    BB 11733 1 0 10:15? 00:00:01 [kdeinit] kdesktop

    BB 11772 1 0 10:15? 00:00:04 kicker [kdeinit]

    BB 11910 1 0 10:15? 00:00:00 kaccess [kdeinit]

    BB 13928 1 0 10:15? 00:00:00 [kdeinit] knotify

    BB 13930 11579 0 10:15? 00:00:00 zen-updater - desktop/usr/lib/w fr-updater / ZenUpdater.exe - patch-view - auto-launch

    BB 13948 1 0 10:15? 00:00:00 [kdeinit] kpowersave

    BB 13951 1 0 10:15? 00:00:00 [kdeinit] klipper

    BB 15094 25309 0 14:54 pts/7 00:00:00 ps - ef

    BB 15096 25309 0 14:54 pts/7 00:00:00 grep bb

    BB 17887 11579 0 12:16? 00:00:00 kio_file [kdeinit] file/tmp/kso socket flange-bb/klauncherBCBbtb.slave /tmp/ksocket-bb/kwritel8dBqa.slave-socket

    BB 17897 1 0 12:16? 00:00:00 kio_uiserver [kdeinit]

    root 24069 24046 12 Oct14? 20:43:03 / bin/sh. / bbconfig

    BB 25225 11579 0 12:55? 00:00:00 [kdeinit] konsole

    BB 25309 25225 0 12:55 pts/7 00:00:00 / bin/bash

    It's really weird.

    then try

    #! / bin/bash - x

    the first line.

    also makes

    ls-l/bin/sh

    point on? / bin/bash?

  • Is it possible to add a plugin to the core module to iptables to VCS?

    Hello

    Is it possible for a third party to add a plugin to the core module to iptables to VCS to protect H.264 video with redundant packets? Can I use the same version of CentOS or Redhat header files?

    Thank you

    Yue Hong Quan-

    https://www.Facebook.com/groups/videoconferencing/
    http://SCOPIA.H323Meeting.com

    His multiple point of view, the part of the technology, the SCV is founded at least not red and I could imagine

    If you have very likely different headers and libs will not work.

    If you find the good ones, don't know if there is any hardening is preventing it from loading in any case.

    Then there's the next part, if what you are trying to archive makes sense and if there would be other ways.

    For GENERAL installation, it would be same negative as the remote endpoint could be confused it you

    Double all RTP packets. If you want to use between two VCS, you could also manage that by

    a box of linux from the start which is just double the packages you need.

    In any case the matching look not so hard, but on the receptor site to the device that

    package is the right one, for example, you want to just take the first or do some

    test of corruption as well.

    Not to mention that I would check what can do your end points, look at clearpath, who is a redundancy

    already in the endpoint RTP stream.

  • Is it possible to use scripts to duplicate a layer?

    I recently asked this question in the Illustrator forum that I did not know there was a separate script forum: find and replace text problem

    I finished just dangling down and solve my problem after spending a few hours just to experiment with script guide.

    Now, I'm finishing the final piece of the puzzle for this script which would be totally solved my problem. Is it possible to make the script duplicate a layer? There is a duplicate() function, but it seems not to apply to the layer element. Is there a work around?

    Thanks for your help

    Michael

    Regarding javascript:
    -CS5, you must name a new layer, called the same name as your source for baptism layer and then duplicate each element of the source for the new layer.

    Be aware that things such as graphical styles, layer, opacity masks on layers and sublayers don't get carried forward like that.

    However, with the CS6 + that allows a script to play an action, you can actually get "whole enchilada" by recording an action where you go into the menu drop down and use the "Duplicate" command This will save "layers > duplicate Selection" in action. Then, you can use javascript to target your desired layer and play this action. Your new layer will be a string of "copy" added automatically, so you can choose to delete or modify that.

  • Get different results even script according to what VM it hits?

    Hello.

    IM starting to Powershell and PowerCLI, so you will know at what level it is on =)

    I get different results depending on what VM my script hits (whetever they may or may not have more than one drive). I do not understand how I can fix this...

    For example, I created 4 new virtual machines.

    TestVMfirst1 have only a single drive

    TestVM02 have 2 drives

    TestVM03 have 3 discs

    TestVM04 have only a single drive

    My goal is to get a CSV with all disks included. I want the name, the data store and SizeGB, this info I get from Get-hard drive.

    When I run my script to select all 4 virtual machines:

    $VMs = get-cluster-name kluster01 : get-vm-name TestVM *

    -----------------------------------------------------------------------------

    $VMs = get-cluster-name kluster01 | Get-vm-name TestVM *.

    $Results = @)

    {foreach ($VM to $VMs)

    $Result = new-object PSObject

    $Result | Add-Member - membertype NoteProperty-name 'Name' - value $VM. Name

    $VMDiskCount = 1

    Get-$VM hard drive | {foreach}

    $disk = $_

    $Result | Add-Member-'Disc ($VMDiskCount) name' name-value $disk. Name - membertype NoteProperty

    $Result | Add-Member-name '($VMDiskCount) Datastore disk' - value $disk. Filename.Split(']') [0]. TrimStart('[') - membertype NoteProperty

    $Result | Add-Member-name 'Disk ($VMDiskCount) SizeGB' - value ([math]: round ($disk.) CapacityKB / 1 MB))-membertype NoteProperty

    $VMDiskCount ++

    }

    $Results += $Result

    }

    $Results | Select-object * | format-table

    -----------------------------------------------------------------------------

    I get the result with max 1 disc:

    Name(1) name of discDisk data store (1)SizeGB disc (1)
    --------------------------------------------
    TestVMfirst1Hard drive 1DS-20140
    TestVM02Hard drive 1DS-20140
    TestVM03Hard drive 1DS-20140

    But if I run the same thing but with TestVM0 * (selects 4-2 VMs):

    $VMs = get-cluster-name kluster01 | Get-vm-name TestVM0 *.

    -----------------------------------------------------------------------------

    $VMs = get-cluster-name kluster01 | Get-vm-name TestVM0 *.

    $Results = @)

    {foreach ($VM to $VMs)

    $Result = new-object PSObject

    $Result | Add-Member - membertype NoteProperty-name 'Name' - value $VM. Name

    $VMDiskCount = 1

    Get-$VM hard drive | {foreach}

    $disk = $_

    $Result | Add-Member-'Disc ($VMDiskCount) name' name-value $disk. Name - membertype NoteProperty

    $Result | Add-Member-name '($VMDiskCount) Datastore disk' - value $disk. Filename.Split(']') [0]. TrimStart('[') - membertype NoteProperty

    $Result | Add-Member-name 'Disk ($VMDiskCount) SizeGB' - value ([math]: round ($disk.) CapacityKB / 1 MB))-membertype NoteProperty

    $VMDiskCount ++

    }

    $Results += $Result

    }

    $Results | Select-object * | format-table

    -----------------------------------------------------------------------------

    I get this result:

    Name(1) name of discDisk data store (1)(1) name of the disc SizeGB disc (2).Disk data store (2)SizeGB disc (2)
    -------------------------------------------- ----------------------------------------
    TestVM02Hard drive 1DS-201Hard 40 2 discDS-20110
    TestVM03Hard drive 1DS-201Hard 40 2 discDS-20210
    TestVM04Hard drive 1DS-20140

    I miss all my disks on TestVM03, I seems that the first VM sets the limit on how many records can be issued in the table... A dirty solution is to create a model on the first target VM disks, but it seems the wrong way to solve my problem.

    Thanks in advance

    You're conclusion is correct, I'm afraid, the first line determines how many properties, you will see.

    Alternatively, you can sort the lines on the number of properties in descending order.

    Something like that

    $Result | Tri-objet-property {($_ |)} Get - Member). {Count of}-descending | Format-Table

  • I logged on and left several of my registered scripts from Adobe Story. What should do?

    I logged on and several of my scripts are gone. I had saved them to my office because the program is highly wonky, gel and does not save as it should I write. But was frustrated to see that things even saved disappears. In addition, the latest version is just a pdf file that can not load in the correct format so that means either this reformatting or cut and paste into an older Adobe Story file. VERY frustrating and no helps Adobe contact available to help restore the lost files. Makes me worry about the use of all the Adobe programs online. Open to suggestions. Pay for Final Cut suddenly sounds worth hundreds of dollars. Time is money after all.

    UPDATED: 45 minutes after I wrote the comment above, DL Support of Adobe Story Rohit inquired about my complaint by e-mail. When I answered the next day, I got a quick response to say that my files have been saved to the project of the sample not all projects. I thank Rohit and asked if there was a way to move in all projects, I can easily see a way. I just sent the message and haven't gotten a response yet, but judging by the rapid attention until now, I am sure I will soon. Just wish there was an easy way to find the contact form help for these issues rather than having to comment here. In addition, I always advise users to save frequently, as the program freezes easily and frequently. Nevertheless, thanks for the help. Happy, it was a little problem of navigation.

  • Troubleshooting minimum script plugin

    I'm starting to write a script simple plugin. I have the following definition of the plugin in /home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/test-plugin.xml:

    <? XML version = "1.0"? >
    < plugin >
    < name of the script = "hq-test-stats" > <! [CDATA]
    Availability of echo = 1
    []] > < / script >

    < = 'Test' server name >
    < name metric = model of the "availability" = "file: exec = pdk/work/scripts/test/hq-test-stats" / >
    < / Server >
    < / plugin >

    When I test the measures running, I get no metric output. What I need to change to get the metric of availability?

    $ / usr/local/java/bin/java-jar /home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/hq-product.jar-Dplugins.include=test-metric m - Dlog = debug
    DEBUG [hand] version.properties [ProductProperties] found via jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/hq-product.jar!/version.properties
    DEBUG [hand] version.properties [ProductProperties] found via jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/hq-product.jar!/version.properties
    DEBUG [hand] product.properties [ProductProperties] found via jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/hq-product.jar!/product.properties
    DEBUG [hand] product.properties [ProductProperties] found via jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/hq-product.jar!/product.properties
    INFO [main] agent.pdkDir=/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk [ProductPluginManager]
    INFO [main] agent.pdkPluginDir=/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins [ProductPluginManager]
    INFO [main] agent.pdkWorkDir=/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/work [ProductPluginManager]
    DEBUGGING [main] [ProductPluginManager] initialization in client mode (pdk=/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk)
    [Home] [MIBTree] No. MIBs directory of DEBUGGING: /home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/mibs
    INFO [hand] [ProductPluginManager] loading plugin: System - plugin.jar
    DEBUGGING [hand] [ProductPluginManager]
    -Manifest entries to: jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/system-plugin.jar!/---
    Implementation-title - system
    Implementation-Version - 4.4.0 - 1509
    Specification-vendor - VMware Inc.
    Manifest-Version - 1.0
    Created-by - 1.5.0_12 - b04 (Sun Microsystems Inc.)
    Construction-home - hotdamn.intranet.hyperic.net
    Build-date - Wed Jul 28 14:15:48 PDT 2010
    Implementation-vendor - VMware Inc.
    Ant-Version Apache Ant 1.7.0
    Type of build - Release version
    Owner-build - bob
    Specification-title - HQ Plugin
    Specification-Version - 4.4.0 - 1509

    DEBUGGING [hand] etc/plugin.properties [PluginData] = > null
    DEBUGGING [main] [PluginData] etc./hq-plugin.xml = > jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/system-plugin.jar!/etc/hq-plugin.xml
    DEBUG [hand] sigar.mirror.procnet = null [SystemPlugin]
    INFO [hand] [ProductPluginManager] loading plugin: sqlquery - plugin.jar
    DEBUGGING [hand] [ProductPluginManager]
    -Manifest entries to: jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/sqlquery-plugin.jar!/---
    Implementation-title - sqlquery
    Implementation-Version - 4.4.0 - 1509
    Specification-vendor - VMware Inc.
    Manifest-Version - 1.0
    Created-by - 1.5.0_12 - b04 (Sun Microsystems Inc.)
    Construction-home - hotdamn.intranet.hyperic.net
    Build-date - Wed Jul 28 14:15:51 PDT 2010
    Implementation-vendor - VMware Inc.
    Ant-Version Apache Ant 1.7.0
    Type of build - Release version
    Owner-build - bob
    Specification-title - HQ Plugin
    Specification-Version - 4.4.0 - 1509

    DEBUGGING [hand] etc/plugin.properties [PluginData] = > jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/sqlquery-plugin.jar!/etc/plugin.properties
    DEBUGGING [main] [PluginData] etc./hq-plugin.xml = > jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/sqlquery-plugin.jar!/etc/hq-plugin.xml
    DEBUG [main] [PluginLoader] sqlquery - plugin.jar /home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/jdbc expanding...
    DEBUG [main] [PluginLoader] sqlquery - plugin.jar += /home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/jdbc/mysql-connector-java-5.1.10-bin.jar
    DEBUG [main] [PluginLoader] sqlquery - plugin.jar += /home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/lib/jdbc/postgresql-7.4.3.jar
    Nurses [SQLQueryMeasurementPlugin] [main] INFO for domain proxy: sql
    INFO [hand] [ProductPluginManager] loading plugin: netservices - plugin.jar
    DEBUGGING [hand] [ProductPluginManager]
    -Manifest entries to: jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/netservices-plugin.jar!/---
    Implementation-title - netservices
    Implementation-Version - 4.4.0 - 1509
    Specification-vendor - VMware Inc.
    Manifest-Version - 1.0
    Created-by - 1.5.0_12 - b04 (Sun Microsystems Inc.)
    Construction-home - hotdamn.intranet.hyperic.net
    Build-date - Wed Jul 28 14:15:51 PDT 2010
    Implementation-vendor - VMware Inc.
    Ant-Version Apache Ant 1.7.0
    Type of build - Release version
    Owner-build - bob
    Specification-title - HQ Plugin
    Specification-Version - 4.4.0 - 1509

    DEBUGGING [hand] etc/plugin.properties [PluginData] = > null
    DEBUGGING [main] [PluginData] etc./hq-plugin.xml = > jar:file:/home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/plugins/netservices-plugin.jar!/etc/hq-plugin.xml
    [MeasurementPlugin] proxy for domain register TCP Socket [main] INFO: socket
    [Main] INFO [MeasurementPlugin] registry HTTP proxy for domain: http
    [Main] INFO [MeasurementPlugin] registry HTTP proxy for domain: url.availability
    [Main] INFO [MeasurementPlugin] registry for domain FTP proxy server: ftp
    INFO [hand] [ProductPluginManager] loading plugin: test - plugin.xml
    DEBUGGING [main] [ProductPluginManager] apparent recovery was an exception (continuous): error in opening zip file
    DEBUGGING [main] [ClientPluginDeployer] unchanged file: /home/hyperic/agent-4.4.0/bundles/agent-4.4.0-1509/pdk/work/scripts/test/hq-test-stats
    [/b][b] [/b][b]

    Hello

    There is actually 3 questions that I see your post. The first is that you have defined a plugin with a instead of a because of this part of the magic behind the scenes change.  You can do one of 2 things:

    1.) change your server to service
    (2.) to add a measure plugin to your plugin:

    The second issue is that the availability of a plugin script is determined by process exit code not a key/value pair.

    The third is that the way you call an option is missing. You must add the-t 'Test' it to tell the agent that you are wanting to do as you are not auto-discovery function.

    java-jar bundles/agent-4.4.0-EE-1509/pdk/lib/hq-product.jar-Dplugins.include=test-metric m - Dlog = DEBUG t 'Test '.

    Here is a slightly modified plugin for reference.




           
    Class = "org. Hyperic.HQ.Product.MeasurementPlugin"/ >



    Output should be something like this:

    java $-jar bundles/agent-4.4.0-EE-1509/pdk/lib/hq-product.jar-Dplugins.include=test m metrics t 'Test '.
    Test availability:
    exec:file=PDK/work/scripts/test/HQ-test-stats,args=0,exec=%exec%:availability
    -Online 100.0%<>

    (I removed debug to prevent it being a huge post)

    I hope this helps

Maybe you are looking for

  • Should I install Adobe Flash v.10 required by Pandora on Safari, but not on Chrome?

    I listened to Pandora Internet radio every day on my iMac with Safari. But today, I can't even connect, because the site requires that I have install ' Adobe Flash v.10 or later. " Then I open Google Chrome and tried Pandora, and it worked very well,

  • Download IOS on IPhone 10 SE

    Hello I downloaded 10 IOS on my iPhone SE but when I click on install - it install - even though I have more than sufficient capacity to install this on my iPhone. No reason to explain why he moved? Thank you!

  • Backup ipad in icloud

    I have several ipads and I could look and see my last one I got for my b - day has never been saved. I tried to save in the cloud and it keeps saying that the last backup was not successful does that mean exactly? I have more than 3 GB of space, any

  • Compaq 6200: Grahpics card Compaq upgrade 6200

    I spent 3 hours searching. So many different customers, so many cards, so many questions. I don't want to waste money because I searched all stores in my area. Wal-Mart, Best Buy and a few private belonging to used computer stores. The pc I have is c

  • The XY graph Plot.LineWidth Property node problem

    Hello! I have a loop, where I repeatedly putting curves in a XY Chart. In the first iteration of the loop, after the first corner appears on the graph (I send data from the graphical indicator), I use a Plot.LineWidth Property node to align the thick