Non-scripter attempting a metatagging script

my script is doing everything i want except it is converting all spaces and periods to semicolons in the final metatag and i cannot figure out why.
It will be VERY obvious that the attached script is nothing but a bunch of snippets clipped together to perform most of what i want...
I want to run this script at the end as i am completing a project to insert the needed metatags.
i want the project name
i want the copyright info
i want keywords to include all images used in the document
i want to be able to add keywords.
to run this script you will need a character style called    KeywordsCStyle
//-----document title and copyright---------
var myDocument = app.activeDocument;
with (myDocument.metadataPreferences){ 
    //author = "Adobe"; 
    copyrightInfoURL = "UPMC.com" 
    copyrightNotice = "© 2014 UPMC"; 
    copyrightStatus = CopyrightStatus.yes; 
    //description = "Example of xmp metadata scripting in InDesign CS"; 
    documentTitle = myDocument.name.split(".indd")[0];
    //jobName = "XMP_Example_2003"; 
    //var myNewContainer = createContainerItem("http://ns.adobe.com/xap/1.0/", "email"); 
    //setProperty("http://ns.adobe.com/xap/1.0/", "email/*[1]", "[email protected]"); 
with (myDocument.metadataPreferences){
        //author = "scott rudy";
        documentTitle = myDocument.name.split(".indd")[0];
//var curDocTitle = app.activeDocument.metadataPreferences.documentTitle;
//var curAuthor = app.activeDocument.metadataPreferences.author;
var curKeywords = app.activeDocument.metadataPreferences.keywords;
Array.prototype.unique = function (){
    var r = new Array();
    o:for(var i = 0, n = this.length; i < n; i++){
        for(var x = 0, y = r.length; x < y; x++){
            if(r[x]==this[i]) continue o;}
        r[r.length] = this[i];}
    return r;
function addXMP(/*find GREP*/findString, /*para style*/paraStyle, /*chr style*/chrStyle, /*insert to*/XMPdest){
  // reset search fields
  app.findGrepPreferences = NothingEnum.nothing;
  app.changeGrepPreferences = NothingEnum.nothing;
  // setting search parameters
  if(findString)app.findGrepPreferences.findWhat = findString;
  if(paraStyle)app.findGrepPreferences.appliedParagraphStyle = paraStyle;
  if(chrStyle)app.findGrepPreferences.appliedCharacterStyle = chrStyle;
  switch (XMPdest){
    // insert keywords
    case "Keywords":
      var myKeywords = app.activeDocument.findGrep();
      var myKeys = Array();
      // loop through keywords and get contents
      for(var i = 0; i < myKeywords.length; i++)
        myKeys.push(myKeywords[i].contents);
      //myKeys.sort();
      // delete duplicates
      //myKeys = myKeys.unique();
      // insert Keywords to document XMP
      app.activeDocument.metadataPreferences.keywords = myKeys;
      break;
    // Heading search/insert
    case "Heading":
      var myHeading = app.activeDocument.findGrep();
      app.activeDocument.metadataPreferences.documentTitle = myHeading[0].contents;
      break;
    // Author search/insert
   // case "Author":
    //  var myAuthor = app.activeDocument.findGrep();
    //  app.activeDocument.metadataPreferences.author = myAuthor[0].contents;
   //   break;
// copy all image names //----------------------------------------------//
f = app.activeDocument.textFrames.add({geometricBounds:[0,0,"20mm","20mm"]}); 
f.contents = app.activeDocument.links.everyItem().name.join("\r"); 
f.parentStory.texts[0].select(); 
//-----------change character style-------------------//
var cName = "KeywordsCStyle"; 
  var mCstyle = app.activeDocument.characterStyles.item(cName); 
  if (mCstyle.isValid) 
       app.selection[0].applyCharacterStyle(mCstyle);
app.copy(); 
// add Keywords
addXMP("\\w{1,}","","KeywordsCStyle","Keywords");
// add Heading
//addXMP("","HeadingPStyle","","Heading");
//add Author
addXMP("","AuthorPStyle","","Author");
//----delete image names textbox--------
f.remove();

I decided to give up on the character style to add keywords so i have to thank JUmp_over for all the help with my complete script...
here it is after i cleaned it up if anybody else has a need to add keywords to their indesign file (and ultimately to the resulting PDFs
//-----document title and copyright---------
var myDocument = app.activeDocument;
with (myDocument.metadataPreferences){ 
    copyrightInfoURL = "UPMC.com" 
    copyrightNotice = "© 2014 UPMC"; 
    copyrightStatus = CopyrightStatus.yes; 
    documentTitle = myDocument.name.split(".indd")[0];
//---------------------add document name-------------------------------
with (myDocument.metadataPreferences){
        documentTitle = myDocument.name.split(".indd")[0];
//-----------------------images to keywords--------------------------//
app.activeDocument.metadataPreferences.keywords = app.activeDocument.links.everyItem().name;
//-------------open file info dialog box---------------------
app.menuActions.itemByID(89092).invoke()

Similar Messages

  • Why does a "script' text in design appear as non script (block) in browser preview in CS5 on a Mac?

    I have amended text within the design field and selected "Brush Script MT Italic. In the design view in Dreamweaver CS5 it appears in this script  but when I preview it either in Dreamweaver "preview in browser" or after uploading and viewing in browser the text appears in a non script format.
    The source code is :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link href="test.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <p>This is a test.</p>
    <p> </p>
    </body>
    </html>
    And the linked CSS style sheet reads:
    @charset "UTF-8";
    /* CSS Document */
    p {
              font:"Brush Script MT Italic";
    I am using a Mac with Lion OS. I have tried many script font but the result is the same.
    DC

    There are only a minimal amount of web safe fonts to be used in your webpage design. Frush Script MT Italic is not one. What happens is it might display on the computer that has that font, but on a person web browsing computer, if the font is not installed, then it will use the default font (usually times new roman or equivelant on Mac). It is best to stick with the web safe fonts (google it) unless you use the font in a graphic.
    Jim

  • Non Script pop up?

    Hi everyone,
    I am looking for a way to have a pop up window with no
    javascript. So I have my page with a link, this link is to a form,
    however I would like the form to open up in a window/div/layer on
    that same page (on-top of everything else). And then the user can
    fill the form out and submit without leaving that page. But I don't
    want to use javascript as this is then no longer available to all
    (trying to get away from a current javascript heavy form solution)
    any help would be appreciated, thanks

    > then simply use CSS, with no javascript, to make that
    div display:block or
    > display:none.
    Ahh - there's the rub. How you gonna do that, beard-o?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "E Michael Brandt" <[email protected]> wrote
    in message
    news:fof93c$fkv$[email protected]..
    > As I noted in our off-group email, divaPOP/gold will
    still display the
    > popup page even with javascript disabled, only it will
    display the page in
    > the same browser window instead of in a popup or new
    tab.
    >
    > As an alternative:
    >
    > I would think you could have a hidden div that contains
    the form. And
    > then simply use CSS, with no javascript, to make that
    div display:block or
    > display:none.
    >
    > --
    >
    >
    > E. Michael Brandt
    >
    > www.divahtml.com
    >
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    > Standards-compliant scripts and Dreamweaver Extensions
    >
    > www.valleywebdesigns.com/vwd_Vdw.asp
    > JustSo PictureWindow
    > JustSo PhotoAlbum, et alia
    >
    > --

  • Batch file processing with non-scripting app (Preview)

    Well I RTFM and spent MANY hours on macscripter et al, the answer is just not going to come to me. I have some RAW files in an obscure Canon format that is only recognized by Preview, which is not scriptable. I'm dealing with hundreds of files from a stop-motion animation project so batch-processing is a must.
    The Goal: Individually open several hundred RAW image files in Preview, then save them as .PICT files in a new directory.
    Automator doesn't want to play - it simply refuses to do this as a batch job, so I'm left with manipulating the UI through Applescript. Below is what about 10 hours of head-beating has produced:
    -- Start Finder tell block
    tell application "Finder"
    --Pick files to convert
    set SelectedFiles to (choose file with multiple selections allowed)
    set filesList to get every file of SelectedFiles
    --Begin repeat loop for every file in selection
    repeat with aFile in filesList
    set theFile to aFile as alias --Set theFile as current target
    tell application "Preview" --Open Preview, open the target file
    (activate) and (open theFile)
    end tell
    --Need to manually select "save as PICT", so this opens the prompt
    tell application "System Events"
    keystroke "s" using command down and shift down
    end tell
    --Buy some time for the conversion and save process
    --(there has GOT to be a better way!)
    delay 30
    end repeat --loop (with fingers crossed)
    end tell
    This is a HUGE advance from where I started, trying to repeat for "every file in folder..." which just ain't gonna work on my computer. But, it doesn't do anything beyond getting a list of input files. My output is below:
    tell application "Finder"
    choose file with multiple selections allowed
    {alias "Macintosh HD:Users:mark:Pictures:LEGOS:IMG_0126.CR2", alias "Macintosh HD:Users:mark:Pictures:LEGOS:IMG_0127.CR2", alias "Macintosh HD:Users:mark:Pictures:LEGOS:IMG_0128.CR2"}
    end tell
    Thanks, my head hurts now. (Why couldn't they just have ported REXX???)

    Hiroto, no I didn't have it checked. I don't know why I was able to get as far as I did but enabling access for assistive devices didn't change anything. I am able to emulate /almost/ any keystroke, except the up arrow, which normally allows me to move up in the "file type" selector button. The script below is ... functional ... except that it forces me to save each file as a 58MB uncompressed .tiff, and it refuses to respond to the "close front window" or 'keystroke "W" using command down' scripts. Getting through 300+ files this way will eat up my memory and hard drive in a matter of minutes. I suppose I could '$sh kill ####' from terminal if I could find the window process, but this is getting really hoaky!
    THIS SCRIPT OPENS AND SAVES FILES, BUT DISALLOWS ANY TYPE SELECTION OR CLEANUP
    set sFiles to (choose file with multiple selections allowed without invisibles)
    repeat with aFile in sFiles
    tell application "Preview" to run
    tell application "System Events" to tell process "Preview"
    tell application "Preview"
    activate
    open aFile
    delay 8
    tell application "System Events"
    keystroke "S" using {command down, shift down}
    delay 2 -- opens save as sheet
    repeat 7 times
    keystroke tab -- tab down to file selector (works fine)
    end repeat
    click down -- select button (doesn't do anything)
    delay 1
    keystroke up -- open file button menu (doesn't work)
    keystroke up -- select next menu item above (doesn't work)
    keystroke return -- shortcut to "save" button
    delay 10 -- wait for save
    keystroke "W" using command down -- close current window (doesn't work)
    end tell
    end tell
    end tell
    end repeat

  • Non-Script Way of Setting Visible Property

    Why hello there!
    I am looking to set the "visible" property of a movie clip in
    the Flash CS3 designer, as opposed to using AS3.
    In my movie, I set a movieclip to invisible in code
    immediately. However, I sometimes see the artefact of the image for
    a split-second on running the swf in my browser. I would therefore
    like to set the property in the designer.
    I am guessing that there is not a way of doing it. Are there
    any suggestions?
    I'm now considering setting the alpha value to 0 in designer,
    and then setting the alpha value to 1 in code when I need to be
    able to see the mc.
    Raffi.

    Hey kglad,
    I appreciate the prompt response. Sorry I wasn't clear enough
    in my initial message.
    I am simply looking to be able to set, say, a rectangle
    primitive to invisible without having to set in the code. At the
    moment, I am setting the visible property to false in the first
    frame in the code. However, as a result, I sometimes (not
    frequently) see artefacting when I run my movie. The rectangle very
    momentarily appears before disappearing.
    Raffi.

  • JCA / JDBC Configured for non-XA Attempting XA Transaction Commit

    I am attempting to create simple BPEL SOA composites in SOA 11.1.1.5 that use a DbAdapter to execute a stored procedure in an 11g database. The database task being performed only involves a single database and does not require transaction support. I have carefully stepped through the creation of the DataSource and JCA pointing through the DbAdapter to the JDBC DataSource so XA transaction support is disabled, the JCA pool sets the transaction mode to "No transaction" and the JCA pool uses the dataSource value to point to the JNDI name of the JDBC pool rather than the xADataSource value.
    Visually,
    DataSource definition:
    name = jdbc/myserviceDataSource
    driver = oracle.jdbc.xa.client.OracleXADataSource
    url = jdbc:oracle:thin:@mydbhost.myfirm.com:1521:GENERIC
    use XA DataSource = unchecked
    set XA timeout = unchecked
    Keep XA connection until transaction complete = checked
    keep connection after local transaction = checked
    JCA definition:
    name = eis/DB/myserviceDataSource
    dataSourceName = jdbc/myserviceDataSource
    xADataSourceName = (blank)
    platform class name = org.eclipse.persistence.platform.database.Oracle10Platform
    Transaction | Transaction Support: no transaction
    This configuration works on one sandbox server and I got it working in a second sandbox server. However, after deleting the JDBC and JCA pools to go through the process one more time to document the procedure on the second server, I am unable to get the configuration working again. The WebLogic domain appears to be resurrecting portions of an old configuration that still references the JNDI name of the JDBC pool in the xADataSourceName parameter. I have unpacked the DbAdapter.rar archive for the DbAdapter and verified the contents of the ./META-INF/weblogic-ra.xml file don't use the xADataSouceName parameter. The Deployment Plan for the DbAdapter (named DbAdapterPlan.xml in $SOA_HOME/soa/connectors ) also explicitly configures the JCA pool using the dataSourceName value leaving the xADataSourceName value blank.
    However, executing the SOA service using this JCA connection results in this error:
    java.sql.SQLException: Cannot call Connection.commit in distributed transaction.
    Again, I know the theoretical answer to this question is to disable transactions in the JCA and JDBC configurations and don't use the xADataSourceName element of the JCA configuration to point to the JDBC pool. However, after validating those elements and restarting the pools or performing an Update on the DbAdapter deployment, WebLogic seems to still create connections through the JDBC pool with transactions enabled.
    Any suggestions?
    Should I just completely undeploy the DbAdapter and redeploy it from the SOA binary installation directory? These are just lab machines right now so that's obviously not a good long term answer for production use but may help start over with refining a better procedure for doing this.

    You should use a non-xa driver for your data source...
    From the weblogic docs...
    Configure Transaction Options
    When you configure a JDBC data source using the Administration Console, WebLogic Server automatically selects specific transaction options based on the type of JDBC driver:
    For XA drivers, the system automatically selects the Two-Phase Commit protocol for global transaction processing.
    For non-XA drivers, local transactions are supported by definition, and WebLogic Server offers the following options ...
    http://docs.oracle.com/cd/E23943_01/web.1111/e13737/jdbc_datasources.htm#autoId8
    Cheers,
    Vlad

  • Can I suppress dialog outside script?

    I have a start up script that is used in cross-plattform production. It fixes the links of pictures. Works fine but the user still gets the warning message before the script does its work. If the document is opened by script I can suppress the dialog but I did not find a way for the regular InDesign Open action.
    Is it possible by script?
    (I think it was the case in the old days that setting userinteraction level to neverinteract  would get rid of all dialogs but this seems to be no longer the case.)
    Any idea?
    Thank you,
    Ralf

    Okay, sometimes it is a good idea to simply ask a non-scripting guy. One can just turn off the dialog in the InDesign preferences.
    I am sure you all knew that.
    Ralf

  • Ajax Script not working in IE (window.XMLHttpRequest)

    Hi,
    I have written following code in ajax.
    This is a javascript function called on onchange event of a button.
    This code works fine in firefox and chrome but does not work in IE8.0+
    the values don't get displayed.
    plz suggest me if there is any change.
    thnx in advance.
    <script type="text/javascript">
    function showUser(str) {
      if (str=="") {
        document.getElementById("userDetailsShownHere").innerHTML="";
        return;
      if (window.XMLHttpRequest) {
        // code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp=new XMLHttpRequest();
      } else { // code for IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4 && xmlhttp.status==200) {
          document.getElementById("userDetailsShownHere").innerHTML=xmlhttp.responseText;
          document.getElementById("btn").name=str;
            showGift(str);
      xmlhttp.open("GET","getuser.php?username="+str,true);
      xmlhttp.send();
    //This code will execute on button click
    function showGift(str) {
        var life = document.getElementById("lifeLabel").value;
        var number = parseInt(life, 0);
        if(number == 55){      
            if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp=new XMLHttpRequest();
          } else { // code for IE6, IE5
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
          xmlhttp.onreadystatechange=function() {
            if (xmlhttp.readyState==4 && xmlhttp.status==200) {
              document.getElementById("userDetailsShownHere").innerHTML=xmlhttp.responseText;
             document.getElementById("btn").name=str;
           document.getElementById("btn").style.display="inline";
          xmlhttp.open("GET","getuser.php?username="+str,true);
          xmlhttp.send();
        else if(number > 0){
          document.getElementById("noLife").style.display="none";
            number = number - 1;
          if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp=new XMLHttpRequest();
          } else { // code for IE6, IE5
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
           xmlhttp.onreadystatechange=function() {
            if (xmlhttp.readyState==4 && xmlhttp.status==200) {
              document.getElementById("userDetailsShownHere").innerHTML=xmlhttp.responseText;
              document.getElementById("btn").name=str;
            document.getElementById("btn").style.display="none";
             if(document.getElementById("cometomorrow") || document.getElementById("win")){
                document.getElementById("btn").style.display="none";
                console.log("hide");
              }else{
                setTimeout("showButton()", 1000);
          xmlhttp.open("GET","getgift.php?username="+str+"&loop="+number,true);
          xmlhttp.send();
        else {
        document.getElementById("userDetailsShownHere").innerHTML="";
            document.getElementById("noLife").style.display="inline";
        document.getElementById("btn").style.display="none";
    </script>

    Hi Vishalika,
    Please post questions about html, css and scripting for website development to
    MSDN
    IE Web Development forum is moving to stack-overflow
    xmlhttpRequests is not available to webpages using the file: protocol in MSIE browsers.
    If possible include with your questions a link to your website or a mashup that shows the issue.
    If you are running the webpage from your file system (file: protocol), please advise as such.
    f12>Debug tab to debug your webpage scripts and include any error messages from the console with your scripts... (however xmlhttprequests to local resources do not cause errors in the Developer tool console).... you should always test your web applications
    from an actual web server first (localhost).
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
    Rob^_^

  • Script Font Styles

    I am currently using the CFR Builder 8. When I am design mode I can apply a script font style and see the font style no problem but, when I pull the report from the web the font style reverts back to a non-script type.
    Any and all help will be greatly appreciated..
    Examples:
    Design Mode:
    Live Mode:

    Resolved: The font style has to be added to the Coldfusion Admin. Font Manager.

  • Stopping EEM/TCL script

    How can I stop a pending EEM/TCL script?  I have a Catalyst 4506 version 12.2(40)SG.  The command 'event manager scheduler clear' isn't available.  The output of 'show event manager policy pending' shows:
    No.  Time of Event             Event Type          Name
    1    Wed Mar 3  09:39:31 2010  none                script: test_err.tcl
    2    Wed Mar 3  10:56:42 2010  timer watchdog      script: free_mem.tcl
    3    Wed Mar 3  11:43:19 2010  syslog              applet: Login-Fail
    So the policies coming after the stuck policy won't run.  I've tried to un-register/re-register the policy, but it didn't help.

    If your device does not support "event manager scheduler clear" the only way to terminate a stuck, or long-running EEM policy is to reboot.

  • PS script to change printers and check for default

     We have a large project of renaming printers due to some linux devises that do not agree with our naming convention. I am new to ps so looking for some direction.
    Our current printers are say 'print$1' and we are changing to 'print1' basically just removing the dollar sign.
    We have batch files for the helpdesk for new imaged machines so they will get the new names, no problem but for the people that have been here, how can I create a script that will do the following:
    1. allow me to put old printer > replace with new printer
    2. detect if old printer is default and make new printer default.
    3. only affect the printers that are currently installed on the pc
    note we have multiple locations and alot of print servers. 
    thank you for your help

    gaff-
    I believe he wants to rename the printers on the client workstation. Group Policy can do that very easily
    You can also add to your ProintManager script to have it generate the GP objects and add the users or computers to them.  Most of the time is is easier to just use ProntManager GUI unless you have hundreds of printers  If it is only a dozedn then
    a non-scripter would be better off running the GUI.
    We moved about 30 printers for 100 accounts in about one hour the first time we set up PrintManager.  This included an upgrade to 64 bit drivers which was the biggest issue. A rename is very much easier.  I can rename 30 probters with the GUI in
    about 2 minutes.
    It is resetting the client systems that is the issue.  If they are beoing set by GP or through a login script then this, too, is easy.  If they are just attached in different ways then I recommend that Group Policy is the only way to reset them
    without spending a month trying to design a script that will work for all systems.
    If this is for a WS2003 spooler then you can still use Group Policy Preferences it you install the AD updates or have WS2008 domain controllers.
    Placing all printers under PrintManager control is the absolute best method.
    If all printers are not Windows printers - (Unix spolers or JetDirect/Network) then you will have to create a script that can find every pronter and rename it on every system.  This will be very difficult to do and will likely take quite a while to
    accomplish in a large network.
    GP can install printers at the machine level and update drivers.  This will work well except if you are using non-Windows compliant printers.  I have never had this scenario work smoothly on  an older network.  This is one reason why
    I do everything I can to force Admins to use PrintManager for all printers WIndows and Unix.  We also try to be sure the location awareness is enabled and that all locations are tagged in AD.  This allows users to browse easily for local and remote
    printers.  We set initial default but user4s are always allowed to change the default if they want and know how.  Users are allowed to print to all "group" printers and departmental printers but not to personal printers.  In some cases
    all users in a group can print to each others personal printers.
    I am now working on getting wireless printers set up for use by visitors, guests and salespeople.  Every group should have a wireless printer and know the hidden SSID.  I notice that many universities and hospitals are now doing this for the convenience
    of visitors. I can priont from my phone almost everywhere I go lately.
    Use PrintManager.  It will save you a lot of trouble.  Once set up PowerShell can script everything very nicely.  Gaff's code will always be the easier way to do most things.
    If you look in the repository/Gallery you will see many PowerShell PrintManger scripts and tools. -
    I should also note that Gaff's suggestion to use WMI will only work in a login script and will not work well on system connected printers which will have to be done remotely.  Again, it all depends on how your environment is set up.
    ¯\_(ツ)_/¯

  • Error in emagent.trc

    Hi
    got error in emagent.trc
    2010-03-05 15:27:38,062 Thread-1900551 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
    2010-03-05 15:27:38,104 Thread-1900551 ERROR ssl: 9: Common Name = "localhost" Does not Match Hostname = "192.168.21.243"
    2010-03-05 15:27:38,104 Thread-1900551 ERROR http: 9: Unable to initialize ssl connection with server, aborting connection attempt
    2010-03-05 15:27:38,104 Thread-1900551 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
    2010-03-05 15:28:08,324 Thread-1966087 ERROR ssl: 9: Common Name = "localhost" Does not Match Hostname = "192.168.21.243"
    2010-03-05 15:28:08,341 Thread-1966087 ERROR http: 9: Unable to initialize ssl connection with server, aborting connection attempt
    2010-03-05 15:28:08,342 Thread-1966087 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
    2010-03-05 15:28:08,391 Thread-1966087 ERROR ssl: 9: Common Name = "localhost" Does not Match Hostname = "192.168.21.243"
    2010-03-05 15:28:08,391 Thread-1966087 ERROR http: 9: Unable to initialize ssl connection with server, aborting connection attempt
    2010-03-05 15:28:08,391 Thread-1966087 ERROR pingManager: nmepm_pingReposURL: Cannot connect to https://192.168.21.243:1159/em/upload: retStatus=-1
    I have installed OMS Grid on one server (192.168.21.243) and agent is installed on other server(192.168.21.244)
    entry in /etc/hosts of 21.244 server
    192.168.21.244 isgmmlds244.insolutionsglobal.local localhost
    192.168.21.243 isgmmlds243.insolutionsglobal.local isgmmlds243
    entry in emd.properties
    # perl executable directory
    perlBin=/u01/app/oracle/product/agent10g/perl/bin
    # script directory
    scriptsDir=/u01/app/oracle/product/agent10g/sysman/admin/scripts
    # emd Root directory(read-only location). Metrics should not create files
    # under this directory
    emdRoot=/u01/app/oracle/product/agent10g
    # agent Root directory(writeable).
    # Use this property to base any temporary file creation.
    agentStateDir=/u01/app/oracle/product/agent10g
    # Chronos root directory
    chronosRoot=/u01/app/oracle/product/agent10g/sysman/emd/chronos
    # OMS Upload URL
    # if there is no receiving OMS or if you wish to disable the UploadManager
    # please set this value to empty or comment out below line
    REPOSITORY_URL=https://192.168.21.243:1159/em/upload
    # Proxy settings used for fetchlets. not applicable for uploader.
    #proxyHost=www-proxy.us.oracle.com
    #proxyPort=80
    #dontProxyFor=.us.oracle.com
    # If it is necessary to go through an http proxy server to get to the
    # repository, uncomment the following two lines
    #REPOSITORY_PROXYHOST=
    #REPOSITORY_PROXYPORT=
    #REPOSITORY_PROXYREALM=%EM_REPOS_PROXYREALM%
    #REPOSITORY_PROXYUSER=%EM_REPOS_PROXYUSER%
    #REPOSITORY_PROXYPWD=%EM_REPOS_PROXYPWD%
    # This string is used by the agent to connect to remote targets
    # ***IMPORTANT*** Do not change the contents of this setting. Only the
    # install should modify this value.
    agentSeed=267923712
    # This string is used by the agent to determine which algorithm to use for encrypted data
    # The string value will be same as the release version
    agentVersion=10.2.0.0.0
    # How long, in minutes, collector will wait until next load.
    UploadInterval=15
    # If an upload fails, we want to backoff by UploadFailBackoff
    # percentage more each time for each successive upload failure
    # e.g. if we start the retry at 1 minute. If we fail in our next
    # upload attempt, we try again 1minute 12 seconds later etc.
    UploadFailBackoffPct= 20
    # Maximum amount of time, in seconds, upload will wait for response from
    # repository before timing out.
    # 0 means infinite.
    UploadTimeout=1800
    # Timeout for upload a file, HealthMonitor will abort the EMD process if
    # UploadManager does not finish uploading one file within this time
    # Unit is minite, the default value is 1 hour ( 15 Min)
    #UploadMaxTime=30
    # How big the file the collector will upload (in KB)
    # the actual file size could be slightly bigger.
    # This is only a guidance.
    UploadFileSize=2048
    # The maximum number of megabytes(MB) the upload manager will support in the
    # upload directory before temporarily disabling collections, logging and tracing
    UploadMaxBytesXML=50
    # The maximum number of files the upload manager will support in the
    # upload directory before temporarily disabling collections, logging and tracing
    UploadMaxNumberXML=5000
    # The maximum amount (%) of disk space that can be used on the EMD filesystem
    # before the following is disabled:
    # - Collection of data (upload manager)
    # - Logging and tracing
    UploadMaxDiskUsedPct=98
    # The amount (%) of disk space that can be used on the EMD filesystem
    # before the following is re-enabled after being disabled previously:
    # - Collection of data (upload manager)
    # - Logging and tracing
    UploadMaxDiskUsedPctFloor=95
    # How long, in minutes, upload manager waits until it schedules recount
    # of the XML files in upload directory (defaults to 60 mins)
    UploadFileRecountInterval=60
    # Time out for the Agent to think that the access to the database could be
    # hung. The Agent would not allow more threads to go and hang with a database
    # if any one access to the database does not return within DbHangTimeout
    # seconds.
    # The more the timeout more the possibility of allowing more threads
    # to be hung in the EMD with a bad database.it is specified in seconds.
    #DbHangTimeout=200
    # The script to run if disk space usage exceeds parameters or if certain other
    # error conditions occur.
    #emdFailureScript=emdfail.command
    # The location of the file that contains the root certificate.
    emdRootCertLoc=/u01/app/oracle/product/agent10g/sysman/config/b64LocalCertificate.txt
    internetCertLoc=/u01/app/oracle/product/agent10g/sysman/config/b64InternetCertificate.txt
    # The download URL for the EMD Oracle Wallet and its local file location.
    # Note: Ensure that this URL references a valid port number at which the
    # console is available on http
    emdWalletSrcUrl=http://isgmmlds243.insolutionsglobal.local:4889/em/wallets/emd
    emdWalletDest=/u01/app/oracle/product/agent10g/sysman/config/server
    # The email address for out-of-band notifications
    emd_email_address=_NOT_AVAILABLE_
    emd_email_gateway=_NOT_AVAILABLE_
    # The return email address for out-of-band notifications
    emd_from_email_address=_NOT_AVAILABLE_
    # EMD main servlet URL
    EMD_URL=https://isgmmlds244.insolutionsglobal.local:1831/emd/main/
    # Whether the EMD should listen on all NICs on the current host (the default)
    # or just the NIC associated with the hostname in EMD_URL
    AgentListenOnAllNICs=FALSE
    # This parameter indicates the thread model to use. uncomment one of the
    # following ThreadPoolModel line to indicate the model, agent need to use.
    # SMALL if number of targets is less than 11.
    # MEDIUM if number of targets is from 11 to 50.
    # LARGE if number of targets is greater than 50.
    # This parameter can be overriden by 'MaxThreads' which indicates the maximum
    # number of threads that CEMD can have running at any point of time. User can
    # mostly use the other parameter ThreadPoolModel to indicate what model for the
    # agent to use.
    # ThreadPoolModel = SMALL
    # ThreadPoolModel = MEDIUM
    # ThreadPoolModel = LARGE
    # This parameter indicates the stack size, threads have to be created with.
    # we can set it to 0 to use the OS default value.
    # In some version of solaris(such as 2.9 ) specify a stack size may cause Java Hotspot warning
    # when JVM is used.
    NormalThreadStackSize=0
    #Signals that users want to ignore.
    #It can be one or combination of SIGTERM, SIGINT
    # The signals can listed with ',' as delimiter.
    #IgnoreSignals=
    # This property is NO LONGER USED for host config collection (instead, hostConfigClasspath is used).
    # If noone else uses it, it can be removed.
    ouiLoc=/u01/app/oracle/product/agent10g/oui
    # Classpath for host config collection
    # VERY IMPORTANT NOTE: If you change the host config classpath entries in this section, you HAVE
    # to change the HOST_CONFIG_TEST_CLASSPATH entry in the utl/emdwqaenv file too.
    # NOTE: if the location of log4j-core.jar is changed
    # make sure that appropriate changes are also made
    # to the CLASSPATH variable in this file if necessary
    # PORTING NOTE: Check OUI-required jar files for OUI APIs to work. They could be different on your platform.
    # Also, our version of xmlparserv2.jar must be compatible with the one OUI expects (both OUI and ECM use XML parser).
    hostConfigClasspath=/u01/app/oracle/product/agent10g/oui/jlib/xmlparserv2.jar:/u01/app/oracle/product/agent10g/oui/jlib/OraInstaller.jar:/u01/app/oracle/product/agent10g/oui/jlib/srvm.jar:/u01/app/oracle/product/agent10g/oui/jlib/share.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emcoreAgent.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentRT.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentSDK.jar:/u01/app/oracle/product/agent10g/sysman/jlib/log4j-core.jar
    # JAVA HOME required for JavaExt metric calls
    JAVA_HOME=/u01/app/oracle/product/agent10g/jdk/jre
    # CLASSPATH required for JavaExt metric calls
    CLASSPATH=/u01/app/oracle/product/agent10g/jdbc/lib/ojdbc14.jar:/u01/app/oracle/product/agent10g/lib/xmlparserv2.jar:/u01/app/oracle/product/agent10g/sysman/jlib/log4j-core.jar:/u01/app/oracle/product/agent10g/jlib/http_client.jar:/u01/app/oracle/product/agent10g/oc4j/j2ee/home/lib/http_client.jar:/u01/app/oracle/product/agent10g/lib/http_client.jar:/u01/app/oracle/product/agent10g/jlib/share.jar:/u01/app/oracle/product/agent10g/jlib/jssl-1_1.jar:/u01/app/oracle/product/agent10g/jlib/javax-ssl-1_1.jar:/u01/app/oracle/product/agent10g/jlib/ojmisc.jar:/u01/app/oracle/product/agent10g/jlib/repository.jar:/u01/app/oracle/product/agent10g/opmn/lib/optic.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentRT.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emagentSDK.jar:/u01/app/oracle/product/agent10g/lib/dmsEmd.jar:/u01/app/oracle/product/agent10g/sysman/jlib/emcoreAgent.jar
    # this is the java option
    #JAVA_OPTIONS=-Xmx128m
    #JAVA_OPTIONS=-Djava.awt.headless=true
    # These are the optional Java flags for the in-process Java
    # Native Interface (JNI)
    agentJavaDefines=-Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true -Dnetworkaddress.cache.ttl=1800 -Djava.awt.headless=true
    # When set to true, the emd.log and emd.trc file will be appended by a pid
    # For example:
    # emd_15789.log
    # emd_15789.trc
    # By default, it is not set for regression test purpose.
    # After installed, please uncomment this line because when EMD is restarted,
    # previous log information will be lost if not set to true.
    #LogFileWithPID=true
    # Default log file maximum size before rolling in Kilobytes
    LogFileMaxSize=4096
    # Maximum number of log file roll files to maintain before deletion
    LogFileMaxRolls=4
    # Default trace file maximum size before rolling in Kilobytes
    TrcFileMaxSize=4096
    # Maximum number of trace file roll files to maintain before deletion
    TrcFileMaxRolls=4
    # To enable the metric browser, uncomment the following line
    # This is a reloadable parameter
    #enableMetricBrowser=true
    # To disable Remote operations (non-reachable agent) uncomment the following
    # line:
    #disableRemoteOperations=true
    # How long (in secs) until a remote operation sumbitted via the dispatcher can
    # take before the agent in bounced by the watchdog. This timeout applied to only
    # those operation which ought to finish within a certain interval of time
    RemoteAPITimeout=300
    # add an additional admin path from which the agent will read additional
    # target metadata. The specified path should have the mandatory 4 directories
    # under it. 1. metadata 2. scripts 3. default_collection 4. discover
    #altAdminPath=<additional admin path>
    # The health monitor executes callbacks in a separate thread. if for some
    # reason the threads spawned from health monitor to execute callbacks are
    # hung, the agent could run out of resource and freeze.
    # so when the current thread count spawned from the Health monitor reaches
    # this limit, the agent is bounced. the default is set to 5.
    #MaxHealthMonitorThreads=5
    # SSL session cache flag
    SSLSessionCache=FALSE
    # emagent perl tracing levels
    # supported levels: DEBUG, INFO, WARN, ERROR
    # default level is WARN
    EMAGENT_PERL_TRACE_LEVEL=WARN
    # other optional parameters for perl tracing
    # EMAGENT_PERL_TRACE_DIR default to $ORACLE_HOME/sysman/log
    #EMAGENT_PERL_TRACE_DIR=
    # EMAGENT_PERL_TRACE_FILESIZE default to 5M
    #EMAGENT_PERL_TRACE_FILESIZE=5
    # this section define the logging level for each component,
    # it is "reloadable", you can change the level at runtime to reset
    # the logging level, but if you remove the line, it will not be
    # changed.
    tracelevel.main=WARN
    tracelevel.emSDK.xml=WARN
    tracelevel.emSDK.utl=WARN
    tracelevel.Dispatcher=WARN
    tracelevel.ThreadPool=WARN
    tracelevel.pingManager=WARN
    tracelevel.collector=WARN
    tracelevel.http=WARN
    tracelevel.http.client=WARN
    tracelevel.browser=WARN
    tracelevel.ssl=WARN
    tracelevel.ssl.io=WARN
    tracelevel.blackouts=WARN
    tracelevel.upload=WARN
    tracelevel.command=WARN
    tracelevel.reload=WARN
    tracelevel.scheduler=WARN
    tracelevel.Authentication=WARN
    tracelevel.metadata=WARN
    tracelevel.targets=WARN
    tracelevel.TargetManager=DEBUG
    tracelevel.engine=WARN
    tracelevel.javaproc=WARN
    tracelevel.vpxoci=WARN
    tracelevel.javavm=WARN
    tracelevel.fetchlets=WARN
    tracelevel.fetchlets.os=WARN
    tracelevel.fetchlets.osline=WARN
    tracelevel.fetchlets.oslinetok=WARN
    tracelevel.fetchlets.snmp=WARN
    tracelevel.fetchlets.UDM=WARN
    tracelevel.fetchlets.PropsFromAssocTgt=WARN
    tracelevel.fetchlets.sql=WARN
    tracelevel.fetchlets.url=WARN
    tracelevel.fetchlets.urllines=WARN
    tracelevel.fetchlets.urllinetoken=WARN
    tracelevel.fetchlets.URLTiming=WARN
    tracelevel.fetchlets.OJMX=WARN
    tracelevel.emd.fetchlets.JMX.generic=WARN
    tracelevel.fetchlets.propEcho=WARN
    tracelevel.fetchlets.readFromFile=WARN
    tracelevel.fetchlets.readMultFromFile=WARN
    tracelevel.fetchlets.throwable=WARN
    tracelevel.fetchlets.resourceGrab=WARN
    tracelevel.fetchlets.statusHang=WARN
    tracelevel.fetchlets.emSDK=WARN
    tracelevel.recvlets=WARN
    tracelevel.recvlets.snmp=WARN
    tracelevel.credproviders=WARN
    tracelevel.utl=WARN
    tracelevel.NLS=WARN
    tracelevel.util.dates=WARN
    tracelevel.util.emdprops=WARN
    tracelevel.util.files=WARN
    tracelevel.util.fileops=WARN
    tracelevel.resman.socket=WARN
    tracelevel.resman.process=WARN
    tracelevel.ResMonitor=WARN
    tracelevel.emtgtctl=WARN
    # The following three properties are for HTTP timeout
    # Timeout value for reading Http primary header, default is 30 seconds.
    httpTimeoutPrimaryHeader=30
    # Timeout value for reading http secondary headers, default is 30 seconds
    httpTimeoutSecondaryHeaders=30
    # Timeout value for reading http body, default is 60 seconds.
    httpTimeoutBody=60
    # Timeout used by ping manager
    #PingTimeout=30
    #Timeout for Dynamic property evaluation. This is provided in seconds.
    #The dynamicPropsComputeTimeout value applies to all target types unless if a
    #target type specific value is provided using the
    #dynamicPropsComputeTimeout_<targetType>= syntax
    #dynamicPropsComputeTimeout=30
    #Requested by RAC team in bug 4423072
    dynamicPropsComputeTimeout_rac_database=120
    #bug 4595094
    dynamicPropsComputeTimeout_oracle_database=120
    #bug 5016243
    dynamicPropsComputeTimeout_oc4jjvm=120
    #bug 5647863
    #@description=DynamicProperty evaluation timeout value of Microsoft SQL Server
    #@default=120
    dynamicPropsComputeTimeout_microsoft_sqlserver_database=120
    # changes in context of bug id 4591002
    # Need to recompute the values of dynamic properties in case of failure to do so
    # at startup and reload. Currently this applies only to "Critical" marked dynamic
    # properties. The following two values are applicable per target and not per
    # dynamic property
    # dynamicPropReComputeInterval --> time difference between a failed dynamic property
    # computation and the next try to compute the property in seconds. The default value is 120 seconds.
    # dynamicPropReComputeMaxTries --> maximum number of reties for calculating failed
    # dynamic properties. The default value is 4 retires.
    agentTZRegion=Asia/Calcutta
    output of status of agent
    [oracle@isgmmlds244 patchset10.2.0.4]$ /u01/app/oracle/product/agent10g/bin/emctl status agent
    Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Agent Version : 10.2.0.4.0
    OMS Version : 10.2.0.4.0
    Protocol Version : 10.2.0.4.0
    Agent Home : /u01/app/oracle/product/agent10g
    Agent binaries : /u01/app/oracle/product/agent10g
    Agent Process ID : 12468
    Parent Process ID : 12377
    Agent URL : https://isgmmlds244.insolutionsglobal.local:1831/emd/main/
    Repository URL : https://192.168.21.243:1159/em/upload
    Started at : 2010-03-05 15:34:24
    Started by user : oracle
    Last Reload : 2010-03-05 15:34:24
    Last successful upload : (none)
    Last attempted upload : (none)
    Total Megabytes of XML files uploaded so far : 0.00
    Number of XML files pending upload : 129
    Size of XML files pending upload(MB) : 38.17
    Available disk space on upload filesystem : 29.76%
    Last attempted heartbeat to OMS : 2010-03-05 15:35:17
    Last successful heartbeat to OMS : unknown
    Agent is Running and Ready
    error for upload agent[oracle@isgmmlds244 patchset10.2.0.4]$ /u01/app/oracle/product/agent10g/bin/emctl upload agent
    Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
    Please provide solution
    Regards
    shd

    shd wrote:
    entry in /etc/hosts of 21.244 server
    192.168.21.244 isgmmlds244.insolutionsglobal.local localhost
    192.168.21.243 isgmmlds243.insolutionsglobal.local isgmmlds243
    Remove the localhost alias from this above enty.
    localhost should be - and probably also is - pointing to 127.0.0.1
    HTH

  • Oracle 10g - Vista Business - Agent unreachable in EM

    Hi,
    I can't seem to get the agent to be seen from EM.
    Here is my config:
    Windows Vista Business - Oracle 10g R2
    I have done the following:
    - secured the dbconsole
    - made sure that the OS user has admin rights & can log on as a batch job
    - env. vars ORACLE_SID and EMHOSTNAME are set
    The agent log shows no errors (start and shutdown successfully).
    The emoms.log shows:
    2009-11-24 09:32:54,545 [HttpRequestHandler-15512561] ERROR eml.OMSHandshake processFailure.619 -
    OMSHandshake failed.(AGENT URL = https://DBServer:3938/emd/main)(ERROR = KEY_MISMATCH)
    I have seen some threads where people advise to unsecure the dbconsole but I don't know how to do it.
    Can anyone help ? I have done many changes, but nothing seems to make it work and I am a bit lost.
    Thanks !
    @lex
    emctl upload does not work:
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
    EMD.properties (extract):
    perlBin=D:\oracle\product\10.2.0\db_2\perl\5.8.3\bin\MSWin32-x86-multi-thread
    scriptsDir=D:\oracle\product\10.2.0\db_2/sysman/admin/scripts
    emdRoot=D:\oracle\product\10.2.0\db_2
    agentStateDir=D:/oracle/product/10.2.0/db_2/DBServer_MyDB
    chronosRoot=D:/oracle/product/10.2.0/db_2/DBServer_MyDB/sysman/emd/chronos
    REPOSITORY_URL=https://DBServer:1158/em/upload/
    agentSeed=-908248752
    agentVersion=10.1.0.4.0
    UploadInterval=5
    UploadFailBackoffDBServert= 20
    UploadTimeout=1800
    UploadFileSize=2048
    EMD_URL=https://DBServer:3938/emd/main
    AgentListenOnAllNICs=TRUE
    NormalThreadStackSize=0
    ouiLoc=D:\oracle\product\10.2.0\db_2/oui
    TrcFileMaxSize=4096
    TrcFileMaxRolls=4
    dynamicPropsComputeTimeout=60
    EMAGENT_PERL_TRACE_LEVEL=ERROR
    tracelevel.fetchlets.emSDK=WARN
    httpTimeoutPrimaryHeader=30
    httpTimeoutSecondaryHeaders=30
    httpTimeoutBody=60
    omsRecvDir=D:\oracle\product\10.2.0\db_2\DBServer_MyDB\sysman\recv
    agentTZRegion=Europe/Brussels
    Emoms.properties:
    #Mon Nov 23 16:04:55 GMT 2009
    oracle.sysman.emSDK.svlt.ConsoleServerName=DBServer_Management_Service
    oracle.sysman.eml.mntr.emdRepPwd=81dbf93fefe9e409
    emdrep.ping.pingCommand=ping <hostname>
    oracle.sysman.eml.mntr.emdRepPort=1521
    oracle.sysman.eml.mntr.emdRepDBName=MyDB
    oracle.sysman.eml.mntr.emdRepPwdSeed=6610522536789545842
    oracle.sysman.emSDK.svlt.ConsoleMode=standalone
    oracle.sysman.emRep.dbConn.statementCacheSize=30
    oracle.sysman.db.isqlplusUrl=http\://DBServer\:5560/isqlplus/dynamic
    oracle.sysman.emSDK.svlt.ConsoleServerPort=1158
    oracle.sysman.eml.mntr.emdRepRAC=FALSE
    oracle.sysman.emSDK.emd.rt.useMonitoringCred=true
    oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE
    oracle.sysman.db.isqlplusWebDBAUrl=http\://DBServer\:5560/isqlplus/dba/dynamic
    oracle.sysman.emSDK.svlt.ConsoleServerHost=DBServer
    oracle.sysman.eml.mntr.emdRepDBID=2250547128
    oracle.sysman.emSDK.svlt.ConsoleServerHTTPSPort=1820
    oracle.sysman.eml.mntr.emdRepSID=MyDB
    oracle.sysman.eml.mntr.emdRepServer=DBServer
    oracle.sysman.emSDK.sec.ReuseLogonPassword=true
    oracle.sysman.eml.mntr.emdReDBServeronnectDescriptor=(DESCRIPTION\=(ADDRESS_LIST\=(ADDRESS\=(PROTOCOL\=TCP)(HOST\=DBServer)(PORT\=1521)))(CONNECT_DATA\=(SERVICE_NAME\=MyDB)))
    oracle.sysman.eml.mntr.emdRepUser=SYSMAN
    oracle.sysman.db.adm.conn.statementCacheSize=2
    oracle.sysman.db.perf.conn.statementCacheSize=30
    I ran emctl status agent:
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    Agent Version : 10.1.0.4.1
    OMS Version : 10.1.0.4.0
    Protocol Version : 10.1.0.2.0
    Agent Home : D:\oracle\product\10.2.0\db_2\DBServer_MyDB
    Agent binaries : D:\oracle\product\10.2.0\db_2
    Agent Process ID : 12148
    Agent Process ID : 12148
    Agent URL : https://DBServer:3938/emd/main
    Started at : 2009-11-23 17:26:21
    Started by user : SYSTEM
    Last Reload : 2009-11-23 17:26:21
    Last successful upload : (none)
    Last attempted upload : (none)
    Total Megabytes of XML files uploaded so far : 0.00
    Number of XML files pending upload : 528
    Size of XML files pending upload(MB) : 2.98
    Available disk space on upload filesystem : 73.83%
    Agent is Running and Ready
    I ran emctl status dbconsole:
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    https://DBServer:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    Logs are generated in directory D:\oracle\product\10.2.0\db_2/DBServer_MyDB/sysman/log
    ----------------------------

    Hi,
    PLease can anyone help me ?
    Thanks,
    @lex

  • Problem with agent10g upload

    Hi Gurus,
    I have installed Agent10g on a linux box the installation was successful and ran the root.sh, I am able to start agent successfully using emctl start agent but I could not see the host in target list of OMS. You can see the agent status below and please find the traces of emctl.trc and emagent.trc.
    And the when installaing some of the things are failed, the command failed configuration was "oracle.sysman.emcp.agent.AgentPlugIn" I found this in /u01/app/oracle/OracleHomes/agent10g/cfgtoollogs/configToolFailedCommands
    Please let me know the reason for my prblem and solution
    thanks in advance
    Ashok Chava.
    IAS904 % ./emctl status agent
    Oracle Enterprise Manager 10g Release 10.2.0.2.0.
    Copyright (c) 1996, 2006 xyz Corporation. All rights reserved.
    Agent Version : 10.2.0.2.0
    OMS Version : 10.2.0.2.0
    Protocol Version : 10.2.0.2.0
    Agent Home : /u01/app/oracle/OracleHomes/agent10g
    Agent binaries : /u01/app/oracle/OracleHomes/agent10g
    Agent Process ID : 22286
    Parent Process ID : 22269
    Agent URL : http://web287.us.xyz.com:1920/emd/main/
    Repository URL : http://ajacob-idc.idc.xyz.com:4889/em/upload/
    Started at : 2006-09-08 09:42:10
    Started by user : xyz
    Last Reload : 2006-09-08 09:42:10
    Last successful upload : (none)
    Last attempted upload : (none)
    Total Megabytes of XML files uploaded so far : 0.00
    Number of XML files pending upload : 1113
    Size of XML files pending upload(MB) : 19.25
    Available disk space on upload filesystem : 36.01%
    Last attempted heartbeat to OMS : 2006-09-08 20:23:40
    Last successful heartbeat to OMS : unknown
    Agent is Running and Ready
    emdctl.trc
    2006-09-08 09:42:10 Thread-3058628224 WARN http: snmehl_connect: connect failed to (web287.us.xyz.com:1920): Connection refused (error = 111)
    2006-09-08 09:42:10 Thread-3058628224 ERROR main: nmectla_agentctl: Error connecting to http://web287.us.xyz.com:1920/emd/main/. Returning status code 1
    emagent.trc
    2006-09-08 20:28:07 Thread-2811276208 ERROR upload: Error in uploadXMLFiles. Trying again in 900.00 seconds or earlier.
    2006-09-08 20:28:08 Thread-3035749296 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
    2006-09-08 20:28:09 Thread-3035749296 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
    2006-09-08 20:28:11 Thread-3035749296 ERROR upload: Error in uploadXMLFiles. Trying again in 900.00 seconds or earlier.
    2006-09-08 20:28:11 Thread-3046562736 ERROR command: nmejcn: received no status header from repository at http://ajacob-idc.idc.xyz.com:4889/em/upload/
    2006-09-08 20:28:20 Thread-3034819504 ERROR upload: Error in uploadXMLFiles. Trying again in 900.00 seconds or earlier.
    2006-09-08 20:28:26 Thread-3035749296 ERROR upload: Error in uploadXMLFiles. Trying again in 900.00 seconds or earlier.
    2006-09-08 20:28:27 Thread-3031669680 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
    2006-09-08 20:28:29 Thread-3031669680 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
    2006-09-08 20:28:30 Thread-2807225264 ERROR upload: Error in uploadXMLFiles. Trying again in 900.00 seconds or earlier.

    Hi Sujit and Nazim,
    thanks for your response.The repositary URL is working fine becasue I have used downloadAgent.linux script to install the agent10g on this linux box. I have used "oracle" user to install the agent and I am using oracle user to start the agent. So there is no question of acces problems as I know.
    when tried to telnet from the linux box where I installed agent10g it is connecting I have used below comamnd
    telnet ajcob.xyz.com 4889 the below given is the message
    Trying 152.69.149.127...
    Connected to ajacob.xyz.com.
    Escape character is '^]'.
    Nazim you asked for the emoms.trc file I looked into the trc file but I could not find anything related to the this agent upload problems other agents which are running on winows box are connected to OMS and uploading files as expected so I assume there is no problem with OMS. If you insist on seeing emoms.trc I can very well provide them.
    Please let me know the solution for my problem.
    Thanks,
    Ashok Chava

  • Math.cos Math.sin = Math.HELP

    Hello Everyone,
    I was hoping to create a JS script to move objects away from common center based upon their current position. I was thinking to use a single selected path item as the center based on its position x/y and width/height. Using this reference point the script would then move away all other path items from this center point based on a desired amount and with uniform increments given their current location from this center. I was thinking cos and sin would be my friend in this case, however they seem to have become my foe instead. ;-)
    Does this sound doable? What am I missing, doing wrong, misinterpreting? Below is a non-working attempt, I can't seem to sort things out, perhaps I was close and missed it or maybe I am super way off and its more complex than I thought. However at this point I am confused across my various failed attempts this only being one of them.
    Thanks in advance for any assistance and sanity anyone can provide.
    // Example failed code, nonworking concept
    var docID = app.activeDocument;
    var s0 = docID.selection[0];
    pID = docID.pathItems;
    var xn, yn;
    var stepNum = 20;
    for (var i = 0; i < pID.length; i++) {
        var p = pID[i];
        var dx = ((s0.position[0] + s0.width) / 2 - (p.position[0] + p.width) / 2);
        var dy = ((s0.position[1] + s0.height) / 2 - (p.position[1] + p.height) / 2);
        xn = Math.cos(Number(dx) * Math.PI / 180)+stepNum;
        yn = Math.sin(Number(dy) * Math.PI / 180)+stepNum;
        var moveMatrix = app.getTranslationMatrix(xn, yn);
        p.transform(moveMatrix);
        stepNum+=stepNum;

    Hi W_J_T, here's one way to do what I think you want to do, I commented out the step increment so all items will "explode" the same distance, not sure if that's what you need.
    first I'd move the calculation of the Selected object's center out of the loop, you only need to make the math once.
    also, (s0.position[0] + s0.width) / 2  has a problem, it will not give you the center, check below
    // calculate Selection center position
    var cx = s0.position[0] + s0.width/2;
    var cy = s0.position[1] + s0.height/2;
    then we're going to loop thru all items and calculate their center
            // calculate pathItem's center position
            var px = p.position[0] + p.width/2;
            var py = p.position[1] + p.height/2;
    we're going to skip calculating the distance from the selection's center to each item's center, we don't need it for this method, other methods could use this info.
    now, your actual question about Sin/Cos
    xn = Math.cos(Number(dx) * Math.PI / 180)+stepNum;
    sin(angle) and cos(angle) expect angles in Radians, you are not providing any angles in the formula above. We need to calculate the angle between Selection's center and each path's center
            // get the angle formed between selection's center and current path's center
            var angle = get2pointAngle ([cx,cy], [px,py]);
    once we have the angle we can apply it to our "Explosion" variable, I'm assuming is stepNum, and get its x and y distance it needs to move away from selection
            // the distance to move is "stepNum" in the same direction as the angle found previously, get x and y vectors
            var dx = stepNum*Math.cos(angle);// distance x
            var dy = stepNum*Math.sin(angle);// distance y
    all is left to do is move the paths, here's the whole thing
    // Explosion, AKA move all items away from selection
    // carlos canto
    // http://forums.adobe.com/thread/1382853?tstart=0
    var docID = app.activeDocument;
    var s0 = docID.selection[0];
    pID = docID.pathItems;
    var stepNum = 20; // this is the distance to "explode"
    // calculate Selection center position
    var cx = s0.position[0] + s0.width/2;
    var cy = s0.position[1] + s0.height/2;
    for (var i = 0; i < pID.length; i++) {
        var p = pID[i];
        // skip selected item
        if (!p.selected) {
            // calculate pathItem's center position
            var px = p.position[0] + p.width/2;
            var py = p.position[1] + p.height/2;
            // get the angle formed between selection's center and current path's center
            var angle = get2pointAngle ([cx,cy], [px,py]);
            // the distance to move is "stepNum" in the same direction as the angle found previously, get x and y vectors
            var dx = stepNum*Math.cos(angle);// distance x
            var dy = stepNum*Math.sin(angle);// distance y
            var moveMatrix = app.getTranslationMatrix(dx, dy);
            p.transform(moveMatrix);
            //stepNum+=stepNum;
    // return the angle from p1 to p2 in Radians. p1 is the origin, p2 rotates around p1
    function get2pointAngle(p1, p2) {
        var angl = Math.atan2(p2[1] - p1[1], p2[0] - p1[0]);
        if (angl<0) {   // atan2 returns angles from 0 to Pi, if angle is negative it means is over 180 deg or over Pi, add 360 deg or 2Pi, to get the absolute Positive angle from 0-360 deg
            angl = angl + 2*Math.PI;
      return angl;

Maybe you are looking for

  • DS sends updates to DB only in commit (can't find modified data in same TX)

    Hello experts! We have a physical data service mapping a simple Oracle database table. When we update one record in the database (invoking submit on the DS), and use a function in that same dataservice to get the refreshed record, the updated column

  • Mac Mail downloads all my old messages with IMAP

    Hi, How do I stop this happening? I just want to download messages from now onwards. But I'm getting thousands of old emails downloading to my inbox and no way to stop it seemingly. I'm on Mac OSX 10.6.8, using Mail 4.6. I have an @hotmail.com email

  • How can i enlarge subtitels in Apple tv

    The subtitels in a film that i bought or rented from the iTunes store are too small. Does anyone know how to get bigger subtitels ?

  • Powers off when i close the lid

    Hey all, I am having what seems to be a problem with many others with HP laptops. Recently after an HP update, my laptop shuts down when i close the lid. It seems as though, something in the update has corrupted something. Im not sure if HP needs to

  • 8-Hr Battery Differences Between MacBook Pro's

    I am getting ready to purchase a refurbed 17" MBP, but am a bit confused by Apple's battery designations. For example: Refurbed MBP 3.06Ghz Intel Core 2 Duo $2099 Battery represented as: 'Breakthrough battery performance Every new 17" MBP features an