Run Script only 1 time - But carry on returning values

Hello
That´s what we got:
We got a script measuring lifetime of files in a folder.
The script runs "forever" in the background, returning lifetime of each file as soon as it gets deleted.
Works like a charm, but now we need that data in scom.
Scom can run a script on agents every x seconds/minutes (interval) and display the returned values.
But we want the script to be run ONLY ONE TIME (since it, once started, never stops) but still return the values of the property-bag every x Minutes.
How to?

Hi 
As you are using scheduler in monitoring the schedule will run the script every x minutes and return property bag. to overcome this issue create a script base monitor trigger script on custom event log and you can log respective event once on target server
to enable monitoring using powershell remotely.
Regards
sridhar v

Similar Messages

  • Call script in a workflow and get return value?

    hello
    I want create a workflow to check some attribute in IDM
    like for the home directory, use the workflow call some script to check there is enough space in the server? and the folder is almost there or not?
    then get the return value like if no enought space, call some other form let the admin input some new home directory string
    So I want to know how a workflow work with scipt file?
    I also use some after create action script, but it looks only can get some error message and shows in th IDM.

    This should help you:
    http://www.devdaily.com/java/edu/pj/pj010016/pj010016.shtml
    Note that the command will be executed by the application server user so check if it has sufficient rights.
    Ben

  • Executing unix script within java and getting the return value

    Hi
    I am executing a unix script from within java which will return me a value. Is there a way I get this value and use it inside my java code without doing this:
    BufferedReader in = new BufferedReader( new InputStreamReader( ls_proc.getInputStream() ));
    //readLine reads in one line of text
    int k = 1, i = 0;
    while (( ls_str = in.readLine()) != null)
    --kirk123                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I was hoping to get what I want in one or two line codes.
    --kirk123                                                                                                                                                                                           

  • Calling the DTExec from Perl Script and need to get the Return Value (Sucess or Failure)

    I am able to execute the SSIS Package from Perl Script using DTExec. But i need to get the return code of the SSIS Execution. Is their any option available to get the Success or Failure information from Perl ?

    Exit codes returned from dtexec utility             
    When a package runs, dtexec can return an exit code. The exit code is used to populate the ERRORLEVEL variable, the value of which can then be tested in conditional statements or branching logic within a batch file. The following table lists
    the values that the dtexec utility can set when exiting.
    http://technet.microsoft.com/en-us/library/hh231187.aspx
    There's a wrinkle if the package is running in the SSIS Catalog:
    http://www.mattmasson.com/2012/02/exit-codes-dtexec-and-ssis-catalog/
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Want to display from database but javaclas not returning values to servlets

    I am trying to view values stored in database using jsp, servlets and java class. Jsp is calling servlet and servlet calls java class file. and javaclass file retrieves data from database and sends it back to servlet. But my problem is servlet doesnt print the values.
    Here is my code
    This is the javaclass file.
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
      public Vector result;
      public Vector getResult() throws ClassNotFoundException, InstantiationException, IllegalAccessException
                /* Connection is established to retrieve data from the database */
                Vector v = new Vector();
                ResultSet rs = null;
                PreparedStatement st = null;
                try
                 Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
                  st = connection.prepareStatement("Select * from samp");
                  rs = st.executeQuery();
                  while(rs.next())
                      v.addElement(rs.getString("empid"));
                  st.close();
                  connection.close();
                 catch(SQLException esql)
                      esql.printStackTrace();
                  this.result = v;
                 /* Control is sent back to the servlet */
                 return result;
    }Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try
              employbean ebean = new employbean();
              Vector v = ebean.getResult();
              Enumeration en = v.elements();
              while(en.hasMoreElements())
                out.println("employee id= "+ en.nextElement());
              out.println("employid"+employid);
             catch(Exception m)
               out.println(m);
             out.close();
            // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
    }Please help me with my code as where i might have gone wrong and help me rectifying the errors.
    I also would like to know if this is MVC pattern.
    Thanks in Advance

    Try this one
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
    public Vector result;
    public Vector getResult() throws Exception
    /* Connection is established to retrieve data from the database */
    Vector v = new Vector();
    ResultSet rs = null;
    PreparedStatement st = null;
    try
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
    st = connection.prepareStatement("Select * from samp");
    rs = st.executeQuery();
    while(rs.next())
    v.addElement(rs.getString("empid"));
    st.close();
    connection.close();
    catch(SQLException esql)
         throw e;
    this.result = v;
    /* Control is sent back to the servlet */
    return result;
    Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try
    employbean ebean = new employbean();
    Vector v = ebean.getResult();
    Enumeration en = v.elements();
    while(en.hasMoreElements())
    out.println("employee id= "+ en.nextElement());
    // out.println("employid"+employid);
    catch(Exception m)
    out.println(m);
    out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /** Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    try
    processRequest(request,response);
    catch(Exception e)
    /** Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    try
    processRequest(request,response);
    catch(Exception e)
    /** Returns a short description of the servlet.
    public String getServletInfo()
    return "Short description";
    Send me the output

  • Want to display from database but javaclass not returning values to servlet

    I am trying to view values stored in database using jsp, servlets and java class. Jsp is calling servlet and servlet calls java class file. and javaclass file retrieves data from database and sends it back to servlet. But my problem is javaclass file doesnt return the value to servlet and print. Here is my code
    This is the javaclass file.
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
      public Vector result;
      public Vector getResult() throws ClassNotFoundException, InstantiationException, IllegalAccessException
                /* Connection is established to retrieve data from the database */
                Vector v = new Vector();
                ResultSet rs = null;
                PreparedStatement st = null;
                try
                 Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
                  st = connection.prepareStatement("Select * from samp");
                  rs = st.executeQuery();
                  while(rs.next())
                      v.addElement(rs.getString("empid"));
                  st.close();
                  connection.close();
                 catch(SQLException esql)
                      esql.printStackTrace();
                  this.result = v;
                 /* Control is sent back to the servlet */
                 return result;
    }Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try
              employbean ebean = new employbean();
              Vector v = ebean.getResult();
              Enumeration en = v.elements();
              while(en.hasMoreElements())
                out.println("employee id= "+ en.nextElement());
              out.println("employid"+employid);
             catch(Exception m)
               out.println(m);
             out.close();
            // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
    }Please help me with my code as where i might have gone wrong and help me rectifying the errors.
    I also would like to know if this is MVC pattern.
    Thanks in Advance

    I am trying to view values stored in database using jsp, servlets and java class. Jsp is calling servlet and servlet calls java class file. and javaclass file retrieves data from database and sends it back to servlet. But my problem is javaclass file doesnt return the value to servlet and print. Here is my code
    This is the javaclass file.
    package pack;
    import java.util.*;
    import java.sql.Driver.*;
    import java.sql.Connection.*;
    import java.sql.*;
    import java.sql.DriverManager.*;
    import java.sql.SQLException.*;
    import java.io.*;
    import java.io.Serializable;
    import java.util.Vector;
    import pack.ser1;
    /* Control is got from the servlet file */
    public class employbean implements Serializable
      public Vector result;
      public Vector getResult() throws ClassNotFoundException, InstantiationException, IllegalAccessException
                /* Connection is established to retrieve data from the database */
                Vector v = new Vector();
                ResultSet rs = null;
                PreparedStatement st = null;
                try
                 Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                 Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/sample?user=user&password=password");
                  st = connection.prepareStatement("Select * from samp");
                  rs = st.executeQuery();
                  while(rs.next())
                      v.addElement(rs.getString("empid"));
                  st.close();
                  connection.close();
                 catch(SQLException esql)
                      esql.printStackTrace();
                  this.result = v;
                 /* Control is sent back to the servlet */
                 return result;
    }Here is the servlet code.
    package pack;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import pack.employbean;
    import java.util.Enumeration;
    import java.util.Vector;
    import pack.*;
    public class ser1 extends HttpServlet
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try
              employbean ebean = new employbean();
              Vector v = ebean.getResult();
              Enumeration en = v.elements();
              while(en.hasMoreElements())
                out.println("employee id= "+ en.nextElement());
              out.println("employid"+employid);
             catch(Exception m)
               out.println(m);
             out.close();
            // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
        /** Returns a short description of the servlet.
        public String getServletInfo()
            return "Short description";
    }Please help me with my code as where i might have gone wrong and help me rectifying the errors.
    I also would like to know if this is MVC pattern.
    Thanks in Advance

  • Time Machine Service - Run scripts after backup

    I am running Mavericks Server (10.9.5), server version 3.2.2
    The server is used as a backup destination for a lot of Macs, and I am trying to create a complementary service that keeps track of all of the incoming backups and logs all backup events.
    Is there any way to have a script execute whenever the Time Machine service completes a backup, or for that matter, and way to tell when a backup is running or has completed?
    The options I have thought of so far are:
    1. Script that monitors the logs to look for appropriate events
    2. Run script on timer that scans the backup folder and looks for new backups
    Neither of these seems ideal to mean, so I was hoping someone might have a better idea.
    Thoughts?

    In order to back up the configuration and state of some services the server needs them to termporarily be turned off.  This includes the backing up of Time Machine.
    So in order to back up the Time Machine configuration and details about what computers it is backing up where, the server would need to turn off the Time Machine backup service.  But if it's turned off, it can't use it to back things up.
    Similarly, imagine you needed to restore the backup.  To view the backups you would need the Time Machine backup service to be working.  But you can't overwrite the configuration and status information of a service which is turned on, because that would confuse the process doing the serving.  But if the process is turned off, you can't use it to restore the backup.
    So do what Linc said: use the System Preferences panel to back the computer up, and don't back it up to the same device you're backing up its Time Machine clients to.

  • Does GeForce 7350LE video card fan run all the time or at certain temperatures?

    I have a HP Pavilion m8147c  Media Center with AMD Atlon 64 X2 Dual Core Processor 5600+ 2.80 GHz  3GB Ram and when running lately the monitor has started to go into sleep mode or something.Sometimes there is a warning that says something like no signal from DVI and one more but doesn't stay on long enough to read it all.I am running Vista Home Premium 32 bit.I had just installed a new game but pretty sure that has nothing to do with it as I used System Restore and backed up to a time before it was installed.At first it was only when playing games but now it happens with hardly anything running.This pc was bought in july 2007 and I have another desktop but I let my wife use one and I use the other.I opened the case and cleaned out all the dust but noticed when I started it up again the fan is not running on the video card.I don't know if it comes on at certain temps or runs all the time but I feel this is the problem.It has been on for about an hour and not come on at all.Any information will be appreciated.
    This question was solved.
    View Solution.

    captna wrote: Thanks Hanspuppa for the help you've given.I have two more questions.Why do I need the NVIDEA drivers when I will be installing a GIGABYTE card,and the Memory Interface on both cards is 64 bit,how does that affect a 32 bit Vista operating system?Just curious as I have never had any dealings with a video/graphics card before and I would think that it should be a 32 bit but since the GeForce 7350LE is also 64 bit it obviously works..I really appreciate the links and I am ordering the card now,thanks again you.For some reason I am not getting email notices when you reply but I am checking back every so often to see.
    Hello captna, Usually when you purchase a new video card or other hardware device, the drivers that are included on the CD are an older version, sometimes as much as six months old. The chipset on any Brand of a given model would be either an Nvidia or an AMD ATI.
    The chipset is the main component of the video card that controls most of the operations of the video card.
    Since all the manufacturers of the Nvidia video cards use the chipset purchased from Nvidia, they are all the same chipset for any particular model. The different manufacturers can and do add or enable features for their particular cards, but the chipset is still the same.
    Since the drivers from the manufacturer would be an older version, and Nvidia releases new versions quite often, it would be best to use the Nvidia drivers, since they would have updated fixes and sometimes features, and added support for some newer cards.
    Your reference to the Memory Interface on both cards is 64 bit, has nothing to do with your version of the operating system. It just relates to the way, and speed of the interaction of the video card with the system (buss).
    The higher the number of the Memory Interface, the more data that can be moved in and out of the video card, which results in a faster video performance. This just becomes important when playing games for the most part.
    Using the system just for web surfing, emailing and some light gaming, would not have that much effect on the system.
    More important to the system would be the amount of video card onboard memory. The Gigabyte has 1 GB of onboard memory compared to your original video card with 128 MBs of memory. This additional memory would likely show a slight performance increase in any light gaming.
    You want see much, if any difference in the performance of your system, with the exception of perhaps the light gaming performance increase, with the new Gigabyte video card over the  GeForce 7350LE. You should not  experience the heat related issue as you had with the faulty fan on the  GeForce 7350LE.
    You can go into your personal settings on the Forum and select to not receive the email notices when someone responds to one of your post. Several years ago while on the Dell Community Forum, I would receive over a hundred emails every day until I disabled this feature.
    Please click the White Kudos star on the left, to say thanks.
    Please mark Accept As Solution if it solves your problem.

  • Error when running script from OTM

    Hi team,
    Customer is trying to run script from OTM but is getting a "JWG file does not exist" error. I found the following metalink note and the customer has verified that the repositories are defined with exactly the same names & paths in OTM & Openscript.
    Scripts Failing To Play Back From OATS Test Manager (OTM) (Doc ID 1587941.1)
    I've also checked the following post in the forums but this doesn't apply to the customer because both the OTM & agent are on Windows:
    https://forums.oracle.com/message/10707963
    Appreciate any pointers
    Thanks,
    Krishna

    Hi Krishna
    Is the agent running as a windows service or started from an interactive batch?
    What kind of script is that? Web, Forms, Siebel, other?
    Are they different repositories or the same? If different, how do you copy scripts from one to the other one?
    Cheers
    JB

  • Build status: Run Application Only

    Hello Everyone,
    I have just made a massive boo boo. I have just put and application of mine in Build status: Run Application Only. But i need to edit the application but i dont know how to put the application back into Run and Build Application :( :(
    please can some one help me please
    Thanks in advance,
    -N.S.N.O.

    Panic over :)
    I found on the internet that i could change them back by following this:
    Home>Administration>Manage Services>Manage Application Build Status
    -N.S.N.O.

  • Problem to trace return value of malloc provided by libmtmalloc.so

    When using libc, dtrace is able to trace the return value of malloc by following script
    #!/usr/sbin/dtrace -s
    pid$1::malloc:entry
        self->trace = 1;
        self->size = arg0;
    pid$1::malloc:return
    /self->trace == 1/
        printf("Ptr=0x%p Size=%d", arg1, self->size);
        ustack();
        self->trace = 0;
        self->size = 0;
    }While exchange to use libmtmalloc.so(set env LD_PRELOAD=libmtmalloc.so), the script is failed to trace the return value of malloc. the arg1 always stores the memory's size that allocated by malloc, but not the memory's address.
    Do I make some mistakes?

    Problem found,
    http://www.opensolaris.org/jive/thread.jspa?threadID=41902&tstart=0
    But any walk-around or fix?

  • Select_list_from_lov, cant get the returning value

    Hi
    I try to use a apex_item.select_list_from_lov in a wizard. The LOV that I have is a dynamic list.
    everything works fine, only I cant get the return value of the selected items.
    multi select list
    htp.p(apex_item.SELECT_LIST_FROM_LOV
    ( 2,
    'MOS_ROL_OMSCHRIJVING',
    ' MULTIPLE HEIGHT=5',
    'NO',
    null,
    null,
    null,
    null,
    'NO')
    trying to see what the return values are, but got nothing.
    :p12_test := :f02;
    (p12_test is a textfield)
    any assistance would be greatly appreciated.
    Thanks
    using apex 4.0.

    >
    trying to see what the return values are, but got nothing.
    :p12_test := :f02;
    (p12_test is a textfield)
    >
    f02 is an associative array. See Referencing Arrays in the APEX API Reference for information on how to access values of items created using apex_item methods.

  • How do I run an Apple Script only when the computer is awake at the specified time and NOT upon waking after the specified time?

    I've been using Steve Lambert's SelfControl to block myself from certain time-sucking internet sites for a certain period of time every day. I've automated the program launch using an AppleScript that runs based on an iCal alarm, but the problem is that if my computer has been asleep or shut off, the script will run as soon as I wake it up or start it up, and that can be very inconvenient if I'm intending to use my computer not during the hours when I intended to restrict access to such websites.
    So, is there any way to schedule an AppleScript to run *only* if the computer is running at the designated time and not upon waking/starting up after the alarm has passed if the computer was asleep/off?
    I started investigating launchd, as I understand this is the successor to cron/crontab in OS X Lion, but it appears that launchd has the same behavior I dislike in the iCal alarm approach--the script will run upon waking even if the time when it was supposed to run has already passed...unless there is a way to change this behavior?

    The obvious/easy solution would be to add some logic to the script to see what the time is.
    If you expect the script to run at, say, 1pm, but the script checks the time and sees that it's 5pm then you can assume the machine was asleep at the time and thefore you can bail out gracefully.
    if (hours of (get current date)) = 13 then
      -- it's sometime in the 1pm hour...
    end if
    You can fine-tune the check as much as you like

  • Script runs a few times and stops running without errors

    Hello.
    I'm developing a management pack from VSAE to monitor RLM license services. I have been able to successfully discover the classes I have created.
    I'm trying to write a script performance collection rule to measure the available licenses of every instance of RLM_License class. This is what the Data Source looks like:
    <?xml version="1.0" encoding="utf-8"?>
    <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="C:\Users\jnegroadmin\AppData\Local\Temp\tmp5445.tmp">
    <IntervalSeconds>60</IntervalSeconds>
    <SyncTime />
    <ScriptName>RulesPerformanceRLMLicenseAvailable.vbs</ScriptName>
    <Arguments>"$Target/Host/Host/Property[Type='UTAD.RLM.RLMService']/UtilPath$" "$Target/Host/Property[Type='UTAD.RLM.RLMLicenseFile']/FilePath$" "$Target/Property[Type='UTAD.RLM.RLMLicense']/ProductName$"</Arguments>
    <ScriptBody>$IncludeFileContent/Health Model/RulesPerformanceRLMLicenseAvailable.vbs$</ScriptBody>
    <TimeoutSeconds>20</TimeoutSeconds>
    <ObjectName>RLM License</ObjectName>
    <CounterName>Available Licenses</CounterName>
    <InstanceName>$Target/Property[Type="UTAD.RLM.RLMLicense"]/ProductName$</InstanceName>
    <Value>$Data/Property[@Name='Value']$</Value>
    </Configuration>
    and this is the script:
    Set oAPI = CreateObject("MOM.ScriptAPI")
    'Call oAPI.LogScriptEvent(WScript.ScriptName,951,0,"Script was launched successfully")
    sUtilPath = WScript.Arguments(0)
    sFilePath = WScript.Arguments(1)
    sProduct = WScript.Arguments(2)
    Call oAPI.LogScriptEvent(WScript.ScriptName,951,0,sUtilPath + " " + sFilePath + " " + sProduct)
    dim array,count
    sCommandPath = sUtilPath & " rlmstat -c """ & sFilePath & """ -avail -p " & sProduct
    Set objShell = wscript.createobject("wscript.shell")
    Set oExec = objShell.Exec(sCommandPath)
    count = -1
    Do
    line = OExec.StdOut.ReadLine()
    if InStr(1, line, "available") > 0 then
    array = Split(line,":")
    count = Mid(array(1),2)
    End If
    Loop While Not OExec.Stdout.atEndOfStream
    'Call oAPI.LogScriptEvent(WScript.ScriptName,951,0,count)
    Set oBag = oAPI.CreatePropertyBag()
    Call oBag.AddValue("Value",count)
    oAPI.Return(oBag)
    The rule runs a few times on the server, I see the data on the Prrformance Window, and the event logs. But then, I stop receiving event logs and data on the performance rule. I only see event logs for New Configuration and credentials loading.
    I don't know what I'm doing wrong. Other rules from Microsoft MPs are running correctly and gathering data on that server.

    Please refer to the below blog for the best practice when we create MP manually.
    http://blogs.technet.com/b/antoni/archive/2013/10/09/system-center-service-manager-operations-manager-management-pack-and-naming-convention-best-practices.aspx
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • The computer that I had my iphone apps synced to has died and I don't know how to get access to my apps on the new computer. I'm using a Windows pc. I understand that I can only have my apps synced to one computer at a time, but the former pc is dead.

    My HP Touchsmart died the other day. My husband works on computers as a hobby and was able to get me up and running on a Dell laptop in no time. I have an iPhone 4s and had all my apps on itunes on my HP. I understand that you can only have your iPhone apps synced to one computer at a time, but what do you do when the computer containing all your info is in unusable condition? I have tried deauthorizing all the computers associated with my account, that did not work. I had this problem once before and finally ( after much blood sweat and tears ) was able to deauthorize the old computer, but it was in working order. Two of the computers that are listed under the iTunes Wi-Fi Sync setting are no longer in use, the HP had my apps synced to it and the other had everything else except my photos, which are on a third computer that is still in use. Please forgive for information overload but am trying to give all the info that I think could be relevant. Your help would be appreciated so much!
    Sincerely,
    PiPI

    Re: That garbage is unreadable.
    If you really want help, stop messing with the fonts and post so that others can read and offer suggestions.
    Or better yet... try a search, I'm certain you'll find a solution to whatever issue you're experiencing.
    I have found that many times it is the things that make you most angry that push you to action. This was the case here. Thank you for causing me to get so angry that I found the answer myself.

Maybe you are looking for

  • 10.6.4 complete system freeze when resuming from screensaver-VMWare Fusion

    I have a Macbook Pro, 3,1. I just upgraded to 10.6.4 and noticed the following symptoms: Shortly after launching VMWare Fusion 3.1 running a Windows XP VM (from a Bootcamp partition), a series of pop up messages were complaining about a bad OpenGL dr

  • Form Crashes when error occured !!!

    Hi All , we have an Application Developed on 10g iDS , and Deplyed on Linux suse , but a Strange behavior is coming up ; when any form specific error occured on the form such as (Can't insert null , not allowed value for list item ...) the Forms Serv

  • SAP Using "SYSTEM" Oracle Account

    We trying to satisfy a Sarbanes Oxley issue of database monitoring. This deals with the monitoring of the use of SYSTEM. We see logs being generated by "SYSTEM" and we believe SAP is accessing the database as SYSTEM because of the log content. Has an

  • Animation runs when loaded not when it should ....

    Hi, I have an edge animation placed in a Muse page. If I set the animation to run at 1500 pixels I expect the animation to play when the indicator reaches the top of the page. It doesn't however. It plays when loaded regardless of where the position

  • Twitter with Adobe Contribute CS4

    I am trying to get my latest tweets on my website while using the program Adobe Contribute CS4. I was trying to google this but i could not find a anwser. Is it possible to do this, and if so, how?