Custom agent - a power setting

Allright, I have looked around and have not been able to find what I'm looking for custom agent documentation.  I have a custom agent script that I want to make it dynamic and re-usable by being able to pass a parameter.  The hope was so that I could deploy several custom agent in which each agent could pass the parameter to get their individual settings. Looks a lot like a logfilter agent where you create several people using the same agent, but feed you to the location of the logs that you want to crawl through the agent.  Similarly, I want to be able to feed my script parameter.

Second, when you look at a custom property agent I see "cmdLine" property  Can someone explain the purpose of this property and how it is used?

Considering how rarely you change settings as you describe, you can more easily deploy a simple configuration file to the location of the agent and set your configuration in the file.  The prototype config file could be included in the zip file you supply the agent script generator, and then be found and modified after the agent is deployed.  It is the process, I used for various agents of PowerShell script, but might work just about any language.

Another approach would be to create a central configuration file and all have the script agents refers to the central location to get the configuration information as required.

Given how limiting the F4 data structure is, there is not much point in getting more complex until a new script agent mechanism, possibly with a future platform F6.

Tags: Dell Tech

Similar Questions

  • Documentation of Custom Agents in development

    Are there documents specifically on the creation of custom agents and/or by creating the data model to host the data for these agents?  I understand that you can write about any script that collects data, but I don't understand how to set the data model for use with the script or if there are other common considerations that must be made during the development of the custom agents.

    There is a specific data model guide for Foglight, which includes a tutorial for adding new models.

    It is available online here: Guide of Foglight data model, or here on the Support Portal in PDF format: PDF data model Guide.

    For custom script agents, first read the Administration guide: Building Script Agents.

    Hope this helps,

    Shay

    SR. Technical Writer for Foglight

  • Beginner with custom Agents

    Just read a few posts on Custom Agents and got all excited!

    I need to be able to monitor a specific folder and count the number of files with it.

    If I have used a script like

    strComputer = "."
    Set objWMIService = GetObject ("winmgmts: \"& strComputer & "\root\cimv2" ")

    Set colFiles = objWMIService.ExecQuery ("ASSOCIATORS OF {Win32_Directory.Name = 'c:\temp'} where" & "ResultClass = CIM_DataFile")

    WScript.Echo "TABLE MXQueue.
    WScript.Echo "START_SAMPLE_PERIOD."
    Set objWMIService = GetObject ("winmgmts: \"& strComputer & "\root\cimv2" ")
    Set colItems = objWMIService.ExecQuery ("Select * from Win32_ComputerSystem")

    For each objItem in colItems
    WScript.Echo "Host.String.id ="& objItem.Name.
    Next

    WScript.Echo "Mxqueue_File_Count ="& colFiles.count. "
    WScript.Echo "END_SAMPLE_PERIOD."
    WScript.Echo "END_TABLE.

    As a custom agent that would do the trick? the above works well on a command prompt when I run cscript...

    Hi Mike,.

    You will not be able to download this script on its own, because the agent script needs a file to run.

    What you need to do is to create a CountScript.bat file that runs "cscript count2.vbs".

    Then you zip CountScript.bat and count2.vbs in a ZIP file named CountScript.zip and CountScript.zip in the generator to deploy Script Foglight Agent.

    When this agent is deployed and created, CountScript.zip will be extracted on the target host.

    When you enable this agent, CountScript.bat will run and generate the named parameters.

    Please find a way to remove the 'Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation. All rights reserved. "lines as the script will attempt to interpret these lines and generate errors.

    Kind regards

    Brian Wheeldon

  • Custom Agent monitoring-policy confusion

    Hello

    I am facing a problem with a custom field I added to my custom Agent's primary EPA. The LiveSet agent allows you to monitor the LiveSet (memory used after a full gc) of our application servers and the added field monitors allows us to add additional servers to monitor for this specific host.

    The field is not appear however in change them the properties of some agents (even after deactiving a reinstall of the agent and reapply the surveillance strategy.) (XML).

    I added via the Script Agent Builder agent and imported the surveillance strategy. XML for this agent.

                    d76917f8-61e1-46fd-ba18-7cd5e9da1289        SPI        LiveSet        Foglight4-XML        default        template                        ab2d11d8-d31b-4d9b-b5f2-a8f9b44c1f41                                                                            Platforms_supported                    WinNT4.0 Windows2000 Windows2003 WindowsXP Linux2.4 Linux2.6 AIX4.3 AIX5.1 AIX5.2 AIX5.3 SunOS5.8 SunOS5.9 SunOS5.10 HP-UXB.11                                                                        agentName                    Collector                                                                        cmdLine                    LiveSet.sh                                                                        purgeDays                    180                                                                        purgeTime                    Days                                                                        sample_freq                    60                                                                        monitors                    localhost:7191 localhost:7192                                                    
    

    I had some difficulty in setting this up, so I repeatedly tested, deployed and applied monitoring - strategie.xml for this agent, that may have caused the configuration in order to be a little confused.  But in the end, the script is able to pick up the field as an environment variable and to monitor the appropriate servers, at least on agents that allow to edit the field in the section change the properties of the FogLight Console.

    An export of the configuration show that there are 3 separate persistable-config-model elements with different config-id for agent LiveSet. Two of them are missing from the added field monitors . I think that there should be only one entry in the configuration, and this is the origin of the problem for some deployed agents.

    I tried to delete configurations incriminated through a groovy script

    cs=server['ConfigService']models=cs.getConfigs('SPI', 'LiveSet')
    
    a=[]for (model in models)  if (model.getId() == 'e326abb9-95e6-459c-a179-293fe559fa70' ||      model.getId() == '92e879a1-21fa-4713-8f0c-c481ec997feb')     cs.removeConfig(model)
    
    models=cs.getConfigs('SPI', 'LiveSet')
    

    but he will raise an error:

    com.quest.nitro.service.sl.interfaces.scripting.ScriptAbortException: script1000680: java.lang.RuntimeException: Removing default configurations is not permitted.
    

    So my question is, is my problem actually caused by a corrupted configuration?

    How to solve this?

    Hope you can help.

    Kind regards

    ISP

    Hi Brian,.

    Thanks for your reply. I uninstalled the cartridge and unfortunately configurations 'by default' always appears. Before I go ahead with the name change Agent, is ask you if there is really no way to cleanly remove this corruption of the configuration. I'd rather not stuck with this type of corruption even if it does not affect the stability of the duration of FogLight.

    Kind regards

    ISP

    ------------ update -----------------

    Hello

    I managed to clean configurations incriminated with a workaround using the following procedure.

    1. Export the configuration via the command line
      fglcmd.sh - usr - pwd cmd - f util:configexport
    2. Extract all the persistence-config-modelagent LiveSet s in a new control - strategie.xml
    3. Change the config_type of all the extracted elements to test
    4. Import configuration
      fglcmd.sh cmd - util:configimport - usr pwd - monitoring-f - strategie.xml
    5. Run the following in the Script Editor in the Console FogLight groovy script
    cs=server['ConfigService']models=cs.getConfigs('SPI', 'LiveSet')for (model in models)    cs.removeConfig(model)
    
    models=cs.getConfigs('SPI', 'LiveSet')
    
    remaining=[]for (model in models)  remaining += model.getId()
    
    remaining
    

    Make an another export confirms that incriminated configurations are deleted.

    Relocation of the agent and the application of the custom monitoring strategy works now.

    Brian Merci for your time.

    Kind regards

    ISP

    Post edited by: Fai Fung

  • power setting

    I just got a new Phoenix 810 desire. I'm having a problem with the power setting. I tried to turn off the power so that he shall not sleep, etc.. However, I'll play a game for about 20 minutes, approximately, and the computer to standby. I don't know how to change it. Can someone help me please?

    Thanks for your replies Dean. I really appreciate it.

    I talked to Dell and they told me it was probably my video card drivers. I have downloaded/installed the latest drivers Catalyst and I have not had problems since.

    Thank you.

  • View the contents of the table on Custom Agent

    Hello

    I would like to create a dashboard with a table showing the ten entries with free low % of a custom agent that I wrote.

    The agent is when extracting data on data warehouses and each data storage capacity, % free and used. (this is temporary until we get approval from vFoglight)

    From what I see the agent is storing data as below

    • Agent_Name

      • tables
      • datastore_name
        • capacity
        • % free
        • used

    Is it possible to get a picture to view it as the below?

    Name of the data store % Free Used
    Datastore_3 10% 1.2 to
    Datastore_1 30% 800 GB
    Datastore_5 50% 500 GB
    ....

    Thank you much for the help

    Using WCF, it would be possible.  It is based on the normal approach of Foglight.

    • Find data
    • Enter the data in the structure you need
      • generally via a query or function
    • Send the result to a view in the context
    • Test it

    You can query against the Agent_Name/Tables level, to get you your ranks

    then use functions to dynamically create columns in the query result rows row

    Could start here http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/w/admins-wiki/6155.custom-script-agent-1-leverage-an-existing-monitoring-script-to-push-data-into-foglight

  • Eurotherm 2404% manual power set point

    I'm using the LabView ET24xx driver. It works fine if I want to set and control in automated mode. I'm looking for the ability to create a vi that allows me to switch to manual mode (able to do that) and adjust the set value (can't do it). The set point in Manual Mode is generally the percentage of power. I would like to be able to establish to anything other than 0% or 100%, however when I use the driver it does not appear as a method of manipulation of this. I know I'm missing something, and any help would be greatly appreciated.

    Thank you

    Tennessee Paul

    Thank you, Robert. After a lot of research I found the solution:

    Use the VI: ET24XX configure OP key parameters 2. VI

    key point in the use of this VI. The power (or control) setting labeled power output target is in tenths. A value of 5 = 50%. A value of 0.5 = 5%. With this VI no value greater than 10 will work. The VI will timeout on the "Write" command, if the value is greater than 10. I don't know why this VI was established in this way. Remove the output target x 10 serving power and wiring of the power output target control directly in the table of generation within the VI allows a more intuitive entry of power, until we realize the value of the power output target is %.

  • my continuous computer to go to sleep every minute I have already try the power setting but no change.

    computer is hp pavilion elite e9270f Windows 7 64-bit OS

    do you have a system recovery that everything is great except for thid problem

    can anyone help please thanks in advance.

    Have you checked to see if you have a screensaver set to 1 min? What power did you check? The one in the bios or the one on the computer?

  • The power setting when you use HDMI

    Hello.

    I use a Y730 with Vista 32 bit.  I play a mpg4 using Quicktime.  My output is my High Def TV on the HDMI output.  I have the audio and video on the TV without any problems.  Computer power settings are updated never stop.

    While watching, the screen turns off after 10 or 15 minutes, I love (like 5 minutes or less), then after 2 minutes the computer stops playing the movie as if it is entered in mode 'sleep'.  If I move the mouse between the screen off and the 'sleep', he continues to play.  It's very annoying to do every 10 to 15 minutes.

    How can I pay for orders of power/energy to have the monitor off, but the file still to play.

    Thank you

    Carl

    @yigit if you click on the System tab, you can change other settings. These parameters, it must change and set it to NEVER. I suggest to change the plan of 'high performance '.

  • Monitoring Apache with a custom agent State

    Hi people,

    Foglight includes an ApacheSvr agent in the cartridge of the BONE that monitors Apache locally by analyzing the history of the Apache access.

    Some Quest engineers have collaborated on an agent based on a script that monitors the Apache remote by analyzing the output generated by the page Status of Apache.

    This information is available when apache httpd is compiled with the "mod_status" module and ExtendedStatus is now as described in: http://httpd.apache.org/docs/2.0/mod/mod_status.html

    When activated, the Apache /server-status page looks like http://www.apache.org/server-status

    The agent script runs under Unix. It collects, analysis and reports 21 measures focused on the Apache Foglight.

    If you are interested in this agent custom, especially if you have Apache status active on your site and would like to beta test the agent and providing feedback, please respond.

    Kind regards

    Brian Wheeldon

    I would like to help test!

  • Power setting change the connection speed

    I don't know if anyone else has noticed this, but when I change my setting of symmetric power high performance on my laptop and when I start a stack and not connected to the adapter, I noticed a connection speed much more to my wireless router when I connect to the desktop computer. I'm curious because sometimes it wouldn't connect and join the star thingy and I have to reconnect but when I go to the balance or start on battery, the connection speed is almost instantaneous. I tried to uninstall my wireless driver and let the computer to reinstall the driver itself and it fixed a bit, I could connect automatically, more fast, but still not as fast as the balanced mode. Someone please tell me what to do because the problem is back.

    Hello Charles,

    Thanks for posting your question on the forum of the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    Have you made any changes to your computer hardware or software?

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Run the network troubleshooting and check.
    Refer to this article:
    Using the troubleshooter from network in Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/using-the-network-troubleshooter-in-Windows-7

    If this does not help, then use method 2.

    Method 2:
    Please use the suggestions provided in this Microsoft support article and check.
    Reference:
    Why is my Internet connection so slow?
    http://Windows.Microsoft.com/en-us/Windows/why-Internet-connection-slow#why-Internet-connection-slow=Windows-7

    Important notes:
    Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings. Reset Internet Explorer is not reversible, and all the previous settings are lost after reset.

    The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • Toshiba A45/S151: OS crashes after the change of power setting

    The power settings on my laptop seem highly incompatible. When it is running on batteries (100% charged), it will run for 1 to 10 or 15 minutes (schedules are purely random)... and then simply pass time. The screen will stay still and t move the mouse, the keyboard does not work either. The problem remains even to change power settings Windows laptop mode. All solutions?

    Concerning
    Maury

    Hi Maury

    Well, I have really no idea what can be the problem. You can try to recover the operating system with the Toshiba Recovery CD without having to install tools and third-party utilities. If the problem remains the same, it is possible that something is wrong with the hardware. For example, the motherboard.

    Good bye

  • Reinstall the Perfomance high power setting for notebook Pavilion DV5 1111-ea

    Hello world

    I upgraded my OS from vista to windows 7 ultimate 64-bit. Everything is great, except that I lost the option high performance in the power settings - I now only have savings of energy and balance settings to choose.

    How can I reinstall the power option high performance?

    Thank you very much

    Ed

    High performance does not appear on the default battery meter. To enable high performance, open Power Options by clicking the Start button, then Control Panel. Under Select a power plan, complementary to see plans-click and then click it performance.

  • win xp screensaver and power setting, stop working

    Currently win Xp Home screensaver and settings to be able to stop working, tried to reset without success. Any suggestions?

    Hi Answrtek,

    ·         What happens when you make changes?

    ·         You receive an error?

    ·         You have the latest updates of Windows installed?

    Method 1: Check to see if this article helps you to the issue of the screen saver.

    Screen saver may not start in Windows XP

    Method 2: Refer to this article to resolve the problem of power settings.

    Power scheme options are unavailable on a Windows XP-based computer

  • How do you define custom sizes printer printer set up windows

    Under the control panel configuration, printers, and fax machines, there is an entry to set printing preferences. Standard paper sizes and dimensions of the envelope are listed, but I can not find any place where I can add a new format such as invitations, cards etc. of the index. Still I think I remember what to do with an earlier version of windows.
    HP Laserjet 6 p printer
    Addition to the House op Sys Windows SP3

    Hello Navyfpc,

    Thank you for your message.  Click HERE to download/install HP software that allows you to perform the necessary task you are looking for.  Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for