Access rule to the rule-driven event Variables

Hello!

Background:

Here's what I'm trying to do: I was hoping someone might be able to help me with this.

I created an event rule without a scope that will be sent, if the name of the event contains a prefix set, as follows;

{if(@event_name.) Contains ("MYFILTER_")}

Returns true;

} else {}

Returns false;

}

The action is a command line action that activates a special probe in SNMP before that we have installed on the server.

The problem:

I want to access a variable in the variable filter rule. Essentially, EACH rule containing MYFILTER_ as a prefix has a variable defined as a variable of @callGroup RULE. This variable considers the specified parent service and tire part of the name of the service that we have designed to be always the band guard for this alarm/event.

The solution that I'm looking should look like this:

On the event rule:

Variable: callGroup

Type: Expression

Value of the expression: @event.get ("callGroup");

On the MYFILTER_ rule:

Variable: callGroup

Type: Expression

Value of the expression:

def foundParent = false;

targetService def = 'unknown ';

i = 0;

While (i< scope.parents.size()="" &&="">

obj = scope.parents def;

{if (obj.topologyTypeName.Equals ("FSMService"))}

If (obj. Name.Contains(":") & obj.name.contains("-")) { //This is the regular expression to our designated 'parents services' }

targetService = obj.name;

foundParent = true;

}

}

i ++ ;

}

{if(!foundParent)}

for (x = 0; x

for (y = 0; y)

obj = Scope.parents [x] .parents;

{if (obj.topologyTypeName.Equals ("FSMService"))}

If (obj. Name.Contains(":") & obj.name.contains("-")) { //This is the regular expression to our designated 'parents services' }

targetService = obj.name;

foundParent = true;

}

}

}

}

}

originService = targetService.split(":");

parentService = originService [0];

Return parentService.split ("-") [0];

Bottom Line: How can I access this other value or a variable existing rule from the interface of event action rule?

access to the content of the rule Variables is unfortunately not possible by using the generated alarm or event driven rule.

But I think you can use the same rule of expression led to the event. The only problem is that your event driven rule is not you need to replace worn with

Server. TopologyService.getObject(@event.topologyObjectID)

Like this

def scopedObject = server.TopologyService.getObject(@event.topologyObjectID)  // use the @event to find the alarm scope !!!

def foundParent = false;def targetService = "unknown";

