How to manually generate events in SMC 3.5 ?

Dear,
We are using the SDK of SMC 3.5 to build an application. To test the application, how can we generate events manually ? I'd like to have a script on Solaris that, when run, generates an event in the SMC database. Does anyone have such a script ?
Best regards,
Marc.

Convert the CR2 files to DNG files, a folder at a time, using the latest DNG Converter that is from Adobe:  http://www.adobe.com/downloads/updates/
OR buy an upgrade to LR 4.x.

Similar Messages

  • How to get custom file name in manually generated SSRS report

    Hi,
    I am creating a SSRS report which would be executed by User manually through ReportServer URL.User would be generating the SSRS report for different Customer ID based on ad-hoc basis.
    I am passing CustomerID as input parameter to the report. Is there any way to get the manually generated SSRS report name as 'Report_CustomerID_TodayDate.xls'. Please let me know.
    E.g.If User is generating report for Customer ID 123 today then report name should be 'Report_123_07092013.xls'
    Thanks for your help in advance.
    Thanks,
    Abhiyanta

    Hi Amar,
    If possible Can you please provide the custom code to rename the exported file in SSRS.
    Thanks in advance,
    Regards,
    Jagan

  • How I Generate Event from ADF to talk BPEL

    Hi ,
    I want to generate Event in ADF on click of button.
    That Event suppose to send message to BPEL process.
    Can anyone suggest me on this?
    Thanks,
    Ramit

    You would need to use Mediator component in the SOA composite to listen to this event generated from the ADF layer.
    The Mediator can route to the BPEL component where you could do the required processing.
    ADF Developer's guide has all the required information with respect to this:
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcentities.htm#CHDHDIDB
    Thanks,
    Navaneeth

  • How can we generate the report of backup,tablesapcefrom OEM / RMAN

    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...
    2.)How can we generate the Backup status report also

    user13584223 wrote:
    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...There are DBA_* views that expose the necessary information. They are documented in the Reference Manual.
    2.)How can we generate the Backup status report alsoThere are rman commands that give that. They are documented in the Backup and Recovery User's Guide.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • How to sort photo events by date and avoid having duplicated photos on iPhone 6+

    How to sort photo events bby date and avoid having duplicated photos. Before the sorting by date worked perfectly by specifying "sort events by date ascending" in iPhoto from my Mac. Now the sorting from iPhoto has no more effect on the iPhones. And photos are often duplicated when synchronisin. Before these problems didn't happen. How to do?

    You can not  --  neither automatically or manually - you should never be in the masters folder and there is never a need to be - iPhoto is a SQLite database and it's database structure is determined by it (and changes from time to time) - use the supported access methods (direct access to the photo files is not supported and never has been) - either using iPhoto or using the media browser in the lower left hand corner of every open/attach/iupload window
    It is CRITICAL that you NEVER make any changes of any sort to the structure or content of the iPhoto library using the finder or any program other than iPhoto
    LN

  • How to manually create an iPod save with iTunes?

    Hello,
    using iTunes and an iPod Touch, sometimes it happens that I want to have multiple save points available for restore in case something goes wrong with the iPod (e.g., losing notes, or forgetting which podcasts were present on the iPod, etc.)
    I noticed that, somehow, such saves were generated at some point inside ~/Library/Application Support/MobileSync/Backup; all three are named upn the same model, a long, hexadecimal-looking string, then "-date-time". All three are properly recognized in iTunes.
    As I don't remember how these were generated, how can I start a new iPod save whenever it synchronizes? I set podcasts, contacts and calendars to sync automatically, and I manually add or remove films and music.

    You can always right-click (control-click) on your iPod in the devices list of iTunes and select Backup.
    From the manual, page 109: "Backups can be created in the following ways:
    Once iPod touch has been configured to sync with a particular computer, iTunes automatically makes a backup of iPod touch on that computer when you sync. iTunes won’t automatically back up an iPod touch that is not configured to sync with that computer. If you have configured iPod touch to automatically sync with iTunes on a specific computer, iTunes will back up iPod touch every time you
    connect it to that computer. Automatic syncing is turned on by default. iTunes only makes one backup each time you connect, even if you sync multiple times before disconnecting.
    If you choose to update the software on iPod touch, iTunes will back up iPod touch automatically, even if it is not configured to sync with iTunes on that computer.
    If you choose to restore the software on iPod touch, iTunes asks if you want to back up iPod touch before restoring."

  • How can I count events during a given time with 2 counters (6025 E)

    Hi, How can I count events during a given time (1 sec for example) with 2 counters:
    what is the best way?
    how should i configurate both counter?
    i have done the 1st counter in ev_counter with the gate being the output of the 2nd; and how can i say to the 2nd to trig the first after 1 sec counting? (trig at start and at end) what are the functoins calls in NIDAQ. i am using Visual C++

    Greetings,
    When you perform event counting a gate signal can be added such that if a low signal occurs on the gate, then the counter will pause. When a high signal is seen, the counter will continue counting edges. When you install the NI-DAQ driver you should have installed the examples for Visual C++. The counter examples are found in \Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ctr. Take a look at STCeventCount.C. Be sure to only use STC examples with your hardware. The E-series boards contain the DAQ-STC chip.
    Now, all you need is a gate signal with a width (high time) of 1 second. You could use an external frequency or pulse generator to do this. Or, you could just use the second counter found on your PCI-6025E board. In this
    case you could configure the second counter to generate a single pulse. Take a look at the STCgenerateSinglePulse.C example. As long as the pulse is in a high state for one second you can use it to gate (or time) your counting of events.
    Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Last.fm - manually generate & upload statistics?

    Hi!
    There are quite a few tools in the repos that seem to offer support to upload statistical data to a last.fm account while plaing music located in the filesystem, but...
    - Does anyone know, how that's transmitted? Like how the "file" looks or what protocol/methods are available?
    - How to manually upload "artist - title - played"?
    - How to have whole directories of mp3's uploaded as "played" (or text files / lists)?
    - Where to start figuring all that out?
    ( To put that into a context: I'm trying to improve my recommended channel here. )
    Thanks!

    Thanks, so far so good...
    write header:
    echo "#AUDIOSCROBBLER/1.1\n#TZ/TC\n#CLIENT/<lastmsg0.1>" > .scrobbler.log
    add lines for all mp3 files in directory / subdirectory:
    while read file; do mp3info -p "%a\t%l\t%t\t%n\t%s\tL\t$TIMESTAMP\t$ID\t\n" "$file" >> .scrobbler.log; done < <(find ./ -name '*mp3')
    ... now:
    1) Strange: the second line does work from command line, but not inside a bash script. I'm totally new to writing/using scripts, so maybe to anyone else it's obvious why it says: " genera.sh: line 4: syntax error near unexpected token `\<' "?
    2) I'm wondering, if small differences in play time (seconds) have a big impact on recommendations quality (maybe half of the files result in an own entry noone else shares as played/loved because of +- 3-5 seconds)? Does lastfm correct that or am I supposed to?
    3) Also the timestamp... is this used for anything or just "eyecandy"? I'm thinking of maybe just setting it to generate timestamps with a delay of random 22-33 minutes between each "play" backwards from the actual timestamp or something... something?
    4) Less of a problem I guess, but non the less: Is there an easy AND basic approach to upload these things? Like with some post/http/ftp/hatever tool? Didn't look into that yet, but "qtscrob" sounds like "GUI for KDE and 100 dependencies included" and "Perl script to submit these" sounds like "a quick look into that will make me accidentally learn the basics of perl for the next 10 hours"...
    5) Unimportant: This "MusicBrainz Track ID" actually IS unimportant, isn't it? Or is there an easy way to get it? (like a Program that can optionally put it into the id3 tag of all mp3's or a way to generate it from info that's already in there)
    Last edited by whoops (2009-06-04 16:28:15)

  • Why shared variable generates events when I write constant value?

    Hello all,
    I'm using LV 8.5 with DSC packet.
    I modified "DSC Events Demo".vi and made a test. I noticed that only variable which work okay is double typed. Why this code generate events all the time when I write constant values to shared variables? Double is okay, but string and boolean types not work okay. Is there any other people how have noticed same symption?
    Attachments:
    modified_dsc_event_demo1.zip ‏391 KB

    You may get an initial event on startup which is normal.  Also make sure that you have not enabled timestamp change events.

  • Generate Events based on Cache size

    Hi,
    I have a use case where I need to generate events when the size of the cache has reached a specific value. The cache will be highly transactions (lot of inserts and deletes totaling to 6 million transactions per day). Also, I cannot limit the size of the cache as I don't want any data to be lost (trying to insert when cache size has reached its limit).
    One of the ways I could do this is to use a MapListener to generate an event on every insert to the Cache, and then check for size each time to decide if the further processing needs to be done. With the nature of the traffic in the cache, the items in the cache are to be processed when the size threshold is reached and then deleted. But, I'm not sure how much of an overhead these events and listeners will have (with 6 million items going through the cache each day)
    Is there any other more efficient way to do this? I have looked at Continuous Query cache which uses a filter based on a cache. But, I'm not able to figure out a way to get the size of the cache using a filter.
    Any pointers are helpful
    Thanks in advance
    Regards
    Vikas
    Edited by: vikascv on Nov 17, 2009 8:48 AM

    Hi Vikas,
    Typically a size type calculation is the cumulative result of all storage enabled nodes, i.e. a Count aggregation. In your use case you want to be made aware of changes to an aggregation but as an aggregation is point in time of request opposed to continually being updated it does not fit your use case. One option is to create a MapEventTransformer that you register with the cache which increments a counters cache (on a separate service) using an EntryProcessor, i.e.
    MapEventTransformer...
    public class CounterMapEventTransformer implements MapEventTransformer, PortableObject
        String m_cacheName;
        public CounterMapEventTransformer()
        public CounterMapEventTransformer(final String cacheName)
            m_cacheName = cacheName;
        public MapEvent transform(MapEvent event)
            Long prevCount    = null;
            Long currentCount = null;
            switch( event.getId() )
                case( MapEvent.ENTRY_INSERTED ):
                    // perform counter++
                    currentCount = (Long) CacheFactory.getCache("counters").invoke(m_cacheName, new CounterOp(true));
                    break;
                case( MapEvent.ENTRY_DELETED ):
                    // perform counter--
                    currentCount = (Long) CacheFactory.getCache("counters").invoke(m_cacheName, new CounterOp(false));
                    break;
            MapEvent newEvent = new MapEvent(event.getMap(), event.getId(), event.getKey(), currentCount-1, currentCount);
            return newEvent;
        public void writeExternal(PofWriter out) throws IOException
            out.writeString(0, m_cacheName);
        public void readExternal(PofReader in) throws IOException
            m_cacheName = in.readString(0);
        }Incrementing EP...
    public class CounterOp extends AbstractProcessor implements PortableObject
        boolean m_increment;
        public CounterOp()
        public CounterOp(boolean increment)
            m_increment = increment;
        @Override
        public Object process(Entry entry)
            Long newVal = null;
            if( !entry.isPresent() )
                entry.setValue(newVal = Long.valueOf(1));
            else
                newVal = ((Long)entry.getValue()).longValue() + (isIncrement() ? 1 : -1);
                entry.setValue( newVal );
            return newVal;
        protected boolean isIncrement()
            return m_increment;
        public void writeExternal(PofWriter out) throws IOException
            out.writeBoolean(0, m_increment);
        public void readExternal(PofReader in) throws IOException
            m_increment = in.readBoolean(0);
        }cache-config
         <!--
              | listener-cacheconfig.xml | | Copyright 2001-2009 by Oracle. All
              rights reserved. | | Oracle is a registered trademarks of Oracle
              Corporation and/or its | affiliates. | | This software is the
              confidential and proprietary information of Oracle | Corporation. You
              shall not disclose such confidential and proprietary | information and
              shall use it only in accordance with the terms of the | license
              agreement you entered into with Oracle. | | This notice may not be
              removed or altered.
         -->
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>dist-*</cache-name>
                   <scheme-name>distributed-scheme</scheme-name>
              </cache-mapping>
              <cache-mapping>
                   <cache-name>counters</cache-name>
                   <scheme-name>counter-scheme</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <!--
        Distributed caching schemes
        -->
              <distributed-scheme>
                   <scheme-name>distributed-scheme</scheme-name>
                   <service-name>DistributedCache</service-name>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>string</param-type>
                                  <param-value>pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
                        <local-scheme />
                        <!--
                             <read-write-backing-map-scheme> <internal-cache-scheme>
                             <local-scheme /> </internal-cache-scheme> <cachestore-scheme>
                             <class-scheme>
                             <class-name>com.oracle.coherence.cachecounter.store.CacheCounterStore</class-name>
                             </class-scheme> </cachestore-scheme>
                             </read-write-backing-map-scheme>
                        -->
                   </backing-map-scheme>
                   <autostart>true</autostart>
              </distributed-scheme>
              <distributed-scheme>
                   <scheme-name>counter-scheme</scheme-name>
                   <service-name>CounterDistributedCache</service-name>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>string</param-type>
                                  <param-value>pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
                        <local-scheme />
                   </backing-map-scheme>
                   <autostart>true</autostart>
              </distributed-scheme>
         </caching-schemes>
    </cache-config>pof-config...
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>     
       <user-type-list>          
          <!-- include all of the standard Coherence type -->
          <include>coherence-pof-config.xml</include>          
          <!-- our custom types (user types) 1000+ -->          
          <user-type>                 
             <type-id>1000</type-id>            
             <class-name>com.oracle.coherence.cachecounter.event.CounterMapEventTransformer</class-name>          
          </user-type>
          <user-type>                 
             <type-id>1001</type-id>            
             <class-name>com.oracle.coherence.cachecounter.processors.CounterOp</class-name>          
          </user-type>
       </user-type-list>
       <allow-interfaces>true</allow-interfaces>
       <allow-subclasses>true</allow-subclasses>
    </pof-config>Test class
    public class MapEventTransformerTest
        public static final String m_cacheName = "dist-test1";
        public static void setUp()
            System.setProperty("tangosol.coherence.cacheconfig", "counter-cacheconfig.xml");
            System.setProperty("tangosol.coherence.distributed.localstorage", "false");
        public static void loadVals()
            final NamedCache cache = CacheFactory.getCache(m_cacheName);
            final int MAX_SIZE = 100;
            for( int i=0; i<MAX_SIZE; i++ )
                cache.put(i, "msg "+i);
        public static void removeVals()
            final NamedCache cache = CacheFactory.getCache(m_cacheName);
            final int MAX_SIZE = 100;
            for( int i=0; i<MAX_SIZE; i++ )
                if( i%2==0 )
                    cache.remove(i);
        public static void testTransformer()
            final NamedCache cache = CacheFactory.getCache(m_cacheName);
            cache.addMapListener(new CounterAwareListener(),
                    new MapEventTransformerFilter(AlwaysFilter.INSTANCE, new CounterMapEventTransformer(m_cacheName)),
                    false);
        public static void main(String[] args) throws IOException
            setUp();
            testTransformer();
            loadVals();
            removeVals();
            System.out.println("press a key to end...");
            System.in.read();
        public static class CounterAwareListener extends MultiplexingMapListener
            @Override
            protected void onMapEvent(MapEvent evt)
                System.out.format( "# of items in cache: %d\n", evt.getNewValue() );
        }Note: Events could be received out of order but for your use case where you are interested in a threshold you may not care! -- food for thought :)
    --harvey                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to publish contextual event from dynamic region

    Hi Experts, plz help.
    Scenario :
    I have a page , say Page A.
    I have two bounded task flows, say HeaderTF and LinesTF.
    HeaderTF is placed as a static Region in page A and LinesTF is a dynamic region in page A.
    LinesTF has a table with Amount Column.
    HeaderTF has a text field which shows the total of amount column.
    Requirement :
    when user adds new rows or changes existing rows or deletes any rows in LinesTF, total field in HeaderTF should be updated.
    On change of amount value in lines, I am calculating and updating the total attribute of header VO as all of them are sharing same DC.
    but the value is not reflecting becos partial triggers cannot be kept for total field.
    So I am using contextual events.
    I created a contextual events for amount field, delete button and table as well (In LinesTF).
    and I created handler method in AM which calculates total and dragged it as a text field in HeaderTF.
    Now when I am trying to subscribe from pagedef of pageA, i am able to find the handler which is created in HeaderTF but could not find any contextual events in event lov.
    Question :
    1. Is my approach correct?
    2. Cant we publish contextual events from dynamic regions?
    3. Is there any alternate way of achieving this?
    I did not try refreshing HeaderTF by passing input params because I dont want the entire region to be refreshed.

    Try creating the event mapping - please see "28.7.2 How to Create Contextual Events Manually" in Dev Guide http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI

  • How to add exiting event listener in javascript

    I am trying to figure out how to add an event listener in javascript for the exiting event when the red x is clicked on a Windows window (top right corner).
    I found this among adobe documentation, but it does not work:
    var app = air.NativeApplication.nativeApplication;
    app.addEventListener(air.Event.EXITING, closeHandler);
    function closeHandler(event) {
      alert("Goodbye.");
    And yes I have the AIRAliases.js included.
    Thanks

    The code posted above is from page 10 of the "HTML Developer’s Guide for ADOBE AIR (prerelease updated 11/16/2009)".
    I am actually exiting the program because I only have one window open and I click on the red x in the top right corner to shut it down... in theory, the example above provided by Adobe, should interrupt the exit sequence by displaying an alert box amd then shut the program down.
    Here's the excerpt from the manual...
    unload events (for body and frameset objects)
    Adobe AIR 1.0 and later
    In the top-level frameset or body tag of a window (including the main window of the application), do not use the unload event to respond to the window (or application) being closed. Instead, use exiting event of the NativeApplication object (to detect when an application is closing). Or use the closing event of the NativeWindow object (to detect when a window is closing). For example, the following JavaScript code displays a message ("Goodbye.") when the user closes the application:
    var app = air.NativeApplication.nativeApplication;
    app.addEventListener(air.Event.EXITING, closeHandler);
    function closeHandler(event)
    alert("Goodbye.");
    However, scripts can successfully respond to the unload event caused by navigation of a frame, iframe, or top-level window content.
    Note: These limitations may be removed in a future version of Adobe AIR.

  • How do i split events when Split Events Before Selected Clips is not even highlighted

    iMovie question - how do i split events when Split Events Before Selected Clips is not even highlighted?  I just puchased this new iMac yesterday and i am still trying to figure things out!

    You should start by having a read of the online manuals and correct forums.
    This forum is for iOS (iPads and iPhones).
    There are plenty of great resources on the Apple website,
    but try to search for iMovie Mac.

  • How do i generate an internal  window

    hi all..
    how do i generate an internal application or applet window that responds to an event caused by pressing a JButton? i am trying to create a program that acts like a web page..therefore i would like for the other windows to be generated by pressing the buttons...like in normal web pages...
    thanks...
    eva

    I your JFrame you must declare a JDesktopPane and before create JInternalFrame inside it:
    public class MDIFrame extends JFrame{     
    JDesktopPane desktop = new JDesktopPane();               
    public MDIFrame(){     
         JInternalFrame child = new JInternalFrame();     
         this.getContentPane().add(desktop);
    desktop.add(child);
    child.setSize(400,400);
    child.setVisible(true);
    public static void main(String arg[]){
    new MDIFrame().setVisible(true);
    }

  • IDM Generate-Event in Sentinel

    I have an IDM environment setup and I configured the Audit PA to send
    events to the Sentinel IDM Collector. Sentinel is setup with the IDM
    collector via audit to receive the messages. The setup works fine for
    all built-in events.
    What I am now trying to do is get custom events created with the
    Generate-event token in IDM in Sentinel. They show up as an undefined
    event and reference the LSC file. I have located the LSC files, but am
    not able to modify those files directly. I have tried modifying them in
    the cache, in the zip file after importing, and in the zip file before
    posting. I tried modifying them in the zip file, then updating the xml
    file with the hash values, but still am not having any luck with this.
    The next thing I stumbled upon was the 'Custom Execution Mode'. I have
    added the custom.js file and a LSC file which is referenced, but am not
    sure of exactly what to add in the custom.js file to make the events get
    properly recognized by Sentinel. Currently, my custom.js file has the
    following for the customInit section:
    Collector.prototype.customInit = function() {
    // load additional maps, parameters, etc
    var file = new File(instance.CONFIG.collDir + "dirxml_GCA.lsc");
    this.MAPS.LSCMap.extend(this.CONFIG.collDir + "dirxml_GCA.lsc",
    "#EventID");
    return true;
    I have uploaded the file dirxml_GCA.lsc and verified that it exists in
    the plugins_repository for the aux_Identity-Manager... zip file.
    robertivey
    robertivey's Profile: http://forums.novell.com/member.php?userid=27938
    View this thread: http://forums.novell.com/showthread.php?t=426647

    Hi robertivey,
    This is a great question; as you've seen we've included some general
    methods to customize and extend existing Collectors, but to do so you
    also need to know a little bit about how the particular Collector you
    are extending works. We have plans to add a bit of specific
    documentation to the IDM Collector since it's so common to generate
    custom IDM events.
    What you need to know is that normal nAudit events contain a number of
    pre-defined fields such as Date, EventID, Originator, Target, Text1,
    Text2, and so forth. These pre-defined buckets define a datatype and a
    little teeny bit of semantics to the values contained within them, but
    then on top of that the protocol uses the LSC file to add an additional
    layer of semantics on top of the basic elements by adding an additional
    descriptor to each field in the event per event ID. So for example
    you'll see "Text2 Title" as something like "Client IP" which tells you
    that the value in Text2 for event ID 00031550 is the client IP of the
    system that connected to and logged in to the UserApp (note that LSC
    files use an 8-digit hex value for the event IDs; I believe IDM's policy
    code uses decimal so you'll have to convert).
    In our IDM Collector, what we've done is written a little parser that
    knows what to do for any given value in any given nAudit event field.
    For this example, we've written a parser that knows to take the value in
    Text2 and put it in Sentinel's "InitiatorIP" field, adjusting for
    endianess and the like if necessary. If you look through the LSC file
    and through 'dirxml.js', you'll see that for every combination of nAudit
    field and semantic LSC definition, there's a defined parser. We use the
    nAudit field codes defined at the top of the LSC, so you'll see a
    function: "String.prototype["T-Client IP"]", as an example.
    Now, to extend this structure is quite simple - you need to define the
    equivalent of an LSC file for your custom events. To do this, copy some
    lines from the existing LSC into a new file and edit them to match your
    events:
    1) Change the event ID to match your events. Always prefix with '0003'
    - the last four digits are the hex version of your event code, so '1000'
    becomes '03e8'.
    2) Give your event a name
    3) Assign semantic labels to your custom event fields; you should have
    paid attention to the first layer of semantic meaning in Originator,
    Target, etc, but fill in more detail as applicable.
    Note that if you can, re-use the same semantic labels that you see
    applied to other, similar IDM events.
    OK, once that's done, you need to add your new LSC file to the
    Collector using the "Add auxiliary file" process detailed on the
    Customization page.
    Next, you need to load your new LSC file and use it to extend the
    existing one. Simple: from the SDK, grab a copy of custom.js and add
    lines like you have above (you don't need to create a new File object
    though, the single 'extend' line is sufficient).
    Finally, edit your Collector and set its Execution Mode to 'custom',
    then restart.
    Your events should now be parsed!
    The only caveat is that if you don't re-use semantic labels from other
    IDM events, you'll need to define your own parser for your own
    field/label combination, which you can do in custom.js just by copying
    one of the parsers in dirxml.js and modifying the function name to
    match.
    DCorlette
    DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
    View this thread: http://forums.novell.com/showthread.php?t=426647

Maybe you are looking for