Added webutil object group with JDAPI - adjust the webutil block sequence ?

Hi all,
I'm using the JDAPI to subclass in the webutil object group into Forms in an application. Annoyingly, the webutil block becomes the first block on the Form - which means on some Forms it displays on startup. Is there anyway (programmatically using JDAPI) that I can move the block the end of the block list after I've subclassed in the object group ?
TIA
Steve

Hello,
move
void move(JdapiObject nextObject)
Reorders an object with respect to its siblings in the collection it belongs to. This is similar to using drag and drop in Form Builder to move a block in a list. This method represents a way to do the same thing programmatically. For example, if you want a block appear immediately before Block5 in a list, you pass the object representing Block5 as the nextObject argument.
Pass null to this method to move the object to the end of the list. If the specified object and the next_object do not share the same owner, or do not have the same type, the method throws an exception.
You cannot use this method to move objects between parents. For example, it cannot be used to move an Item from one Block to another. If you want to move an object from one parent to another you will have to do something like:
// to move 'itmA' to be positioned before 'itmB' in block
// 'blkB' (when 'itmA' is in another block)
// copy itmA into a new parent (blkB) using same name
Item newItmA = itmA.clone(blkB, itmA.getName());
newItmA.move(itmB); // move new item relative to itmB
itmA.destroy(); // delete original object
itmA = newItmA;
Parameters:
nextObject - the object next to which the specified object is to be moved.
Throws:
JdapiException - if you attempt to move an object next to an object that does not share the same owner or is not of the same type.
Francois