i=0;while(i < scopedObject.parents.size() && !foundParent){  def obj=scopedObject.parents;  if(obj.topologyTypeName.equals("FSMService")){    if(obj.name.contains(":") && obj.name.contains("-")){ //This is the regex of our designated "parent services"        targetService = obj.name;        foundParent = true;    }   }  i++;}

if(!foundParent){  for(x=0;x;       if(obj.topologyTypeName.equals("FSMService")){                  if(obj.name.contains(":") && obj.name.contains("-")){  //This is the regex of our designated "parent services"           targetService = obj.name;           foundParent = true;         }       }     }  }}

originService = targetService.split(":");parentService = originService[0];

return parentService.split(" - ")[0];

Tags: Dell Tech

Similar Questions

  • ORA-20001: unauthorized access (package for the undefined security group variable).

    I'm creating an application that uses the authentication of the APEX and characteristics (work) registration and forgot password forms (does not work).

    My I forgot the password is public (requires authentication). The user provides the user name and a secret answer, which are validated and then provides the new password. I try to use htmldb_util.reset_pw to reset the password of the user, but it does not work.

    I have a process on the new password page call a PL/SQL anonymous block that looks like this (see below), where username = P16_ITEM1 and P18_ITEM1 = new password.

    BEGIN
    apex_040000.htmldb_util.reset_pw (V ('P16_ITEM1'), V ('P18_ITEM1'));
    END;

    I don't know how to send a message of success/failure of such PL/SQL block to the APEX, but that's a separate issue, I guess.

    In any case, during the trial through SQL Developer as the user with APEX_ADMINISTRATOR_ROLE, I get the following error:

    ORA-20001: unauthorized access (package for the undefined security group variable).
    ORA-06512: at "APEX_040000.WWV_FLOW_FND_USER_API", line 22
    ORA-06512: at "APEX_040000.WWV_FLOW_FND_USER_API", line 1220
    ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 1253
    ORA-06512: at line 8 level

    I've searched previous discussions and tried different suggestions with no luck.

    I'm on Oracle DB 11g XE and APEX 4.x.

    Any help will be appreciated. Thank you

    Alex.

    In any case, during the trial through SQL Developer as the user with APEX_ADMINISTRATOR_ROLE, I get the following error:

    ORA-20001: unauthorized access (package for the undefined security group variable).

    When executing code outside the Apex which depends on the security defined Apex group, perform the following steps before your own code:

    wwv_flow_api.set_security_group_id(apex_util.find_security_group_id('YOUR_SCHEMA_NAME'));
    

    Google "wwv_flow_api.set_security_group_id" for more details, like this blog:

    http://www.easyapex.com/index.php?p=502

    -Morten

    http://ORA-00001.blogspot.com

  • Problems to make the access rule for a NAT device work

    I am new to Cisco routers so light easy on me.

    Our company has just purchased a RV042G so that we can start using VPN for some of our sales representatives.  There is always a need to access the RDC to configure our WAN1 port access rule to the internal server.  However, it does not work.

    I have install this type of rule on Sonicwalls before, but I don't have much experience with Cisco.  I'm a bit confused as to why it doesn't work anymore.  Any advice would be great.

    Service = DRC (3389)

    Source port = WAN1

    Source IP = our static IP address

    Destination IP = 192.168.0.250.

    What I am doing wrong?

    Hello Eric,

    Looks like you got the first step made so fare. How access lists works on this devices is actually just control/allow certain traffic but does not in fact of NAT/port forwarding. What you need to do is then go into the setup and go under transfer. Next, you will create your port forwarding it. You click on service management again to set up which port you must sent (it may be already there for when you have configured your access list). Some of them should be similar on how you implemented in the access list, but if you want more information let me know and I can give more details.

    Hope that helps out.

    Thank you
    Clayton Sill

  • RV042 VPN group &amp; access rules

    I have install a GroupVPN and connect to the RV042 with the client VPN Shrewsoft, works like a charm as opposed to QuickVPN ;-)

    The firewall is configured with an explicit deny for RDP access rule to an internal server, can also be used to explicitly a rule is created for certain numbers of IP as a source. I noticed that I need to create an explicit allow rule for the subnet of the client Shrewsoft is using the virtual adapter or I won't be able to access the internal server via RDP through the tunnel of GroupVPN.

    Is it normal? I think that establishing a tunnel defies the rules created for a direct access to the WAN port.

    Peter

    Sorry, I got my signals crossed with my previous suggestion.  Your answer has cleared up my misunderstanding.  My rule was for a different purpose and it does not work for your situation, I thought it would be.

    redirect port (UPnP or redirection) replaced the firewall rules, but does not completely bypass their. He must work around the default rules for work, but don't not past rules customized.  The trick is to know the translation of transfer goes first, then when it is processed by the firewall, the destination is the IP and the port internal.  In addition, it would seem that VPN works the same way - allows to bypass default firewall but not custom rules.

    Since you want to double your security and have a non-standard port MORE limit access to specific IPs through the rules of firewall, then you are set up correctly.

    The VPN to bypass the firewall completely?   Maybe, but then you wouldn't have the opportunity to clients VPN filter with custom (without a separate section in Firewall VPN) rules.  Given that you have created a custom block rule, you must add an allow rule for everything that comes through the WAN (same VPN) port.   I agree it's annoying, but that's just the way the program is written.

    I didn't test the VPN rules, but I think you can handle this - the only variable would be you allow the public IP address of the remote network or remote LAN subnet range?  I expect the LAN subnet.

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

    Other thoughts - I personally just use the non-standard port and leave the RDP Security to take care of himself.  My clients are very small, so the exposure and risk are fairly low.  For a client of profile higher or more secure, I would either put everything inside a VPN connection, or configure as you.  Of course, if the security is so important, maybe you should be on a more expensive (and capable) device?

  • LRT224 not getting firewall access rules do not honored

    Hello

    I use LRT224 with firmware version v1.0.5.03 (February 22, 2016 10:12:17). After that I had the camera that I have updated to this version, done a factor reset and started the same configuration.

    I have defined four VLANS, connected my WAN link, everything is configured. Each port is assigned a VLAN which are connected to different switches. When connect us computers to each of these VLANs, we become appropriate network DHCP address and are able to surf the internet properly without any problem.

    I have two or three machines in VLAN2 whereby, I want to install the virtual host configuration by using Port Forwarding.

    I'm trying to map the port 8801 to port 22 on a server in the VLAN2, and so I can SSH to the server from the outside.

    In the Port Forwarding, I created a new service for 8801 and using this service, I defined a redirection rule to this server in the VLAN2. I've also set trigger Port 8801 to 22. Also open the port 8801 by adding an access rule to the firewall configuration.

    Despite all this, I can't access this internal server from outside.

    I had a similar configuration before with a Dlink WiFi router and there it worked perfectly fine. Thus, there is no problem on the server.

    I also tried Port Address Translation instead of triggering Port, still unable to connect.

    When I do a port-scanning of my external IP address for port 8801, it looks like below:

    For print.blrhq.public (xxx.xxx.xxx.xxx) nmap scan report
    Host is (0.0031 s latency).
    SERVICE OF THE PORT STATE
    8801/tcp filtered unknown

    Not sure if the firewall is contributing to the show or the configuration of port forwarding.

    In this regard, any help is appreciated.

    You only need the translation rule addresses port. Remove port forwarding rule.

  • RV082 v4.0.0.07 individuals and access rules NAT problem

    Hello

    I just bought two RV082 to run a 20 computer and office web server 4. I use special NAT to public IPs are mapped on different servers and our monitoring system and it seems to work very well. For each address of individuals using a NAT, I created the following access rules:

    Allow HTTP WAN1 everything [PA]

    Allow SSH WAN1 everything [PA]

    Refuse all WAN1 everything [PA]

    Allow rules are of a higher priority so my experience with other firewalls suggests that they should be applied first blocks access to all ports and ports HTTP and SSH then would be open. What seems to be the case is very disconcerting, with any rules applied Allow refusal rules are removed completely open all ports. If I move the priority of rule Deny it blocks all ports, as expected.

    My question is how can I prevent access to all ports except ports HTTP and SSH with the router in NAT mode specific.

    When an access rule is set on a NAT 1 rule at 1, you want to change the public ip address to the private IP which is mapped to the public ip address.

    Allow to use HTTP WAN1 everything [private address]

    Allow SSH WAN1 everything [private address]

    Refuse all WAN1 everything [private address]

  • RV042 access rules

    I have a port forward for a port (say 3299). I also have a Wan access rule allowing all traffic from several IP ranges to access the local network.  Other wan access is refused by the built-in firewall rule.  However, I can still access the port forward despite this.  What I have to do a rule specifically for the port to allow access to the range of IP addresses and blocking everything else.  I thought that the integrated Wan rule deny it, everything, everything, always treat that...

    Thoughts?

    Hi, I thought the same as you before, but I had the same problem with my FTP rules.

    Because you did a redirect rule, you create also allows some first IP you want access to this transfer and later, you must do a deny rule for this redirection service that rejects everything after tent.

  • Help! RV042 access rule

    Good day to all...

    I have set up my purchase new RV042 router, in the access rule, I deny all the services of the source is Lan and WAN are. My concern is that I want to allow LAN to access the internet, so i ' ved create another rule allowing http, https. but my problem is that I can't access the internet. Please help me what other services associated with http, https to access the internet.

    Thank you.

    The denial of access rules is the latest rules?

    • Better plug the screen to check.

  • Problem of access rule entering RV110w

    I have a few questions.

    1. I could not make a reconciliation work access rule for RDP. It is configured as follows WAN-> LAN for RDP (TCP 3389 port), it did not work even when I chose "all traffic".

    2. simple Port Forwarding seems to work well.

    3. destination IP and QoS parameters seem to be grayed out, I would like to know why.

    Hello

    Mcoskuntr,

    RDP to a remote computer, you need to configure a rule for portforwarding under the port forwarding on this router. Some of our routers do not transfer rules of the port to set up as access rules require however is not one of these.

    Destination IP address is grayed because a unique address is the only option. You create a single port forwarding and you cannot specify a single port to multiple IP addresses.

    QoS is gray because it is an internal rule to the outside and this device only port QoS based on the LAN side.

    Blake Wright

    HWC Cisco network engineer

  • 8.3 ASA VPN access rules

    Hi, I recently bought an ASA 5520 to use as a VPN gateway for several tunnells site to site VPN. I've upgraded to version 8.3, and set up a lab environment. I implemented a simple VPN with a rule of intellectual property general permit to stert with and everything works fine. I'm having trouble tightenign access now, if I change the access on the SAA for ICMP I can ping both directions, if I add tcp I can telnet from a computer at the other end of the VPN, but if I change the tcp protocol to telnet, I can't connect. the other end on the VPN is a cisco 2620XM and I match the lists of access for each of the changes. I also do not understand the meaning of the ASA access list, it seems that if I want to allow the remote tcp host behind the ASA access I have the host behind the ASA as the source, it appears backward? Anyone can shed some light on this? very much appreciated.

    Yes, you are supposed to only configure 'IP' to your ACL (ACL applied to your crypto card) crypto and crypto ACL supposed to mirror image on each peer, so when you change to specific TCP/UDP ports, is not mirror image of the other side/peer more.

    I thought that you use ACL applied to "vpn-filter".

    But in the previous post, actually configure you ACL on each interface.

    The above is 3 different ACL you have applied differently (crypto ACL--> apply to the card crypto, vpn ACL--> apply to vpn-filter and your normal ACL interface).

  • Errors in 'Speed' while accessing the mouse click events?

    Hello

    I built a software where it has a CVI callback function registered on the Panel. The function tests whether two cases, the first EVENT_LEFT_CLICK and then EVENT_LEFT_CLICK_UP. The user is supposed to keep the click button for some time (~ 1 second), and there is no problem. However, I have found that if by mistake (that users commit often) multiple rapid clicks are made, sometimes the click down the piece of event (EVENT_LEFT_CLICK) of the code is not read. I reduced the likelihood of this problem of the speed setting of double click (on Windows) to the maximum.

    I think that if I could eliminate the double click event, this problem would be resolved almost completely and only limited by the speed at which the processor can update mouse events.

    Hope you understand my problem.

    Thank you!!

    AUTOSOLVED.

    Thanks to a guy who posted his own solution on a Windows forum, to 'disable' the double click. Just change the HKEY_CURRENT registry value > ControlPanel > mouse > DoubleClickSpeed to 1. What makes the double click speed so fast that you can access virtually every user actually simple clicks.

    After doing this, in order to apply the registry editing, I ended explorer.exe running and he raised through windows task screen. However, change, this applies to what I opened the mouse Panel (without change or apply anything from there).

  • Access the value of a variable assigned to CompositionReady?

    I created a variable called counter inside the 'scene' in the "CompositionReady" using the following code.

    var counter = 0;

    How to get or write the value of this variable

    through a 'trigger '?

    Remove the var on the counter.

    Just so put this in compositionReady

    counter = 0;

    Then you can just call him in a trigger as

    Alert (Counter);

    or

    counter + 1;

    or as if (counter == 1) {}

    }

    or whatever.

    I hope this helps.

  • Unable to access children in the init event or complete SWFLoader (numchildren =-1)

    Trying to put a label to a loaded flash (it is public), works fine if I call a timer and wait 2 seconds. Then I tried to do the 'right' way and it fails. (See the code example) Aparnently the flash charge (type FlashLoader) has a child (type SystemManager) with numChildren-1 at the event.

    Tried the init and event complete but no workie.
    http://livedocs.Adobe.com/Flex/3/langref/MX/controls/SWFLoader.html#summaryTableEvent
    init: dispatched when the properties and methods of a loaded SWF file are accessible.
    full: dispatched when the content is finished loading.

    Here is the code example:
    the file swf to load only fitted with a label with the id innerLabel and is called inner.swf

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML 'creationComplete = "init ();' >
    < mx:Script >
    <! [CDATA]
    import flash.display.DisplayObject;
    import flash.display.DisplayObjectContainer;
    import flash.events.TimerEvent;
    import flash.utils.Timer;
    Import mx.controls.Label;
    import flash.utils. *;
    Import mx.controls.SWFLoader;
    Import mx.core.Container;
    Import mx.core.FlexLoader;
    Import mx.managers.SystemManager;

    public var errors: Array = new Array();
    public var ld:SWFLoader = new SWFLoader();
    public void init (): void {}
    LD. Load ("Inner.swf");
    ld.addEventListener (Event.COMPLETE, setInnerLabel);
    this.addChild (ld);

    COMMENT THE ADDEVENTLISTENER METHOD AND UNCOMMENT THE LINES 3 AND IT WORKS
    LIKE A CHARM
    var t:Timer = new Timer(2000, 1);
    t.addEventListener (TimerEvent.TIMER, setInnerLabel);
    t.Start ();
    var doneTimer:Timer = new Timer (3000, 1);
    doneTimer.addEventListener (TimerEvent.TIMER, checkDone);
    doneTimer.start ();
    }
    public void checkDone(o:Object):void {}
    If (this.errors.length! = 0) {}
    trace (this.) Errors.Join ("\n"));
    } else {}
    trace ("done without error");
    }
    }

    public void setInnerLabel(o:Object):void {}
    var l:Label = getObjectsByProperty ("id", "innerLabel", Thi, null) [0] as Label;
    If (l == null) {}
    Errors.push ("unexpected innerLabel reduced label...");
    } else {l.text = "OK getbyid." ;}
    }
    {region for getElementById functions
    public void getObjectsByProperty (startFrom:DisplayObjectContainer,
    Public,
    PropertyValue:String,
    arrRet:Array = null): Array {}
    If (terminate == null) {}
    Terminate = new Array();
    }
    in the case where you pass a null value
    If (startFrom == null) {}
    return terminate;
    }
    If (startFrom.hasOwnProperty (propertyName)) {}
    If (startFrom [propertyName] = propertyvalue) {}
    arrRet.push (startFrom);
    }
    }
    trace ("HOW MANY of the CHILDREN:" + new String (startFrom.numChildren));
    traceElem (startFrom);
    for (var i: int = 0; i < startFrom.numChildren; i ++) {}
    traceElem (startFrom.getChildAt (i));
    If (startFrom.getChildAt (i) is DisplayObjectContainer) {}
    var tmpArr:Array = getObjectsByProperty (startFrom.getChildAt (i) as DisplayObjectContainer,
    propertyName, propertyvalue, terminate);
    Terminate = tmpArr;
    } else {}
    trace ("THE FOLLOWING WAS NOT A DISPLAYOBJECTCONTAINTER :");
    traceElem (startFrom.getChildAt (i));
    }
    }
    return terminate;
    }

    private void traceElem(elem:Object):void {}
    var x: XML = describeType (elem);
    var s:String = "got an item of the type:"+ x.attribute("name").toString ();.
    for (var i: int = 0; i < x.child("method").length (); i ++) {}
    If (x.child ("method") [i].attribute('name').toString () == 'getChildAt') {}
    s = s + "\n\t\t\tSupports getChildAt;
    }
    }
    for (i = 0; i < x.child("accessor").length (); i ++) {}
    If (x.child ("accessor") [i].attribute('name').toString () == 'numChildren') {}
    s = s + "\n\t\t\tSupports numChildren;
    s = s + "\n\t\t\tChildren:"+ new String ((elem.numChildren)); "
    }
    }
    trace (s);
    }
    } endregion
    []] >
    < / mx:Script >
    < / mx:Application >

    Common practice is to listen to the event APPLICATION_COMPLETE of SWFLoader.content once you get the COMPLETE event.  When loading a SWF Flex events really mean:

    Init: Enough of the properties and methods of SystemManager are available to implement the preloader, but we are waiting for the rest of the SWF file before we create all children whose main application:

    Full: All the bytes of the SWF file are downloaded, but we expect the event framework before the Framework 2 and the creation of the main application.

    So, your code would look more like:

    ld.addEventListener (Event.COMPLETE, completeHandler);

    function completeHandler(event:Event):void

    {

    ld.content.addEventListener (FlexEvent.APPLICATION_COMPLETE, setInnerLabel);

    }

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • problem by setting the value of a variable substitution in a calc script

    Hi all.


    I'm trying to update the value of a variable substitution inside an IF statement, and I have a problem.

    Here is the code:


    * "Jan" (*) "
    IF (LoopCounter = 1) & varEntity = "100";
    ENDIF ;)

    the error that I get back from Regional service is:

    Error: 1200336 error analysis [Jan] (line 54) formula: [()] without [)]

    It's tricky. Without really analyzing the details of your example, two options that might be worth a visit:

    1. write a MaxL script for updating the subvar (s), and then run the calc, x 20. 40 lines of MaxL and 500 lines of code is 10 000. Obviously, this only works if the launch of the MaxL script is feasible, and you know that you aren't going to have multiple instances of the calc (or any what calc which depends on these subvars) running at the same time. But I guess you're OK with the last part, because even your original solution would have this problem
    2 hyperion Business Rules

    I know that CL knows a lot of HBR, if he is here today...

  • How can I transfer data from the database in a variable (or array)?

    I made my request according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed a single function to query the database - add two parameters and get the value from the table to a string format. A test operation shows that everything is ok. If I want to display this value in the text box, I just do drag and drop off service to this element in Design view

    (< s:TextArea = "153" x = "435" id = "nameText" text = "{getDataMeanResult.lastResult [0] .name}" width = "296" height = "89" / > ").

    Also, it works fine, just a warning and encouraged to use ArrayCollection.getItemAt ().

    Now, I want to send the value to a variable or an array, but in both cases, I get an error: TypeError: Error #1010: a term is undefined and has no property..

    How can I pass a value to the database in a variable? Thank you.

    public var nameTemp:String;

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [0], dir_id);

    nameTemp = getDataMeanResult.lastResult [0] .name;

    public var nameArray:Array = new Array();

    for (var i: uint = o; i < 3; i ++) {}

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [i], dir_id);

    NomTableau [i] = getDataMeanResult.lastResult [0] .name;

    }

    And how do I use syntax highlighting in this forum?

    Astraport2012 wrote:

    Thank you.

    Then this simple question: How can I place a mySQL database data in a variable using the wizards FB4 (connect with PHP)?

    If you can show examples please.

    I couldn't find examples. Send data to a field text or DataGrid - much, but no variable.

    the use of assistants? not sure... it is generally a bad idea to rely on them, because they will never fully what you want anyway. I would recommend learning abit of PHP and manage by yourself, because it allows you to manage everything exactly as you wish.

    small example of communicating with a database using PHP + FB4:

    mount a database

    write you a small script that will access your database, get a value, for example:

    ";
    
        while($row = mysql_fetch_array($result))
        {
            if($row['messageID'] == "3")
            {
                print $row['message'];
            }
        }
        print "\n";
    ?>
    

    This will get the message with ID '3 '.

    make an HTTPService in FB4 app to call this Script, as follows:

    
    
        
            
    
            
        
    
        
            
        
        
    
    
    

    and the value must be picked up by the Script and properly stored in a variable

Maybe you are looking for