Scripting OSB Configuration

I am looking for a script to automate the configuration of SLA Alerts Rules, Security/Access Control in a OSB Proxy Service. We can do all of these with in the OSB console. But I need a way to configure it either in the eclipse project or during deployment /post deployment so that our admins do not have to navigate through the console menus.
Thanks
Ajay

Thanks Eric & Prabhu
I also found these hints useful. Also for modifying access control, you can edit this section into the proxy service.
<ser:security>
<con4:access-control-policies xmlns:con4="http://www.bea.com/wli/sb/services/security/config" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config" xmlns:con2="http://www.bea.com/wli/sb/stages/publish/config">
<con2:transport-level-policy xsi:type="con1:ProviderPolicyContainerType" xmlns:con1="http://www.bea.com/wli/sb/security/accesscontrol/config" xmlns:con2="http://www.bea.com/wli/sb/services/security/config">
<con1:policy provider-id="XACMLAuthorizer">
<con1:policy-expression>Usr(XXXXXXX)</con1:policy-expression>
</con1:policy>
</con2:transport-level-policy>
</con4:access-control-policies>
</ser:security>

Similar Messages

  • Export OSB configuration from eclipse using ant script

    I am trying to export an OSB project from eclipse using ant script
    I followed the link below http://biemond.blogspot.com/2010/07/osb-11g-ant-deployment-scripts.html
    It is using com.bea.alsb.core.ConfigExport to do the export. This export is always set to resource level.
    I see it generates a file ExportInfo setting some properties. It has a property that set the export level as below
    <imp:property name="projectLevelExport" value="false"/>*
    How can I export the project in project level? basically setting projectLevelExport to true?
    So that if a file does not exist in the sbconfig.jar file , then while importing the jar to OSB server it will delete the file from the server instead of skipping it?
    I appreciate any help
    here is the ant script snippet that gets executed to export from eclipse
    <target name="exportFromWorkspace">
         <delete failonerror="false" includeemptydirs="true"
    dir="${metadata.dir}"/>     
                   <!--eclipse.refreshLocal resource="${config.project}" depth="infinite"/-->
    <java dir="${eclipse.home}"
    jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar"
    fork="true" failonerror="true" maxmemory="768m">
    <jvmarg line="-XX:MaxPermSize=256m"/>
    <arg line="-data ${workspace.dir}"/>
    <arg line="-application com.bea.alsb.core.ConfigExport"/>
    <arg line="-configProject ${config.project}"/>
    <arg line="-configJar ${config.jar}"/>
    <arg line="-configSubProjects ${config.subprojects}"/>
              <arg line="-exportLevel true"/>
    <arg line="-includeDependencies ${config.includeDependencies}"/>
    <sysproperty key="weblogic.home" value="${weblogic.home}"/>
    <sysproperty key="osb.home" value="${osb.home}"/>
    <sysproperty key="osgi.bundlefile.limit" value="500"/>
    <sysproperty key="harvester.home" value="${osb.home}/harvester"/>
    <sysproperty key="osgi.nl" value="en_US"/>
    <sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/>
    </java>
    </target>

    yes, I specified the project name to export the whole project.
    Here is few lines from my properties file
    # properties for workspace export
    config.project="OSB Configuration-GW"
    config.jar=D:/workspace/osb/scripts/gateway/mycode2/ant_osb/dist/sbconfig.jar
    config.subprojects="GatewaySecurity"
    config.includeDependencies=true
    workspace.dir=D:/workspace/osb/gateway-workspace
    But this property does not make it to export at project level ,it export the specified project at resource level.
    And while importing this jar to OSB server, if a file is missing it skips the file instead of deleting the file from the OSB server
    If I unjar sbconfig.jar file, open ExportInfo file and update the line in bold below to true then it deletes the file from OSB server, if not exist in sbconfig.jar
    <imp:property name="exporttime" value="Thu Dec 29 13:57:44 EST 2011"/>
    <imp:property name="productname" value="Oracle Service Bus"/>
    <imp:property name="productversion" value="11.1.1.4"/>
    *<imp:property name="projectLevelExport" value="false"/>*
    Here is few lines from Oracle API java doc
    http://docs.oracle.com/cd/E13171_01/alsb/docs26/javadoc/com/bea/wli/sb/management/importexport/ALSBImportOperation.Operation.html
    public static final ALSBImportOperation.Operation Delete
    Indicates that the resource is deleted in the importing domain. This is the default operation when the project is exported in its entirety and the resource exists in the target domain but not in the jar file
    public static final ALSBImportOperation.Operation Skip
    Indicates that the resource is skipped meaning the resource is not touched in the importing domain. This is the default operation if the jar file was exported at the resource level, and a resource that exists in the target domain, does not exist in the jar file.

  • OSB configuration exception

    Hello,
    I am getting following exception when creating a OSB configurations jar file using ant script.
    [java] java.io.FileNotFoundException: alsbdebug.xml (Permission denied)
    [java]      at java.io.FileOutputStream.open(Native Method)
    [java]      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    [java]      at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
    [java]      at com.bea.wli.sb.debug.ALSBDebug.getDebugFlagsDocument(ALSBDebug.java:487)
    [java]      at com.bea.wli.sb.debug.ALSBDebug.flags(ALSBDebug.java:454)
    [java]      at com.bea.wli.sb.debug.ALSBDebug.getALSBDebuggerDebugLogger(ALSBDebug.java:393)
    [java]      at com.bea.wli.sb.debug.ALSBDebugLoggerService.<init>(ALSBDebugLoggerService.java:41)
    [java]      at com.bea.wli.sb.debug.ALSBDebugLoggerService.init(ALSBDebugLoggerService.java:84)
    [java]      at com.bea.alsb.core.internal.config.service.EclipseALSBStarter.initConfigService(Unknown Source)
    [java]      at com.bea.alsb.core.internal.config.service.AlsbConfigService.start(Unknown Source)
    [java]      at com.bea.alsb.core.AlsbCore.start(Unknown Source)
    [java]      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    [java]      at java.security.AccessController.doPrivileged(Native Method)
    [java]      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    [java]      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    [java]      at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
    [java]      at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
    [java]      at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
    [java]      at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
    [java]      at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
    [java]      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
    [java]      at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:381)
    [java]      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)
    [java]      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    [java]      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
    [java]      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
    [java]      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    [java]      at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
    [java]      at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
    [java]      at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
    [java]      at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
    [java]      at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
    [java]      at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    [java]      at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
    [java]      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)
    [java]      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    [java]      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    [java]      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    [java]      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    [java]      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    [java]      at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    [java]      at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
    I am unable to find the file called "alsbdebug.xml" , Can someone tell me where is this file located ?
    Thanks & Regards,
    Prashant,

    Hi Prashant,
    You may find alsbdebug.xml inside your domain home i.e. $Middleware_Home\user_projects\domains\<Domain_Name> directory.
    Regards,
    Anuj

  • Programmatic deployment of osb configuration to cluster.

    Hi,
    Could you please help me to solve a deployment issue?
    The osb deployment environment is having an admin server and a cluster with 2 managed servers.
    I would like to deploy osb configuration jars to the cluster by programtic way using the scripts like given in the osb docs.
    The sample scripts given in the osb using admin server and port. If i deploy the osb configurations with admin host and port , will they deployed to the cluster? Or i have to specifically say to deploy in the cluster? If yes , how can i mention in the script, to deploy to the script?
    In one of the OSB video , its said if we use osb console, by default configurations will be deployed to cluster if there is cluster setup. But nothing mentioned about programmatic deployment. Could some one help me. Thanks.

    In a clustered topology, only one Oracle Service Bus cluster is allowed in a domain.
    Have a look at these documents
    http://docs.oracle.com/cd/E23943_01/doc.1111/e15022/intro.htm
    http://docs.oracle.com/cd/E14571_01/doc.1111/e15022/cluster.htm
    Cheers,
    Vlad

  • OSB configuration versioning

    Hi all,
    could anybody tell me if there's any simple way(maybe it's predefined task in OSB or there's some workaround) to do OSB configuration versioning.
    I have complex task, the steps of which are (all done automatically) :
    1. sbconfig.jar is exported from Workshop;
    2. it is deployed on OSB;
    3. test are run to check if everything is OK - if sbconfig.jar is somehow crapped, OSB will be down...And I need to manually redeploy previous version of configuration. If I hadn't saved it previously (by manually exporting or...I don't know..), I am in trouble.
    So any ideas how I can make this versioning or how can I test sbconfig before deploying on OSB.
    As I see the solution now (though I don't like it):
    1. sbconfig.jar is exported from Workshop by script;
    2. current OSB config is exported and stored somewhere;
    3. latest sbconfig.jar is imported on OSB;
    4. running tests. If OK, leave as is otherwise deploy previous sbconfig back.
    Thanks in advance.
    Edited by: frf on 11/5/2010 0:25

    You may be interested in below thread for version controlling -
    Oracle Service Bus Configurations version control and deployment automation
    Regards,
    Anuj

  • OSB configuration deployment

    Hi All,
    We have three environments within our organization Development, Test and Production. For OSB configuration deployment, in the development environment I use the eclipse IDE to connect and deploy configuration onto the OSB server. When it comes to Test and Production, is there a way to just package the OSB configurations for system administrators to deploy, they do not want to use eclipse for deployment. Please suggest.
    Thanks

    you could use a set of scripts like these :
    http://biemond.blogspot.nl/2010/07/osb-11g-ant-deployment-scripts.html
    it's more or less a best practise to automate these kinds of things since doing them manually can be error prone.
    automating all this by scripts and for example a continuous integration like jenkins can help you build better quality artifacts and it will help you or the administratiors to do faster and better deployments to otap

  • Cannot publish OSB Configuration project on windows 7 64 bit OSB 11g1

    I get the following error when I try to publish a OSB configuration project:
    Project Facet Oracle Service Bus Configuration 1.0.100 is not supported by this server.
    I installed OSB 11gr1 the following way:
    1. downloaded + installed 64 bit windows Java JDK (1.6.0_20)
    2. downloaded and installed the generic installer weblogic + coherence ( without OEPE unfortunately) [filename=wls1033_generic.jar].
    3. Seperately downloaded 64 bit OEPE from http://www.oracle.com/technology/software/products/oepe/index.html. Unzipped it in a manually created directory oepe in the weblogic installation directory (C:\bea\oepe) [filename=oepe-galileo-all-in-one-11.1.1.5.0.201003170852-win32-x86_64.zip]
    4. Install the OSB by running the setup.exe from the osb installer (Disk1). During the install I selected the OEPE directory (C:\bea\oepe in my case).
    [filename=ofm_osb_generic_11.1.1.3.0_disk1_1of1]
    5. I Started eclipse.exe. The OSB plugins were put in the installment automatically during startup (dropins).
    I created a test domain and within eclipse I created a server (Oracle WebLogic Server 11gR1 PatchSet 2=10.3.3) so I could deploy projects onto this server. All went well. After this I created an OSB configuration project and an OSB project. When I tried to add this to the server I got the error as I mentioned above. This surprises me. The eclipse OSB plugins that were installed cannot create an OSB Configuration Project for the 10.3.3 version. So I cannot use eclipse to build project for the latest version. What is happening here?!?
    Can somebody enlight /help me.

    Although windows 7 is not officially supported I got something working. No garantees it will break at some point you can have a working 64 bit OSB on windows 7.
    To get oepe also working you have to install the 32 bit version from the 32 bit weblogic installer. When you have supplemented this version with the OSB plugins you can publish projects on Oracle WebLogic Server 11gR1 PatchSet 2.
    So try at your own risk or wait for an official version for windows 7

  • How to define the OSB Configuration Project that an OSB Project uses?

    Hello,
    I'm using the Workshop bundled with "Oracle Service Bus 10gR1" (Oracle Workshop for WebLogic, Version: 10.3, Build id: 1137967).
    Where does one define the OSB Configuration Project that an OSB Project should use?
    I deleted an OSB Configuration Project. Now, all the OSB projects that were associated with it are in error stating "This project is not associated with an Oracle Service Bus Configuration". I created a new OSB configuration project so that I may re-associate the "orphan" projects with it. However, I can't seem to find a way to do that.

    You can create a new osb configuration project and drag the other osb projects on this projects.
    then i will link them to it. (make sure you use the oracle service bus perspective at the top right of the eclipse ide)

  • Unable to deploy OSB configuration project

    Hi,
    On WebLogic 10.3.0.0, I have been successfully deploying an OSB configuration project until today. When I tried today, I get the following error (from Oracle Workshop for Weblogic's error log view):
    org.eclipse.core.runtime.CoreException: Error publishing new container for: OSB Configuration
         at com.bea.alsb.server.publish.ALSBPublishOperation.publishNewContainer(ALSBPublishOperation.java:302)
         at com.bea.alsb.server.publish.ALSBPublishOperation.execute(ALSBPublishOperation.java:150)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1189)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:744)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:607)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:503)
         at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887)
         at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874)
         at org.eclipse.wst.server.core.internal.ServerWorkingCopy.publish(ServerWorkingCopy.java:635)
         at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    org.eclipse.core.runtime.CoreException[4000]: com.bea.alsb.core.repositories.RepositoryException: Error creating the Configuration Jar.
         at com.bea.alsb.core.internal.repositories.jar.ConfigFactory.createForProjects(ConfigFactory.java:132)
         at com.bea.alsb.core.internal.repositories.jar.ConfigFactory.createAllProjects(ConfigFactory.java:97)
         at com.bea.alsb.server.publish.ALSBPublishOperation.publishNewContainer(ALSBPublishOperation.java:290)
         at com.bea.alsb.server.publish.ALSBPublishOperation.execute(ALSBPublishOperation.java:150)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.performTasks(WeblogicServerBehaviour.java:1189)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:744)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:607)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:503)
         at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:887)
         at org.eclipse.wst.server.core.internal.Server.publish(Server.java:874)
         at org.eclipse.wst.server.core.internal.ServerWorkingCopy.publish(ServerWorkingCopy.java:635)
         at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:72)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
         at com.rsa.jsafe.JA_PKCS5Padding.a(Unknown Source)
         at com.rsa.jsafe.JG_BlockCipher.decryptFinal(Unknown Source)
         at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:68)
         at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:94)
         at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:87)
         at com.bea.wli.sb.security.EncryptionServiceImpl.decrypt(EncryptionServiceImpl.java:67)
         at com.bea.wli.sb.security.EncryptionServiceImpl.decryptOrClear(EncryptionServiceImpl.java:82)
         at com.bea.wli.sb.svcacct.EncryptionHelper.decryptOrClear(EncryptionHelper.java:55)
         at com.bea.wli.sb.svcacct.EncryptionHelper.toXML(EncryptionHelper.java:88)
         at com.bea.wli.sb.svcacct.EncryptionHelper.toXML(EncryptionHelper.java:76)
         at com.bea.wli.sb.svcacct.StaticServiceAccountConfig.toXML(StaticServiceAccountConfig.java:279)
         at com.bea.wli.sb.svcacct.StaticServiceAccountConfig.toExportedForm(StaticServiceAccountConfig.java:151)
         at com.bea.wli.sb.svcacct.StaticServiceAccountConfig.toExportedForm(StaticServiceAccountConfig.java:44)
         at com.bea.wli.sb.svcacct.ServiceAccountValueRepresentation.fromCanonical(ServiceAccountValueRepresentation.java:98)
         at com.bea.wli.config.importexport.ConfigJar$SerializedForm$ResourceInfo.<init>(ConfigJar.java:898)
         at com.bea.wli.config.importexport.ConfigJar$SerializedForm.addResourceForExport(ConfigJar.java:1106)
         at com.bea.wli.config.importexport.ConfigJar$SerializedForm.<init>(ConfigJar.java:990)
         at com.bea.wli.config.task.impl.ExportTask._execute(ExportTask.java:174)
         at com.bea.wli.config.task.impl.ExportTask._execute(ExportTask.java:62)
         at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:224)
         at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
         at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
         at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:142)
         at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:227)
         at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:185)
         at com.bea.wli.config.task.impl.ExportTask.exportProjectLevel(ExportTask.java:138)
         at com.bea.wli.config.mbeans.Config.exportProjects(Config.java:493)
         at com.bea.alsb.core.internal.repositories.jar.ConfigFactory.createForProjects(ConfigFactory.java:127)
         ... 12 more
    and it will not deploy.
    Any ideas?

    "Caused by: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte."
    This happens when your SerailizedSystemIni.dat (${DOMAIN_HOME}/security) file is somehow been modified.
    What you can try to do is to generate the encrypted passwords again by using the encrypt utility (http://download.oracle.com/docs/cd/E21764_01/web.1111/e13749/utils.htm#i1209774)
    - Make a back-up copy of the config.xml file (located in the ${DOMAIN_HOME}/config directory)
    - Navigate to the domain-home directory (An encrypted string must have been encrypted by the encryption service in the WebLogic domain where it will be used. If not, the server will not be able to decrypt the string.)
    - Set the weblogic environment by running setWLSEnv (located in the ${WL_HOME}/server/bin directory)
    - Run java weblogic.security.Encrypt MyAdminPassword
    - Edit your config.xml file and replace the encrypted entries (all the credential-encrypted and node-manager-password-encrypted elements) with the newly generated one.

  • Witch version oepe-all-in-one-juno can I use to do create osb configuration

    witch version oepe-all-in-one-juno can I use to do create osb configuration project ?
    I use ubuntu 12.04 64

    You can check all these out via the Web Part Maintenance Page. After the PageName.aspx, add ?contents=1 and you'll get a list of the webparts that are open and published on the page.
    You can't do too much here but you can reset the parts that you think might be causing the problems.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Using Echo Command in PowerShell Script for Configuration Item

    Hello All,
    Before you tell me to post my PowerShell question to the PowerShell Forum, please know that the PowerShell portion of my task works just fine. It is the SCCM portion of my task that keeps failing, so that is why I am here. To give some background...
    There are two servers in our SCCM test environment. Both the SCCM server and SQL DB server are 2012, patched and updated.
    Test servers in my Device Collection being used for running Baselines and Reports against are 2008R2 and 2012, patched and updated.
    I have created a Configuration Item that checks to see if the FTP Server Role Feature has been installed on a 2008 or 2012 server. To do the check, I am using the following PowerShell script:
    (get-windowsfeature -Name Web-Ftp-Server).Installed
    When I log into my 2008R2 and 2012 test servers, and run this command directly on the server, it will return a "True" if the FTP Server Role Feature is installed on either server, and a "False" if it is not installed. Basically,
    it works as advertised.
    When I setup my Configuration Item and then deploy my Baseline, or run a report against my device collection of test servers, SCCM will return a correct response (True or False) for the 2012 test server, but throws the following error for the 2008R2
    server:
    0x87df00329 application requirement evaluation or detection failed
    Google searches for this have not been very helpful.
    Now, when I created the Configuration Item and referenced PowerShell, the configuration screen has the following note:
    "Specify the script to find and return the value to be assessed for compliance on client devices. Use the echo command to return the script value to Configuration Manager."
    Since I did not include an echo command in my PowerShell script above, I figured that was my problem, so I did the following:
    Logging onto both of my test servers (2008R2 & 2012) I was able to successfully run the following PowerShell commands and get the expected responses of True or False:
    (get-windowsfeature -Name Web-Ftp-Server).Installed | echo
    (get-windowsfeature -Name Web-Ftp-Server).Installed | write-output (http://technet.microsoft.com/en-us/library/hh849921.aspx)
    (get-windowsfeature -Name Web-Ftp-Server).Installed | write-host (http://technet.microsoft.com/en-us/library/ee177031.aspx)
    However, when I use any of these PowerShell commands in my Configuration Item, NEITHER of my test servers returns a response to the SCCM server.
    When I check the report, both servers show as "Unknown" and when I click on the number 2 (as in 2 servers unknown), the following report page (List of unknown assets for a configuration baseline) has absolutely no data/information at all.
    So...I am at a loss.
    SCCM tells me to use an echo command to return a script value to Configuration Manager. The PowerShell scripts above, with the various echo related commands, work just fine on the servers themselves, but they return no information when run via SCCM.
    What am I missing?
    Any help will be appreciated.
    Thanks in advance for your time.

    Sorry for my ignorance, but I don't understand. (I forgot to mention that I am new at both PowerShell and SCCM.)
    After I change the PowerShell script to add the echo/write-output/write-host cmdlet, I open the ConFig Item and "Clear" the PowerShell script and then re-add it. When I do that, it correctly shows the change in the ConFig Item.
    Next I open the Baseline, then open the ConFig Item within the Baseline to make sure the change is reflected there as well, which it is.
    I then deploy the Baseline to my Device Collection. After that, I run a report against the Baseline and Device Collection and it returns the "Unknown" result.
    If I open the PowerShell script and remove the echo/write-output/write-host cmdlet, then go through the rest of the process of updating and reporting, the result it returns changes, showing one server in compliance and the other server out of compliance,
    which leads me to think that all changes have taken correctly.
    Does that sound right? If I manually deploy the Baseline, is that the same as the client retrieving policies from the management point?
    Sorry to be so thick but I'm learning as I go.
    Thanks again for your help.

  • OSB - configuration project deploy error

    Hi!
    I got an error message when i wanted to deploy a configuration project to OSB:
    Permission denied
    Failed to create temporary jar file
    The OSB works in Linux. I had got problems with permissions of OSB file folder in Linux. I solved these (the oracle user is the owner of this folder and it has got rights (read+write) on this folder; i start the OSB with this oracle user). So maybe I should add some rights to oracle folder or maybe to other folder?
    Thanks!
    Viktor

    Hi Anuj!
    Thanks for your reply!
    I executed these commands earlier:
    chown -vR oracle oracle
    chmod -Rv ugw+r oracle/+
    But I could'nt deploy either... :(
    any ide?
    Viktor

  • W_YEAR_D Script to configure Year Data in Apps Database : OBIA

    Hi Friends,
    We want to configure DAY, MONTH, YEAR... in my Apps database. As of now we have Scripts for W_DAY_D, W_MONTH_D and mentioned below. NOw , we need same kind of scripts for W_YEAR_D. We are planning to bypass Informatica and DAC, So we need to configure them in Apps DAtabase to get the results similar to OBIA.
    W_DAY_D
    CREATE TABLE W_DAY_D AS
    (SELECT
    ROWNUM ROW_WID,
    CurrDate AS Day_ID,
    to_number(to_char(CurrDate, 'YYYYMMDD')) as DAY_ID_YYYYMMDD,
    --1 AS Day_Time_Span,
    --CurrDate                AS Day_End_Date,
    TO_CHAR(CurrDate,'Day') AS Week_Day_Full,
    TO_CHAR(CurrDate,'DY') AS Week_Day_Short,
    TO_NUMBER(TRIM(leading '0'
    FROM TO_CHAR(CurrDate,'D'))) AS Day_Num_of_Week,
    TO_NUMBER(TRIM(leading '0'
    FROM TO_CHAR(CurrDate,'DD'))) AS Day_Num_of_Month,
    TO_NUMBER(TRIM(leading '0'
    FROM TO_CHAR(CurrDate,'DDD'))) AS Day_Num_of_Year,
    UPPER(TO_CHAR(CurrDate,'Mon')
    || '-'
    || TO_CHAR(CURRDATE,'YYYY')) AS MONTH_ID,
    TO_CHAR(CurrDate,'Mon')
    || '-'
    || TO_CHAR(CURRDATE,'YY') AS MONTH_SHORT_ID,
    TO_CHAR(CurrDate,'Mon')
    || ' '
    || TO_CHAR(CurrDate,'YYYY') AS Month_Short_Desc,
    RTRIM(TO_CHAR(CurrDate,'Month'))
    || ' '
    || TO_CHAR(CurrDate,'YYYY') AS Month_Long_Desc,
    TO_CHAR(CurrDate,'Mon') AS Month_Short,
    TO_CHAR(CurrDate,'Month') AS Month_Long,
    TO_NUMBER(TRIM(leading '0'
    FROM TO_CHAR(CurrDate,'MM'))) AS Month_Num_of_Year,
    'Q'
    || UPPER(TO_CHAR(CurrDate,'Q')
    || '-'
    || TO_CHAR(CurrDate,'YYYY')) AS Quarter_ID,
    'Q' || UPPER(TO_CHAR(CurrDate,'Q')) AS Quarter_Short,
    TO_NUMBER(TO_CHAR(CurrDate,'Q')) AS Quarter_Num_of_Year,
    CASE
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 1 THEN 1
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 2 THEN 2
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 3 THEN 3
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 4 THEN 1
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 5 THEN 2
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 6 THEN 3
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 7 THEN 1
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 8 THEN 2
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 9 THEN 3
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 10 THEN 1
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 11 THEN 2
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'MM')) = 12 THEN 3
    END AS Quarter_Num_of_Month,
    CASE
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'Q')) <= 2
    THEN 1
    ELSE 2
    END AS half_num_of_year,
    CASE
    WHEN TO_NUMBER(TO_CHAR(CurrDate,'Q')) <= 2
    THEN 'H'
    || 1
    || '-'
    || TO_CHAR(CurrDate,'YYYY')
    ELSE 'H'
    || 2
    || '-'
    || TO_CHAR(CurrDate,'YYYY')
    END AS half_of_year_id,
    TO_CHAR(CurrDate,'YYYY') AS Year_ID
    FROM
    (SELECT level n,
    -- Calendar starts at the day after this date.
    TO_DATE('31/12/2000','DD/MM/YYYY') + NUMTODSINTERVAL(level,'DAY') CurrDate
    FROM dual
    -- Change for the number of days to be added to the table.
    CONNECT BY level <= 9131
    W_MONTH_D
    CREATE TABLE W_MONTH_D
    AS
    SELECT ROWNUM AS ROW_WID,
    B.MONTH_ID AS MONTH_ID,
    B.MONTH_SHORT_DESC,B.MONTH_LONG_DESC,B.MONTH_SHORT,B.MONTH_LONG,B.MONTH_NUM_OF_YEAR,B.QUARTER_ID,B.QUARTER_SHORT,B.QUARTER_NUM_OF_YEAR,
    B.QUARTER_NUM_OF_MONTH,B.HALF_NUM_OF_YEAR,B.HALF_OF_YEAR_ID,B.YEAR_ID
    FROM
    (SELECT MONTH_ID,MONTH_SHORT_DESC,MONTH_LONG_DESC,MONTH_SHORT,MONTH_LONG,MONTH_NUM_OF_YEAR,QUARTER_ID,QUARTER_SHORT,QUARTER_NUM_OF_YEAR,
    QUARTER_NUM_OF_MONTH,HALF_NUM_OF_YEAR,HALF_OF_YEAR_ID,YEAR_ID FROM W_DAY_D
    GROUP BY MONTH_ID,MONTH_SHORT_DESC,MONTH_LONG_DESC,MONTH_SHORT,MONTH_LONG,MONTH_NUM_OF_YEAR,QUARTER_ID,QUARTER_SHORT,QUARTER_NUM_OF_YEAR,
    QUARTER_NUM_OF_MONTH,HALF_NUM_OF_YEAR,HALF_OF_YEAR_ID,YEAR_ID
    ORDER BY YEAR_ID,MONTH_NUM_OF_YEAR) B
    Please help on this asap. Its really urgent requirement..
    Thanks in Advance.
    Raghu Nagadasari

    messDate.setGregorianChange(theResult..getDate(2)); //I GET ABSOLUTELY NO DATE HERE
    This doesn't do what you think it does. Check the API documentation.
    http://java.sun.com/j2se/1.4.1/docs/api/java/util/GregorianCalendar.html
    Try this instead:
    messDate.setTime(theResult.getDate(2));

  • RMAN Script & RMAN Configuration

    Dear All,
    This is the first time i am using RMAN. i just wanted to execute the following RMAN script for a testing purpose, for this what are the RMAN configuration i must have to do before executing this script below:
    RMAN> run {
    shutdown immediate;
    startup mount;
    backup database;
    alter database open;
    }This is my current setup of RMAN
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name DP are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'E:\RMAN\';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'E:\APP\10004\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFDP.ORA'; # defaultKindly advice me and give me a very clear study for this above parameters
    Regards
    HAMEED
    Once i execute that script i got this following error :
    +RMAN> run {+
    +2> shutdown immediate;+
    +3> startup mount;+
    +4> backup database;+
    +5> alter database open;+
    +6> };+
    database closed
    database dismounted
    Oracle instance shut down
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area     770019328 bytes
    Fixed Size                     1374780 bytes
    Variable Size                301991364 bytes
    Database Buffers             461373440 bytes
    Redo Buffers                   5279744 bytes
    Starting backup at 18-MAY-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=134 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00006 name=E:\APP\10004\ORADATA\DP\HAMEED01.DBF
    input datafile file number=00007 name=E:\APP\10004\ORADATA\DP\ABDUL01.DBF
    input datafile file number=00008 name=E:\APP\10004\ORADATA\DP\TEST01.DBF
    input datafile file number=00001 name=E:\APP\10004\ORADATA\DP\SYSTEM01.DBF
    input datafile file number=00002 name=E:\APP\10004\ORADATA\DP\SYSAUX01.DBF
    input datafile file number=00005 name=E:\APP\10004\ORADATA\DP\EXAMPLE01.DBF
    input datafile file number=00003 name=E:\APP\10004\ORADATA\DP\UNDOTBS01.DBF
    input datafile file number=00004 name=E:\APP\10004\ORADATA\DP\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 18-MAY-11
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 05/18/2011 17:22:30
    ORA-19504: failed to create file "E:\RMAN\"
    ORA-27038: created file already exists
    OSD-04010: <create> option specified, file already exists
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    Edited by: Hameed on May 18, 2011 4:59 AM

    Dear Chinar, can you please varify this below ,, is it correct,, after given your setup i ran this script,,,
    Kindly advice me
    Regards
    HAMEED
    RMAN> run
    2> {
    3> backup current controlfile;
    4> }
    Starting backup at 18-MAY-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=143 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 18-MAY-11
    channel ORA_DISK_1: finished piece 1 at 18-MAY-11
    piece handle=E:\RMAN\FULL_06MCLH66_1_1.BK tag=TAG20110518T180910 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 18-MAY-11
    Starting Control File Autobackup at 18-MAY-11
    piece handle=E:\RMAN\CFC-796596855-20110518-00 comment=NONE
    Finished Control File Autobackup at 18-MAY-11Edited by: Hameed on May 18, 2011 5:55 AM

  • It is possible to have a dynamic Oracle Label Security procedure/script to configure data label (compartments and data label)  for multiple rows at same time?

    A single script which can be run below mentioned commands...  instead of using multiple manual steps for configuring data labels. Is that possible and how? Having bulk of data where OLS need to be applied.
    exec LBACSYS.SA_COMPONENTS.CREATE_COMPARTMENT
    exec SA_LABEL_ADMIN.CREATE_LABEL
    exec SA_POLICY_ADMIN.APPLY_TABLE_POLICY

    Have you ever answered this question? If not, have you tried to use the "HIDE" property on your table_options?

Maybe you are looking for