Similar Messages

  • Attaching the WebUtil object group to a form

    Hi. I'm hoping for some help on how to attach the WebUtil object group to a form. I go to the Object Groups node in the object navigator and click the '+' button, but I'm not prompted to attach .olb files. How do I do this? Without it attached I'm receiving the message "The WebUtil object group is not available in this form. WebUtil cannot work." when I run my application. Thanks in advance.

    Okay I opened the .obl and it appears under the Object Libraries Node. Then I double-click on the Object Groups node in my form and it simply creates a new object named OBJECT_GROUP100. I can't seem to drag and drop from the Libraries Node to the Object Groups node in my form. It just shows a circle with a line through it indicating that I can't drag it. Any suggestions? (Sorry, I've not done this before).

  • Object-group with network-object containing an IP address range

    Hello,
    Does the ASA treat an object-group with a network-object containing a range of IP addresses as a netmask? For example, I can apply this configuration without the ASA throwing any errors though the configuration calls for a 'net mask':
    object-group network test
    network-object 192.168.0.0 192.168.63.255
    network-object-group mode commands/options:
      A.B.C.D  Enter an IPv4 network mask
    sh run ob id test
    object-group network test
    network-object 192.168.0.0 192.168.63.255
    I found that in the documentation it requires a netmask as oppose to a range. Is this a bug in the code? I am running code version 8.0(5)23 on a 5520. If this is not a bug how does the ASA treat this type of configuration when applied to an access list? When I ran a quick packet trace and denied access from that range it looks like the ASA doesn't read that configuration properly. Thank you.
    -John

    Hello,
    Thank you for your replies. In code version 8.0(5)23, it appears I am able to define a "range" of IP addresses as in:
    192.168.0.0 192.168.63.255 as opposed to defining a range with a netmask like 192.168.0.0 255.255.192.0.
    With the "range" of IP address applied to the "object-group network test" with sub command "network-object 192.168.0.0 192.168.63.255" the ASA does not pick up on said "range" when this object group is applied to a DENY access list. It only reads it properly when the netmask is attached, which is the correct configuration, as in: "network-object 192.168.0.0 255.255.192.0".
    To clarify, I mean range as in 192.168.0.0 - 192.168.63.255.
    Hope this helps to understand. I am just curious as to why this is even able to be applied in such a way or if it is a bug in this particular code version? I can also confirm that this can be done in code version 8.4(2). See below snippets of my configuration in the 8.4(2) code version:
    access-list 101 line 3 extended deny ip object-group testmask any 0x577f55a8
      access-list 101 line 3 extended deny ip 192.168.0.0 192.168.63.255 any (hitcnt=0) 0x0623b0c4
    access-list 101 line 4 extended permit tcp any any eq 89 (hitcnt=1) 0x36f1e5cd
    Packet trace results in allowing the "range" of IP address:
    Result:
    input-interface: outside
    input-status: up
    input-line-status: up
    output-interface: dmztest
    output-status: up
    output-line-status: up
    Action: allow
    Now with the "correct" configuration:
    access-list 101 line 3 extended deny ip object-group testmask any 0x577f55a8
      access-list 101 line 3 extended deny ip 192.168.0.0 255.255.192.0 any (hitcnt=1) 0xa31c6bbd
    access-list 101 line 4 extended permit tcp any any eq 89 (hitcnt=1) 0x36f1e5cd
    Result:
    input-interface: outside
    input-status: up
    input-line-status: up
    output-interface: dmztest
    output-status: up
    output-line-status: up
    Action: drop
    Drop-reason: (acl-drop) Flow is denied by configured rule
    Thank you.
    -John

  • The WEBUTIL object group is not available in this Form WebUtil cannot work

    I Attacth Lib Webutil
    create buttom on click
    CLIENT_HOST('cmd /c DEL c:\test.mmx');
    while run form then click buttom
    alert error
    formsweb.cfg
    [webutil]
    #WEBUTIL_CONFIG=C:\DevSuiteHome_1\forms\webutil.cfg
    #WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilArchive=/forms/java/frmwebutil.jar,/forms/java/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    archive_jini=frmall_jinit.jar
    archive=frmall.jar
    lookAndFeel=oracle
    how to solve a problem Thank you

    Looking at both of your posts on this topic, this one and Found Error FRM-13008 Cannot find JaveBean with name oracle.forms.webutil.o I really believe that your WebUtil configuration is not complete. I ran into this same issue when I was configuring WebUtil for the first time. I attempted to take a few short-cuts because I didn't think they mattered or I thought they were already complete. After spending about 2 hours and still not getting anywhere I decided to start over and intentionally complete each step of in the Configuration section of the manual - even if I had already completed the task. Fifteen minutes later, I had WebUtil configured and working. I kicked myself for not doing that the first time! :8} You might want to consider doing the same.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Subclass webutil object group problem

    Hi,
    I am using 10g form.
    I download the webutil demo and got a form called WU_TEST_106 in which there is
    a object group called WEBUTIL.
    Then I create a new form and drag the object group WEBUTIL of the form
    WU_TEST_106 to the object group of the new form and choose 'subclass'.
    When I check the content of the WEBUTIL data block in the new form, there
    is no items there.
    There should be some bean area such as WEBUTIL_FILE_FUNCTIONS and
    WEBUTIL_HOST_FUNCTIONS etc.
    Anyone can help ?
    Ivan

    Do not subclass WEBUTIL from another form. In folder <DevSuiteHome>\forms there should exist file webutil.olb. Open this file directly in Form Builder using
       File | Open
    and subclass the objects contained within.
    Eric Adamson
    Lansing, Michigan

  • What happends when you give 2 groups with some of the same members different authorizations for a document

    Hello,
    I'm doing my internship at a litte Telekom company. I'm investigating how they can use MS SharePoint as their central place to put projectinformation. Now i've been thinking what happends when i do the following:
    Make one document library
    Add 2 groups to the Active Directory, group "A" with all the employees and group "B" with only four people working on a project. When i add a document to the document library and set the authorizations for the document as
    follows:
    Group B: Read/Write
    Group A: Read
    Does the people from group B still be able to edit the document, because they are also in group A?
    I don't have a test environment to test this myself.
    Why i want to know this? The company want's one place to place all their documents with projectinformation. This information is about different projects. You only wan't that people can change the specific document when they are working on the specific project
    where the document belongs to.  

    You get the union of permissions, so if one group allows access and the other not, you will get the union of both and therefore access. Of course, you can break security settings per library/folder or document, and specify new settings,
    if you need too.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • "Object Required" error when using the script block from the code behind

    I try to use the following script block on the code behind page
    <script defer='true' id='NavID' type='text/javascript'>Nav();</script>
    and the function Nav() is on the .aspx page. It gives me the "Object Required" error message. BUT if I add an alert("hello!!!") line inside of the Nav() function, it works fine after the user closes the alert box. Has anyone experienced a similar problem? Please help. Thanks.

    There is no way to troubleshoot this by looking at a picture of the diagram. LabVIEW 6 is almost prehistory and many things have changed, especially the file IO all looks different so it is impossible to tell what you are doing.
    Error 7 is file not found, so most likely your string operations are not correct. What are the full strings? What is the final file name (maybe you are missing a "\" or maybe you are on a different OS type). Put an indicator at the path wire to see what's happening!
    Is this a datalog file?
    (Overall, the code is a bit suspect. Nobody needs a seven frame flat sequence. ) Why do a control and an indicator have the same label?)
    LabVIEW Champion . Do more with less code and in less time .

  • Breaking Subclass/Removing Object Group/Without loss of code for child form

    Hi all..
    This is regarding Forms 10g (breaking inheritance)
    I have a base form as well as client form.
    The child form is having some properties as common to the base form. so child form is having sub class(inheritance) from the base class with the help of Object Group. This is the exiting setup
    Now, client wants the same information as child form with out link with base form.
    i.e., they want to remove the Object Group with out distrubing the child form.
    Finally, they want the child form as independant from base form. i.e., child form should not have inheritance from the base form and at the same time they don't want to loss of any code to the child form.
    There are 1000's of forms like that are need to re-work.
    Is there any tool/script available to do this process of work automatically.
    Please provide the necessary deatils and help me regarding this.
    Regards
    Madhava

    You CAN add new items to the subclassed block or change triggers code or even add new triggers. Form Builder won't let you create items in-between existing subclassed items or triggers. So if you need to create a new item, create at the end of subclassed item or trigger...
    You can not DELETE items of subclassed block or the block itself if it is subclassed. But you can remove the subclassed object from your child module --- by removing class info from the object group in child module --- but it will also remove all the subclassed child objects.
    If you delete or change anything in master object, it will directly affect the subclassed object and you can see the change immediatly in the child modules.
    When you drag the master object to child, it asks you if you need to subclass or copy, selecting copy will create a separate copy which you can play with in the child module.
    And below is brief help on the matter:
    If you don't want all the objects in the subclassed object group, then you might consider either subclassing the desired objects individually, or creating an object group which contains only the desired objects.
    Edited by: Zaafran Ahmed on Oct 13, 2010 12:41 PM

  • Including webutil objects with api

    Is possible including webutil objects (objects from object library and webutil.pll ) with forms API. Exists examples for this?

    The answer is yes - it's pretty simple to carry out the tasks you need to do. Attaching the PLL and the Object Group are simple (see the JDAPI samples in the forms Demos for this) and for the conversion of the Code calls - e.g. OLE2 to CLIENT_OLE2 you can actually use the migration assistant to make the string changes in the PL/SQL code for you. It has a code replacfement feature configured through it's properties file which you can add to to do this.

  • Subclass the WebUtil Object

    Hi. I'm attempting to Subclass the WebUtil Object. I've attached the library to my application and I've opened the WebUtil Object Library. But how do I do this 'subclassing' to my form?
    At this point I'm assuming I need an entry under the Object Group node of my form. How do I do this?
    Thanks in advance.

    After you've opened the object library in forms builder, double-click on it and then drag and drop the 2 webutil objects into your form. The object group goes into your object groups node, and the parameter goes into into the parameters node.
    Then you need to reorder canvases and blocks so that the webutil components do not appear first when you run the form

  • FRM-92101 in wu_test (the webutil demo form)

    Error:
    FRM-92101 in wu_test (the webutil demo form)
    Problem:
    I am attempting to run the wu_test form, downloaded with demos for webutil 1.02.
    Running wu_test or another form containing webutil functions results in
    FRM-92101 in the form's window and the following error in the OC4J console.
    "Forms session <1> aborted: unable to communicate with runtime process."
    Environment:
    Java Client: Tried with both Sun Java Plug-In 1.4.2.04/5 and Jinitiator 1.3.1.17
    Application Server: Oracle 9.0.4 iDS (Orion Development OC4J)
    Database: Enterprise Edition 10.1.0.2.0
    Forms Listener Servlet
    Attempted Solutions:
    I have scoured OTN & MetaLink & tried everything I could find with no luck. I
    apologize for the length of this post, but I want to provide as much information
    as possible re: what I've tried and my environment.
    For instance, the remedy in Note 252600.1, which can cause these symptoms, did
    not help.
    This note states:
    In webutil.cfg modify
    install.syslib.location to an absolute URL, replacing the line:
    install.syslib.location=/webutil
    To an absolute URL like:
    install.syslib.location=http://[host]:[port]/forms90/webutil
    (replacing [host] and [port] with your own values) or
    install.syslib.location=//../webutil
    Other Information:
    Other forms (ones that don't contain webutil functions/beans) run fine with the same
    env and config used for webutil.
    The wu_test form is already set up so first navigation item is not on the
    webutil canvas, but on the "demo" canvas.
    OC4J Console:
    C:\Program Files\Common Files\System\MAPI\1033\nt>C:\Ora10giDS\jdk\bin\java -Xbo
    otclasspath/p:C:\Ora10giDS\vbroker4\lib\vbjboot.jar -Doracle.security.jazn.confi
    g=C:\Ora10giDS\j2ee\DevSuite\config\jazn.xml -Doracle.home=C:\Ora10giDS -DORACLE
    _HOME=C:\Ora10giDS -jar C:\Ora10giDS\j2ee\home\oc4j.jar -userThreads -config C:\
    Ora10giDS\j2ee\DevSuite\config\server.xml
    04/07/29 15:46:09 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    04/07/29 15:46:19 FormsServlet init():
    configFileName: C:\Ora10giDS/forms90/server/formsweb.cfg
    testMode: false
    04/07/29 15:46:35 ListenerServlet init()
    04/07/29 15:46:51 Forms session <1> aborted: unable to communicate with runtime
    process.
    Orion webserver application.log:
    04/07/29 15:46:07 Started
    04/07/29 15:46:19 forms90web: jsp: init
    04/07/29 15:46:19 forms90web: f90servlet: init
    04/07/29 15:46:19 forms90web: FormsServlet init():
    configFileName: C:\Ora10giDS/forms90/server/formsweb.cfg
    testMode: false
    04/07/29 15:46:19 forms90web: 9.0.4.0.0 Started
    04/07/29 15:46:35 forms90web: l90servlet: init
    04/07/29 15:46:35 forms90web: ListenerServlet init()
    04/07/29 15:46:51 forms90web: Forms session <1> aborted: unable to communicate with runtime process.
    04/07/29 15:46:51 forms90web: Forms session <1> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
         at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Java Console:
    Java(TM) Plug-in: Version 1.4.2_05
    Using JRE version 1.4.2_05 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\isellers
    Proxy Configuration: No proxy
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    oracle.forms.net.ConnectionException: Forms session <1> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    Or JInitiator Console:
    Oracle JInitiator: Version 1.3.1.17
    Using JRE version 1.3.1.17-internal Java HotSpot(TM) Client VM
    User home directory = N:
    Proxy Configuration: no proxy
    JAR cache enabled
    Location: N:\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://localhost:8890/forms90/webutil/webutil.jar from JAR cache
    Loading http://localhost:8890/forms90/java/f90all_jinit.jar from JAR cache
    Loading http://localhost:8890/forms90/webutil/jacob.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 9.0.4.0
    oracle.forms.net.ConnectionException: Forms session <2> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    Named Config sections from formsweb.cfg
    #A named (sample) named configuration section for use with WebUtil & Sun JPI
    [webutil]
    pageTitle=Oracle Forms Services - WebUtil
    webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    baseHTMLjinitiator=html/bocowebutiljpi.htm
    baseHTMLjpi=html/bocowebutiljpi.htm
    userid=<replacedforsecurity>/<replacedforsecurity>@<replacedforsecurity>
    legacy_lifecycle=false
    heartBeat=5
    envFile=env/webutil.env
    #A named (sample) named configuration section for use with WebUtil & JInitiator
    [webutiljinit]
    pageTitle=Oracle Forms Services - WebUtil JInit
    webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    baseHTMLjinitiator=html/bocowebutiljini.htm
    baseHTMLjpi=html/bocowebutiljini.htm
    userid=<replacedforsecurity>/<replacedforsecurity>@<replacedforsecurity>
    envFile=env/webutil.env
    Webutil.env (with comments removed)
    ORACLE_HOME=C:\Ora10giDS
    FORMS90_PATH=C:\Ora10giDS\forms90\webutil\forms;C:\Ora10giDS\forms90\webutil\demo;C:\Ora10giDS\apps;
    WEBUTIL_CONFIG=C:\Ora10giDS\forms90\webutil\webutil.cfg
    CLASSPATH=C:\Ora10giDS\j2ee\OC4J_BI_Forms\applications\forms90app\forms90web\WEB-INF\lib\f90srv.jar;C:\Ora10giDS\jlib\repository.jar;C:\Ora10giDS\jlib\ldapjclnt9.jar;C:\Ora10giDS\jlib\debugger.jar;C:\Ora10giDS\jlib\ewt3.jar;C:\Ora10giDS\jlib\share.jar;C:\Ora10giDS\jlib\utj90.jar;C:\Ora10giDS\jlib\zrclient.jar;C:\Ora10giDS\reports\jlib\rwrun.jar;C:\Ora10giDS\jdk\jre\lib\rt.jar;C:\Ora10giDS\forms90\webutil\lib\webutil.jar;C:\Ora10giDS\forms90\webutil\lib\jacob.jar;
    PATH=C:\Ora10giDS\bin;C:\Ora10giDS\jdk\jre\bin\client
    FORMS90=C:\Ora10giDS\forms90
    Section from Webutil.cfg
    #install.syslib.location=/webutil
    # Try absolute URL per note 252600.1 - no help
    #install.syslib.location=http://it110981.boco.co.boulder.co.us:8890/forms90/webutil
    # Or try relative URL like this per note 252600.1 - also no help
    install.syslib.location=//../webutil
    Line from orion-web.xml
    <virtual-directory virtual-path="/webutil" real-path="C:\Ora10giDS/forms90/webutil/lib" />
    Any suggestions on how I can get this to work will be appreciated. Thanks. -Ian

    most of the time this means that your webutil.pll isn't good attached but it is very dependant on the versions you working on.
    Post your versions of forms ias and webutil.
    In older version it is sometimes necessary to first subclass the webutil group and then attach the webutil.pll. Other way around didn't work (was in beta version 1.02 I believe)

  • EEM to update an object group

    Hello Cisco!
    I've been playing around with EEMs on and off for a few months now, and I'm enjoying it quite a bit! A recent issue at work got me thinking, and I thought I'd try and solve the problem with a new EEM. It's really quite simple, but I'm having trouble getting it to work as intended.
    Device Specs:
    On a CISCO881-SEC-K9 running:
    Embedded Event Manager Version 4.00
    Component Versions:
    eem: (rel6)1.0.0
    eem-gold: (rel1)1.0.2
    eem-call-home: (rel2)1.0.4 
    Problem:
    I'd like to create an EEM that checks the IP of a website a few times a day, and cross references the results with the IPs listed in an object group. If the new IP isn't listed, it will add it to the object group. If it is detected, it won't do anything. (I have this e-mailing either way right now, to assist me with debugging)
    Reasoning:
    I'd like to see if this is something I can do with an EEM. It would be nice to have something dynamically configured to make updates like this. At the end of the day, It mimics a feature on some firewalls. I'd like for this to get around the limitations of a static ACL entry. I haven't looked into TCL scripting, as It would be a new language that I'd have to learn. The beauty of EEM, is that it builds off of what a technician already knows. If you understand IOS, EEM is relatively easy to pickup and run with.
    Side Note: If you see something in my script that could be consolidated, or just doesn't make much sense; please let me know. There is a really good chance that I don't know of the alternative method. This is especially true in terms of my regular expression knowledge. That's an ongoing battle :)
    Thanks in advance everyone.
    Your assistance and constructive criticism is more than welcome and is greatly appreciated.
    Here is what I have right now:
    event manager applet update_my_object_group
     event timer cron cron-entry "* * * * *" maxrun 9999999
     action 1.0 cli command "enable"
     action 1.1 cli command "ping www.google.com"
     action 1.2 wait 5
     action 1.3 regexp "to ([0-9.]+)," "$_cli_result" match new_ip
     action 1.4 cli command "show object-group self_building"
     action 1.5 regexp "([0-9.]+)" "$_cli_result" match current_ips
     action 2.0 if $new_ip ne "$current_ips"
     action 3.0  cli command "conf t"
     action 3.1  cli command "object-group network self_building"
     action 3.3  cli command "host $new_ip"
     action 3.4  cli command "end"
     action 3.5  cli command "show object-group self_building"
     action 3.6  regexp "([0-9.]+)" "$_cli_result" match new_current_ips
     action 4.1  mail server "$_email_server" to "$gmail" from "$_email_from" subject "EEM: Successfully Updated Object Group" body "Added new IP: $new_ip\n to Object Group: self_building\n $current_ips"
     action 5.0 else
     action 5.1  mail server "$_email_server" to "$gmail" from "$_email_from" subject "EEM: Object Group Failure" body "I couldn't update the object group: self_building. Debug:\n New IP: $new_ip\nCurrent: $current_ips\nWhat it is now: $new_current_ips"
     action 5.2 end
    Here is an example I built up for a single ACL. Same concept, just a single line gets updated. I was using this as a reference for my object group script.
    event manager applet update_my_acl
     event timer cron cron-entry "0 * * * *" maxrun 9999999
     action 1.0 cli command "enable"
     action 1.1 cli command "ping www.msn.com"
     action 1.2 wait 5
     action 1.3 regexp "to ([0-9.]+)," "$_cli_result" match new_ip
     action 1.4 cli command "show access-lists | sec test_acl"
     action 1.5 regexp "10 permit tcp any host ([0-9.]+) eq www" "$_cli_result" match current_ip
     action 2.0 if $new_ip ne "$current_ip"
     action 3.0  cli command "conf t"
     action 3.1  cli command "ip access-list extended test_acl"
     action 3.2  cli command "no 10"
     action 3.3  cli command "10 permit tcp any host www.msn.com eq www"
     action 3.4  cli command "end"
     action 4.0  cli command "show access-lists | sec test_acl"
     action 4.1  mail server "$_email_server" to "$_email_to" from "$_email_from" subject "EEM: Successfully Updated ACL" body "New IP: $new_ip\nOld IP: $current_ip"
     action 5.0 else
     action 5.1  mail server "$_email_server" to "$_email_to" from "$_email_from" subject "EEM: ACL NOT updated" body "New IP: $new_ip\nOld IP: $current_ip"
     action 5.2 end

    Thanks for the review!
    Well, it's technically "working", but not in the way that it's designed. It checks the object group, but it only finds  the first IP listed. I'll provide you with the object group it's generated so far, and what I'm receiving in my e-mails.
    (I don't think my regular expressions are working correctly.)
    The Object Group:
    object-group network self_building
     host 10.9.8.20
     host 74.125.225.114
     host 173.194.46.115
     host 74.125.225.148
     host 173.194.46.116
     host 173.194.46.112
     host 74.125.225.81
     host 74.125.225.83
     host 173.194.46.84
     host 74.125.225.17
     host 74.125.225.20
     host 173.194.46.80
     host 74.125.225.19
     host 173.194.46.83
     host 173.194.46.114
     host 74.125.225.116
     host 74.125.225.51
     host 74.125.225.52
     host 173.194.46.113
     host 74.125.225.145
     host 74.125.225.144
     host 74.125.225.49
     host 74.125.225.82
     host 74.125.225.146
     host 74.125.225.84
     host 74.125.225.112
     host 173.194.46.82
     host 173.194.46.81
     host 74.125.225.18
    Here are the successful e-mails sent to me. As you'll see, I've had the EEM include the $current_ips in the e-mail. This should be all of the IPs in the group, but it's just the first one listed (found). So, because it doesn't match, it adds the newly found IP to the group. 
    But, as you can see in my emails, that IP has been found before and added already. The desired behavior is it for it to see that the entry already exists, and not apply it.
    Edit: Thought this would help:
    Step 1: Ping www.google.com.
    Step 2: Use regular expression to capture the IP found.
    Step 3: Run a show command, and find all of the IPs currently listed inside the object group: self_building
    Step 4: Cross reference the newly found IP, with the IPs found in the object group.
    Step 5: If it's already there, then discard it and end the EEM.
    Step 5 (a) If it's not there, then add it to the object group, and then end the EEM.
    Thanks again!

  • Is it possible to adjust the photo angle and size in Snapshots theme

    Hi
    I'm new to aperture and am having a few frustrated-hair-pulling issues with the Snapshots theme. I was using iPhoto to create a Photobook of my son's first year and found it to be too limited for what I want to create. I came across Aperture and was wow'ed by the description saying I could rotate and resize photos, add text boxes etc. This was just what I was after so I downloaded the free trial to test it. I like the snapshots theme the best for the idea of it looking more "homemade" but seem to be unable to adjust the photo angle and size from the given templates. Also I find that the border in adding new photos (which I can adjust the size and rotation of) is without the custom shadow effect that the template ones have. Duplicating the template photo only gives one with the shadow effect but also of the same size with the same rotation that I can't do anything with! Rrrrghhhh
    I thought this would be a great way to customize the album I'm making for my little boy, and that it wouldn't be too hard! My mac skills are considerable, but I'm by no means an expert! Is this program too much for a non-pro-creative-housewife with a wish that may be solveable in iPhoto afterall?
    Or am I just missing something? Is there a way to do this or shall I just give up and choose another theme?
    Any recommendations are welcome! Please!!! My scalp is now officially sore!

    Here's the solution I used to solve the same problem. If you're not comfortable editing the source files, this might be more than you want to take on--but I've done it to several files with no ill effects. You can follow the instructions on this page and the referenced original post from (he includes a link on the page). Good luck! He's got some great tips on some of his other pages.
    http://photo.rwboyer.com/2010/03/15/aperture-3-book-theme-trick/
    A warning about editing the Master pages--it only edits them in that book--it doesn't update the theme. So if you go to create another book with those same layouts, you'll have to duplicate the book and replace all the images. An alternative would be to create a "clean" book with no photos in it and then just use that as a starting point each time.

  • ASA 5510 & Object-groups

    I have an ASA 5510 and have just started using object-groups which are super handy in theory, but not working in reality. I have a service object-group with a mix of tcp, icmp, and udp ports. Let's call it Sample_Port_Group. I'm trying to apply it to my dmz_access_in ACL. Here's the line giving me problems:
    access-list dmz_access_in extended permit object-group Sample_Port_Group 192.168.1.1 any
    The asa throws up an error between 192.168.1.1 and any. When I put up a ? after Sample_Port_Group, it gives me the option of putting in an IP address, any, etc. When I put in a ? after 192.168.1.1, it only gives me the option of putting in an IP address.
    Going off these posts:
    - http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_tech_note09186a00800d641d.shtml
    - http://www.cisco.com/en/US/docs/security/asa/asa81/config/guide/nwaccess.html
    Those posts gave me the impression my line was possible, especially the "access-list outsideacl extended permit object-group myaclog interface inside any" line, which is at the end of the 2nd article linked.
    What am I doing wrong?
    Thanks in advance for any help.

    Hi Adam!
    You are doing it right, you are just missing on little keyword.
    The line should be as this:
    access-list dmz_access_in extended permit object-group Sample_Port_Group host 192.168.1.1 any
    or you could specify the subnetmask as:
    access-list dmz_access_in extended permit object-group Sample_Port_Group 192.168.1.1 255.255.255.255 any
    Regards

  • OVM 3.0.3 - cannot add new server to VLAN group with bonded VLANs

    I have a new OVS 3.0.3 server built with 2 bonded interfaces and a single VLAN running on top for the management interface. It gets discovered fine by OVM Manager (I'm running Version: 3.0.3.126, Build: 20111214_126)
    I am trying to add it to a VLAN group with two VLANs -- the existing management VLAN (ID=300) plus one other (ID=301). (I already have one identical server assigned to the VLAN group, with both VLAN interfaces configured and running fine.) This works OK, and I can see VLAN 301 for the new server in Oracle VM Manager with no IP address assigned to it.
    However, when I try to apply an IP address to the VLAN (via Hardware / Resources / VLAN Groups / Edit VLAN Group / Configure IP Addresses / VLAN Interfaces) it fails with this error:
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: whyovmprd02 failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/1 ovs_br_config start 0004fb0010be2df bond0.301, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Command ['/etc/xen/scripts/ovs-network-bridge', 'start', 'bridge=0004fb0010be2df', 'netdev=bond0.301'] failed (1): stderr: ovs-network-bridge Start: No such device bond0.301
    Oracle VM Manager seems to be expecting the subinterface for VLAN 301 to exist on the server already - which it doesn't of course, because the server has just been built, so it only has its management interface VLAN in place (VLAN ID 300)
    I have managed to work around this by removing VLAN segment 301 from the VLAN group completely, then adding it back in with the IP addresses for both servers in place. This seems to convince Oracle VM Manager that it needs to create the bond0.301 subinterface before it configures it. However, I obviously had to shut down all VMs to do this, and it was really messy as VLAN 301 is the storage network, so my original server lost contact with the NFS storage for a while which caused it to fence etc.
    There must be another way??! Any pointers would be very much appreciated.

    Avi Miller wrote:
    It's fixed in 3.1. In the meantime, if you can remove and reapply the Virtual Machine role on that network, it'll recreate the bridges for you.Thanks for replying Avi. (I won't ask you for a release date for 3.1 :))
    I did try that initially, but it didn't seem to help - I got this error back:
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: whyovmprd02 failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/1 ovs_if_meta bond0.301 ethernet:0004fb00100a35f{why-be-301}:STORAGE, Status: org.apache.xmlrpc.XmlRpcException: exceptions.Exception:ovs_set_metadata: interface /sys/class/net/bond0.301 does not exists
    This appears to be from ovs_if_meta in /opt/ovs-agent-3.0/OVSVMNetConfig.py, which looks to be where the agent tries to write out the new roles for the network into the metadata file - it seems to be expecting the VLAN to exist already, and specifically checks in /sys to make sure that it is there.
    Should / could I add a step to my kickstart build to force the 301 VLAN to be created maybe? This would bring it into line with the other VLAN that is used for management, which is of course sitting there ready and waiting as soon as the server is built.

Maybe you are looking for

  • Standard and Detailed Profitability

    Hello Gurus I am a newbie in HPCM. I am aware that there are standard and detailed HPCM available, standard HPCM uses Essbase while detailed HPCM uses a relational database. What are the Pros and Cons and major differences for these two? Thank you ve

  • How to embed video player in iPhone application?

    Hello Everybody, I want to embed video player in my application. I have one sample code provided by the iPhone developer documentation. But it is not running properly , it is just showing one rounded progress indicator and it is rotating n rotating a

  • Reporting server configuration in ATG Customer Intelligence 10.0.3

    Hi,       I am trying to setup an ATG customer intelligence 10.0.3 installation to support an ecommerce application running on ATG webcommerce 10.0.3. When doing the cognos configuration for the reporting server in ATG CI,  its required to specify th

  • Gui Help ( toolbar )

    Greetings, Ive came across problems while doing a tutorial work piece. i've to design a toobar ( yup a JToolBar ) with 5 buttons inside it, that will do certain functions for a JSlider.( set them at certain values ) Its simple enough to go and write

  • System freezes and then will not reboot

    About two weeks ago I opened my MacBook Pro, just before a business trip only to find that it would not start, just a grey screen, if I left it long enough then the apple logo appeared and the loading circle, but that is as far as I got. As I was fly