EEM Applet Problem With: event syslog pattern ".*" priority 2

I went to create a EEM applet that would be invoked whenever any syslog message of priority 0-2 was invoked. I figured  the following event statement would work
       event syslog pattern ".*" priority 2
I never really used the priority optional argument before but thought I understood from the docs that messages at or numerically lower than the specified level are matched.
Well it doesn't seem to work as documented.  Seems to me that only messages at the specified level are beng matched and not messages numerically lower than the specified level.
Anyway I did what I wanted differently but wanted to post this in case this is a bug in the syslog ed.

Actually, it's a problem with the documentation.  The priority option only matches the specified severity.  What you could do is adjust pattern to do this:
event syslog pattern "*-[012]-"

Similar Messages

  • Problem with event handling

    Hello all,
    I have a problem with event handling. I have two buttons in my GUI application with the same name.They are instance variables of two different objects of the same class and are put together in the one GUI.And their actionlisteners are registered with the same GUI. How can I differentiate between these two buttons?
    To be more eloborate here is a basic definition of my classes
    class SystemPanel{
             SystemPanel(FTP ftp){ app = ftp};
             FTP app;
             private JButton b = new JButton("ChgDir");
            b.addActionListener(app);
    class FTP extends JFrame implements ActionListener{
               SystemPanel rem = new SystemPanel(this);
               SystemPanel loc = new SystemPanel(this);
               FTP(){
                       add(rem);
                       add(loc);
                       pack();
                       show();
           void actionPerformed(ActionEvent evt){
            /*HOW WILL I BE ABLE TO KNOW WHICH BUTTON WAS PRESSED AS THEY
               BOTH HAVE SAME ID AND getSouce() ?
               In this case..it if was from rem or loc ?
    }  It would be really helpful if anyone could help me in this regard..
    Thanks
    Hari Vigensh

    Hi levi,
    Thankx..
    I solved the problem ..using same concept but in a different way..
    One thing i wanted to make clear is that the two buttons are in the SAME CLASS and i am forming 2 different objects of the SAME class and then putting them in a GUI.THERE IS NO b and C. there is just two instances of b which belong to the SAME CLASS..
    So the code
    private JButton b = new JButton("ChgDir");
    b.setActionCommand ("1");
    wont work as both the instances would have the label "ChgDir" and have setActionCommand set to 1!!!!
    Actually I have an array of buttons..So I solved the prob by writting a function caled setActionCmdRemote that would just set the action commands of one object of the class differently ..here is the code
    public void setActionCommandsRemote()
         for(int i = 0 ; i <cmdButtons.length ; i++)
         cmdButtons.setActionCommand((cmdButtons[i].getText())+"Rem");
    This just adds "rem" to the existing Actioncommand and i check it as folows in my actionperformed method
         if(button.getActionCommand().equals("DeleteRem") )          
                        deleteFileRemote();
          else if(button.getActionCommand().equals("Delete") )
                     deleteFileLocal();Anyway thanx a milion for your help..this was my first posting and I was glad to get a prompt reply!!!

  • EEM problem with "event timer absolute time"

    Hi
    I wanted to execute a EEM script at a certain time, 2015-05-04 03:00:00 GMT+2:00. So I used the "event timer absolute time" command.
    But the switch executed the script immediately. Is there something wrong with the script? Is there another way to execute a few commands at a certain time like this?
    Script:
    event manager applet CHANGE_TO_RAPID-PVST_v2
    event timer absolute time 1430701200
    action 1.0 cli command "enable"
    action 1.1 cli command "config t"
    action 2.0 cli command "spanning-tree mode rapid-pvst"
    action 2.1 cli command "end"
    action 3.0 syslog msg "Changed to Rapid-PVST by EEM script CHANGE_TO_RAPID-PVST_v2"
    Switch: WS-C3560X-24T-S
    IOS: 15.0(2)SE4
    EEM version 3.2
    #show event manager history events
    No. Job Id Proc Status Time of Event Event Type Name
    2 2 Actv success Thu Apr30 09:25:02 2015 timer absolute applet: CHANGE_TO_RAPID-PVST_v2
    I used this link to calcute the timer value. http://www.epochconverter.com/

    I honestly have never seen anyone use this timer.   You'd be better off using cron and removing the applet when it's done.
    That said, this does look like a bug.  Given the little use we've seen of this timer, it's likely a new one.  I recommend opening a TAC case so it can be tracked.

  • Problems with event import on iMovie 10.0.3

    My complete movie libraries works fine with iMovie 9.0.9. There are no other malfunctions. The filessystem is clean.
    After upgrading to iMovie 10.0.3 the initial startup event and project update process fails on serveral older events and I have problems to import this events folders.
    Why does V. 10.0.3 has problems with some older events ?  What to do to get this files properly ?
    Thanks in advance for any help.
    Alexander

    when i try to move them together this happens..?

  • Applet problem with IE

    hi fellas
    I've got quite a stressing problem with my applets.
    When I load them in the appletviewer there is no problem, idem in Netscape 7. But when I try with IE I only obtain a grey rectangle.
    I thought I had written something wrong and I downloaded a free applet source on the net.
    On the site where I downloaded this applet I could see the applet with IE. So I got the Java code and the source of the HTML page.
    I compile the .java save the html source into a document and try to load it locally ... still a grey rectangle.
    The same applet that I could see on the web page with the same source code embeded in the same html file.
    So I thought that maybe my 1.4.0 sdk was the problem and I tried to recompile the .java with a 1.3 sdk ( hoping a compatibility problem )
    ---> Nothing ... Nothing
    This drives me old before the age.
    If anybody can help me ...
    Thanks

    here is the applet code
    import java.applet.*;
    import java.awt.*;
    public class basicApplet extends Applet
         public void init(){}
         public void stop(){}
    public void paint(Graphics g)
         g.drawString("Hey hey hey",20,20);
         g.drawString("Hellooow World",20,40);
    and his is the html page
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    <body>
    <applet code="basicApplet.class" height="100" width="200">
    </applet>
    </body>
    </html>
    the html page and the applet are in the same directory.

  • Problems with events in flex

    Hi there. I'm a AS2 and Flash CS3 guy. I started to learn AS3 and transfer to Flex 3. But I got a problem w/ Events in AS3. I'm adding a canvas component to the stage. On that canvas, I added 3 different events: mouse down, mouse move, and mouse up. When mouse move is fired, there is no way for me to get mouse up event fired, and viceversa, when mouse up is fired, there is no way to get the mouse move event fired. Is there any one to help this newbie with this particular problem? Any help will be very appreciated.
    Code:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:canvas id="myCanvas" x="50" y="50" width="500" height="500" click="event_1();" mouseMove="event_2();" mouseUp="event_3();">
    </mx:Canvas>
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import flash.events.*;
    public function event_1():void
    { Alert.show("First event fired"); }
    public function event_2():void
    { Alert.show("Second event fired"); }
    public function event_3():void
    { Alert.show("third event fired); }
    </mx:Script>
    </mx:Application>

    Hi Greg. Thank you for your replay. The question is I didnt want to bother you with the complete code and post it with the minimal expression. But here I give you the full code w/corresponding package. What I'm trying to do is drawing a line over an empty canvas (I got it very easily in Flash AS2)
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="addChild(p1)">
    <mx:Canvas id="wrapper" x="10" y="10" width="600" height="600">
      <mx:Canvas x="50" y="50" width="500" height="500" id="imageView" backgroundColor="#F8F3F3" click="startDraw();" mouseMove="drawLine();" mouseUp="noDrawLine();" >
      </mx:Canvas>
    </mx:Canvas>
    <mx:Button x="263" y="618" label="Draw Line" click="prepToDraw();"/>
    <mx:Script>
    <![CDATA[
      import com.myDomain.Lines.Main;
       import mx.graphics.*;
       import mx.binding.utils.BindingUtils;
       import flash.events.IOErrorEvent;
       import flash.events.Event;
       import flash.display.*;
       import mx.controls.Alert;
       import com.myDomain.Lines.Main;
       public var p1:Main = new Main();
       public var pre:Number = 0;
       public function prepToDraw():void
        pre = 1;
       public function startDraw():void
        if(pre == 1)
        p1.graphics.clear();
        var newColor:int = 0xFF00FF;
        var iniX:Number = mouseX;
        var iniY:Number = mouseY;
        var lineWidth:Number = 10;
        p1.graphics.lineStyle(lineWidth, newColor);
        p1.graphics.moveTo(iniX, iniY);
       public function drawLine():void
        if(pre == 1)
         p1.graphics.lineTo(mouseX, mouseY);
       public function noDrawLine():void
        if(pre == 1)
         Alert.show("noLine");
    ]]>
    </mx:Script>
    </mx:Application>
    The package:
    package com.myDomain.Lines
    import flash.display.Shape;
    import flash.display.Stage;
    import flash.events.MouseEvent;
    import mx.core.UIComponent;
    public class Main extends UIComponent
      public function Main()
       super();
      public var p1:Shape = new Shape();
    If you go apply the code, you will see: 1) The first event to fire is mouseUp, then you eill start drawing the line, but again, you will not be able to stop this event with mouseUp. If you can help me, I will be very appreciated. Thanks. 

  • Problem with Events Manager: 'slct'

    I set up an Events Manager item to run a script whenever the event "Selection" ( 'slct' ) is activated. The script works beautifully and I'm having no problem with the script itself. I am, however, having problems with what happens after the script finishes. I have this problem even if I completely comment out the script or delete everything inside the script file and leave it blank. The purpose of the script is to automate things when I select specific layers. That works and the script has some checks to prevent anything from happening unless one of those specified layers is selected.
    The problem is, when I select a tool using the keyboard shortcuts, it will revert back to the previous tool upon the next keypress. It basically acts as if I am using toggle mode for that tool by holding down the key for that tool.
    I wiped out my preferences but that did not solve the problem. It makes no difference how my keyboard shortcuts are mapped...either default or user defined. So for an example, here is how some of my keys are mapped:
    B-Paintbrush tool
    S-Brush Size Increase
    So if I'm using the Clone Stamp tool and want to switch to the Paintbrush tool, I will press the "B" key. The tool switches as it's supposed to. If I need to change the size or hardness of the brush, I press one of the corresponding keys...let's say "S" to increase size. When I press "S" nothing will happen until I release that key. Once I do release it, the tool switches back to the Clone Stamp tool. You can get this same effect yourself if you hold down the key of the tool you are switching to (use the toggle mode) and then try to change size/hardness using the keyboard shortcut for that function while still holding that tool's key down.
    If I select the tool from the Tools Palette, I do not have this problem. If the tool is selected from within my script, I do not have this problem. The only time I have this problem is when using the keyboard shortcuts to select the tool.
    Keep in mind that I have tried this with the script code completely bypassed/erased so no script code actually exedutes. When I turn of the Events Manager or remove the 'slct' item from Events Manager, I do not have this problem at all. If I hold the <SHIFT> key down while selecting the tool, I do not have this problem (this is the same as if you were to hold down the <SHIFT>+<tool key> and press the key to change size/hardness).
    To me, it seems as though if there is a 'slct' event item in Events Manager and the keyboard is used to select a tool, Photoshop treats it as if that key is being held down (toggled) until another key is pressed (or even the same key).
    If anyone knows how to get around this problem, I would greatly appreciate it. Thank you.

    I'm having the same problem where a keystroke (like changing size "[ or "]") will revert to a previous tool rather than change size. Particularly annoying when you left your previously selected eraser slightly larger or smaller than your brush size and don't realize it till you've erased.
    So far, from reading across quite a number of forums, it seems the event listener istelf causing the issue
    At the moment I've just been thinking of "BB" as my shortcut instead of "B" so when it reverts it reverts back to the brush anyway.
    I'll come back if I find a real solution to this annoyance ;P
    CS5
    Wacom Intuos4
    Windows7

  • Problems with RME Syslog (LMS 3.1 with W2003)

    Hello, I'm Guilliano and have problems with the operation of syslogcollector and sysloganalysis. The current situation is:
    * Unsubscribe the host that was active and I can not subscribe to another host because I get the error: SLCA0152 and SLCA0126. I followed the steps in the User Guide 4.2, and Instalation Guide RME LMS 3.1 and I can not solve the problem. I try to create the certificate that indicates the error in the Commun Services, but does not believe it.
    * In windows critical messages appears: DCR is down or inaccessible.
    In advance, thank you very much.
    Sincerely,
    Guilliano Palavecino R.
    Support Engineer
    Adexus S.A

    Shutdown SyslogCollector and SyslogAnalyzer:
    pdterm SyslogCollector SyslogAnalyzer
    Then delete NMSROOT/MDC/tomcat/webapps/rme/WEB-INF/classes/com/cisco/nm/rmeng/csc/data/Subscribers.dat,
    NMSROOT/MDC/tomcat/webapps/rme/WEB-INF/classes/com/cisco/nm/rmeng/sa/data/collectors.dat, and empty out the contents of NMSROOT/MDC/tomcat/webapps/rme/WEB-INF/classes/com/cisco/nm/rmeng/csc/data/filters.dat. Then restart the daemons:
    pdexec SyslogCollector SyslogAnalyzer
    See if syslog works again.

  • Applet: problem with cookie encoding for jar request (Firefox - Iplanet)

    I have an applet working with a JAR file. When the JVM sends the request to the webserver for the JAR file, it adds to the request the existing domain cookies. However, one of these cookie is encoded, and on Firefox with Iplanet (webserver), it prevents the jar from being downloaded (server returns error 400).
    Below the HTTP request (as given by Charles HTTP Proxy) for Firefox and Chrome. We can see that some characters differ for the aria_user_profile cookie.
    Not working - FF
    GET /LocalPrinting.jar HTTP/1.1
    content-type: application/x-java-archive
    User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_21
    Host: nceetvdev58-11.nce.XXXX.net
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Cookie: aria_user_profile={DS?!,!C!"ÍÔaÃæK?9eä|IC¦?!A:i?!?!7æâ!A7!*EÄ!,B¥È!8*0dà!4????ræÐq!6¦M!??"Z²!-!7s
    Working - chrome
    GET /LocalPrinting.jar HTTP/1.1
    accept-encoding: pack200-gzip, gzip
    content-type: application/x-java-archive
    User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_21
    Host: nceetvdev58-11.nce.XXXX.net
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Cookie: aria_user_profile={DÀ?SÆ?!,!C!"ÍÔaÃæK?9eä|IC¦?!A:i̤!?!7æâ!A7!*EÄ!,B¥È!8*0dà!4Ñ????ræÐq!6¦M!??"Z²!-!7sfÍ?-ÏT¤(çf!E
    Is there a solution to this, by setting an encoding on the applet tag for instance?

    JB.Hurteaux wrote:
    Ok, sorry about that. I was planning on reporting the answers from one site to another though (if any :-))I'd generally prefer seeing a second post (or edited post) cross-linking the two.
    Does not seem I can edit this one ..No. As soon as I replied to it (the only option to put the link) the original post become not editable. That is to protect the text in the thread - so later replies make sense(1).
    That is one thing that is very different between stack overflow and these forums, obviously.
    ..(your answer will do),.. It gives the message.
    ..I updated the stackoverflow one.Cool.
    1) E.G. If you'd edited the original post to add a link, or mention you were about to cross-post to stack overflow for reasons X/Y/Z, it'd make me look a complete buffoon, wouldn't it? ;-)

  • Open Create Replace problems with saving file patterns

    Hello, I got a problem with open/replace/create function. Could you please clarify each function how it works? As you can see in my file, I try to save into the specified file path. The values appear in the text file but when I change some values in the data mainstream, it replaces the old value it has been. I want to have the whole data in one file till I close it and open another file for the operation.
    How can I do it??
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    Values Measurement 1-main.vi ‏34 KB

    Hi,
    I can't see your VI as it is in a newer version of LabVIEW than I have, so if you want any more specific help you'll need to save the VI as a previous version. (File -> Save as previous version) I have LabView 2009.
    However, I have made a quick little example you could use. You don't need to use Set File Position if you use Shift Registers, as shown in the attached picture.
    David.
    Attachments:
    WritetoFile-simple.png ‏21 KB

  • Problem with event based scheduling

    Hi,
    We are having a ETL job running everynight, so i need to have daily
    report as soon as my ETL job is finished. For that we have run some
    script to create a event file after completion of ETL job. And by using
    this event file we have scheduled a report that runs after this event
    file is created. Now the problem is that the scheduled report is
    generated before the ETL job is finished. This seems to be working fine
    till last month, but this month we are facing this issue. my question
    is why the scheduler is triggered before the event file is created
    (event file is created after the completion of ETL job)
    Do anybody faced this iss
    FYI
    We are on BO XI 3.1 with no SP's and FP's and on windows environment.
    Do anybody faced this issue?Any advise is appreciated.
    Thanks,

    Hi,
    We are also on BO XI 3.1 with no SP's and FP's. We create Event files after the ETL jobs are completed. These files are used to create BO Events (File), which are used as scheduling criteria before the Reports can run. These files are deleted daily before the next files are created, something you might want check.
    Mike

  • Applet problem with FileWriter() (security problem?)

    btBut1.addActionListener(new ActionListener()
       public void actionPerformed(ActionEvent e)
           FilePermission perm = new FilePermission("<<ALL FILES>>" , "write");
          try {
                FileWriter outputStream = null;
                outputStream = new FileWriter("./bandiere/testouno.txt");
           catch (IOException eX) {
       });This is a bit of code from an APPLET which I'm working on. The code does not work...
    I smell it is a security problem, but I'm not sure...

    You are trying to write to the local file system which is not allowed unless the applet is signed.
    Unless you think you are trying to write to the server, in which case, you can't do that with FileWriters. You'd have to make a connection to the server via a socket or URLConnection or something to pass the data over.

  • Problem with Event Dates in iMovie '08

    Ok, here's the problem: I bought my Mac in August and moved over a lot of video clips shot with my camera into my iPhoto library. The metadata all displays correctly in iPhoto. However, when I look at the events in iMovie, they are all listed as Dec. 31, 1903.
    I did check the board and saw that there are others with this problem. I looked at the original files in the Finder and discovered that they are all missing a piece of data in the Get Info window: none of them have a "Created:" date. I'm thinking this is probably where the problem is coming from.
    The next question is whether anyone knows a way to fix it? I can't modify "Created:" from the Get Info window. My guess is that if I match the created date to the actual other metadata that should correct the problem and get the events to display correctly.
    It's just a guess, but I'd appreciate any help.

    I've answered my own problem. It has to do with the "created" date; most of these clips came over from my PC, so they all have the same date. By modifying that, you resolve the problem and it reorders the clips.

  • A problem with events

    Hi, first of all, sorry for my poor english :(
    My problem is:
    Have a page jsf with 2 SelectOneMenu and 1 commandButton like this
    <h:selectOneMenu binding="#{nuevoExpediente.cbObra}" valueChangeListener="# {bean.cbObra_OnChange}" onchange="submit()" >
    <f:selectItem itemLabel="Nuevo" itemValue="-1" itemDescription="Introducir nuevo poseedor" />
    <f:selectItems binding="#{bean.listobras}" />
    </h:selectOneMenu>
    <h:selectOneMenu binding="#{bean.cbCliente}" valueChangeListener="# {bean.cbCliente_OnChange}" onchange="submit()" >
    <f:selectItem itemLabel="Nuevo" itemValue="-1" itemDescription="Introducir nuevo poseedor" />
    <f:selectItems binding="#{bean.listclientes}" />
    </h:selectOneMenu>
    <h:commandButton id="cmdInsertar" value="Aceptar" action="#{bean.cmdInsertar_OnClick}" />
    Cool, now, when the pages FIRST time that i select one item on selectonemenu or click button, page fires ALL events. I think this it because when initialize SelectOneMenu with value="#....", an one event onChange wait on a queue and when any object of form make submit() all event on a queue are throws.
    this is:
    1º time when page load
    - click on a button
    - cbObra_OnChange fire ( on queue for give values? )
    - cbCliente_OnChange fire ( on queue for give values? )
    - cmbInsertar_OnClick fire ( yes, im clicked :D )
    how i can do this? i want that when click on the button first time, only event of button fires.
    thanks for all

    When you submit a form, the valueChangeListener will be invoked if the new value of the input component differs from the initial value of the input component. If the initial value of the dropdown was for example null and the default option of the dropdown contains another value, then the valueChangeListener will also be invoked. If you preset the initial value of the dropdown with the value of the default option, then the valueChangeListener will not be invoked -simply because the value has not changed. You can preset it in for example the constructor of the bean or during filling of the selectitems.
    E.g.private String selectedItem; // +getter +setter
    private List<String> selectItems; // +getter
    public MyBean() {
        fillSelectItems();
    private void fillSelectItems() {
        selectItems = new ArrayList<SelectItem>();
        for (SomeObject someObject : someDAO.list()) {
            if (selectedItem == null) {
                selectedItem = someObject.getValue();
            selectItems.add(new SelectItem(someObject.getValue(), someObject.getLabel()));
    }

  • Problems with getting repeating patterns to display properly

    Using Oracle's Map Definition Tool I am trying to import repeating patterns through the "import image" functionality, found under "map metadata --> styles --> area", but I am having problems getting them to work properly (i.e. they don't repeat as they should). Part of the problem is the poor quality of repeating patterns images that where send my way.
    Therefore I have 2 questions I hoped someone here could answer me:
    1) Is there an easily accessible collection of decent+ quality repeating patterns somewhere on the web where I could look for patterns to use?
    2) What is the image resolution used by the Oracle Map Definition Tool, or in other words, what is the minimum resolution I need to make sure the pictures are to make them downscale properly to a single pattern image through the "import image" functionality?

    For starters, you could try any of the pattern images/icons available in your popular word/graphics applications such as Word, Powerpoint, or Adobe. For instance in PowerPoint you can find a set of Patterns under Format Auto Shape > Fill > Fill Effects > Pattern. You can generate your own pattern images that closely follow the design of these from PowerPoint.
    When you import an image, as long as you make sure the preferred width/height of the image is set to identical with the real width/height of the image itself, MapViewer will not attempt any scaling during rendering, thus preserving the native resolution of your pattern image.

Maybe you are looking for