Can't fine WebServer configuration MBean using WLST

I am trying to script the various log attributes (for access.log) on the weblogic.management.configuration.WebServerMBean
using WLST. I have done the same before with wlshell. However I am having a problem
finding that mbean use the WLST directory concept. I would presume it would be
in <domain>/config/Servers/<server-name>/WebServer/<server-name>
but all that is under that dir is WebDeployment.
Can you share with me where I would find that MBean?
Also, in the above directory path example, isn't <server-name> appearing twice
a little redudant? If I have already navigated to Servers/<server-name> why should
I need to navigate thru the <server-name> again when accessing other MBean beneath
this directory?
Thanks. I really think WLST is a great tool with tons of promise. We have automated
the whole domain creation and managed server/cluster config with one script!

Darryl Stoflet wrote:
I am trying to script the various log attributes (for access.log) on the weblogic.management.configuration.WebServerMBean
using WLST. I have done the same before with wlshell. However I am having a problem
finding that mbean use the WLST directory concept. I would presume it would be
in <domain>/config/Servers/<server-name>/WebServer/<server-name>
but all that is under that dir is WebDeployment.
Can you share with me where I would find that MBean?
Also, in the above directory path example, isn't <server-name> appearing twice
a little redudant? If I have already navigated to Servers/<server-name> why should
I need to navigate thru the <server-name> again when accessing other MBean beneath
this directory?All the MBeans as you may have already noticed are arranged in a
hiearchical fashion, as you see in config.xml. So for example you have,
Domain - <domain-name>
     |_ Servers
          |_ myserver
               |_ COM
               | |_ myserver -No Contained MBeans/children
               |_ Log
               | |_ myserver - No Contained MBeans/children
               |
               |_ WebServer
                    |_ myserver
                         |_WebDeployment
                              |_ myWebDeployment
As you can see when you are at the domain level and do a ls(), by
default you will see the children MBean types under the Domain MBean
instance. If you specify ls('a'), this will show the attribute names and
values for the domain mbean instance. So, 'Servers' is a child of Domain
MBeean and when you cd to 'Servers' and do a ls() it will show the
available mbean instance names under Servers. You will cd to any
instance, in this case 'myserver'. After cd'ing to myserver when you do
a ls() you will see the child MBean types for the Server Instance and
ls('a') shows the attributes and values for the mbean instance.
Now cd to WebServer, and when you do a ls() it shows the instance names
of WebServer and since there is only one instance it shows 'myserver'
which is the name of the WebServerMBean instance. When you cd to this
instance and do a ls(), it shows the children of this mBean which is
WebDeploymentMBean.
Hope this helped explain the confusion.. :-).
Let me know if you have any questions.
Thanls,
-satya
>
Thanks. I really think WLST is a great tool with tons of promise. We have automated
the whole domain creation and managed server/cluster config with one script!

Similar Messages

  • Creating Configuration MBean using RemoteMBeanServer

    Hi
    I'm trying to create a configuration MBean using the RemoteMBeanServer. More precisely, I get a reference to the RemoteMBeanServer using the MBeanHome.
    Then I use the standard createMBean method of the javax.management.MBeanServer to create a Configuration MBean. In my case it is a JDBCConnectionPoolMBean.
    However, when I try to run this from lets say a webapp, it throws a quote: "javax.management.NotCompliantMBeanException: The MBean must be have a concrete class"
    I know I can use the MBeanHome to create ConfigurationMBeans but for sake of reuse I'd like to use the MBeanServer's interface. I can use the MBeanHome to get the RemoteMBeanServer, but I don't want to use the MBeanHome interface for MBean management.
    I can lookup/query the Configuration MBeans using the generic MBeanServer but I'm not able to create any.
    The core of the code is something like this:
    ObjectName oname = new ObjectName("devel:Name=testPool,Type=JDBCConnectionPool");
    ObjectInstance oi = mbeanServer.createMBean(
    "weblogic.management.configuration.JDBCConnectionPoolMBean" oname );
    where mbeanServer is a reference to a javax.management.MBeanServer retrieved from MBeanHome
    How can I do this then? Do I have to use one of the other overloaded createMBean methods? different name?
    Hope someone can help.

    Hi PunisheerII,
    Would you please post more information about this issue?
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support

  • Configuring Credential mapper using WLST script

    Is it possible to use a wlst script to define a new credential mapper.i.e.to [perform the following steps:
    Check Use cross-domain protocol.
    And then fill in the the values of the attributes which follow like remote host remote user and remote password.
    I tried using the wlst recording for the same.However got the following message.
    A security change to a role, policy, user, group or credential mapping was made, but this change was not recorded.
    I was wondering if we can access the security MBeans using WLST.
    Please advise.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    It is possible if you export the properties with:
    connect(url='t3://localhost:7001',adminServerName='AdminServer',timeout=60000)
    serverConfig()
    cd('/')
    currentDomainName=cmo.getName()
    cd('serverConfig:/SecurityConfiguration/' + currentDomainName + '/Realms/myrealm/CredentialMappers/DefaultCredentialMapper')
    prop=Properties()
    cmo.exportData('DefaultCreds','/tmp/credentialmapper_properties.txt',prop)Edit them, then import them with:
    cmo.importData('DefaultCreds','/tmp/credentialmapper_properties.txt',prop)You can list the Credential Mapper configuration with:
    connect(url='t3://localhost:7441',adminServerName='AdminServer',timeout=60000)
    serverConfig()
    cd('/')
    currentDomainName=cmo.getName()
    cd('serverConfig:/SecurityConfiguration/' + currentDomainName + '/Realms/myrealm/CredentialMappers/DefaultCredentialMapper')
    cursor=cmo.listMappingsByPattern('*',10)
    while cmo.haveCurrent(cursor):
        # A resource ID looks like:  'type=<remote>, protocol=cross-domain-protocol, remoteHost=testDomain'
        current_mapping_resource_id=cmo.getCurrentMappingResourceID(cursor)  
        cmo.getRemoteUserName(current_mapping_resource_id,'cross-domain')
        cmo.advance(cursor)
    cmo.close(cursor)See also: [url http://download.oracle.com/docs/cd/E12839_01/web.1111/e13707/security_data_migration.htm]Securing WebLogic Server 11g Release 1 (10.3.1) - Migrating Security Data
    Edited by: Mircea Vutcovici on Jun 22, 2011 3:49 PM

  • How can I configuration MBean in weblogic server  using the console ?

    How can I configuration MBean in weblogic server using the console ?
    I hear people talking about mbeans in weblogic server I have look in the console I can not find where , or how to do it.
    can some body explain that or a link that explain it, how to do it on the console ?

    Hi,
    Registering Custom MBeans from Admin Console is not yet possible. But yes there are ways to Configure and Utilize Custom MBeans ...
    http://weblogic-wonders.com/weblogic/2010/02/16/registering-and-invoking-custommbeans/
    Thanks
    Jay SenSharma

  • Updating an ALSB configuration using WLST

    I've been using the AquaLogic Service Bus Deployment API (http://e-docs.bea.com/alsb/docs21/deploy/config_appx.html) to export and import an ALSB configuration from my development environment to the test environment. When the system is going to production I want the WLST-scripts to be a part of the installation scripts.
    It looks like the import features of ALSB is designed to append and overwrite the imported configuration. Configuration elements that does not exist in the imported configuration will not be deleted from the target configuration. This will, over time, cause the production environment to end up as an enormous garbage can if nobody goes in and cleans it from time to time.
    We have as requirements that all installation must be done automatically (untouched by humans), so my question is:
    <li>How can I ensure consistency between the configuration I deliver and the production environment?
    </li>
    The most obvious place to look for such an opportunity should be in the import utility. But, as far as I can see, there is no <i>replace configuration</i> option available for the DeploymentMBean.
    BEA develops MBeans for the most of the service components. So it should also exist MBeans that can be used to programmatically configure ALSB without using the DeploymentMBean. So, my second question is:
    <li>Does anyone know of an ALSB MBean that is capable to remove a project from the configuration?</li>

    Hi Helge,
    There is indeed an mbean to delete projects, however this mbean and its api is not publicly supported. In other words the api may change or be removed (in favor of another one) in the next release. There are plans to expose a slight variation of this api in the next release. If you cannot wait until then you can use the non-public api with the caveat that it may change, and use it at your own risk. You may need to recompile or rewrite your source code.
    The non-public api is:
    ALSBConfigMBean.deleteProject(String projectName)
    obtaining and using ALSBConfigMBean is similar to the usage of the public ALSBConfigurationMBean. You can obtain the name and the type of this mbean using ALSBConfigMBean.NAME|TYPE.

  • Using WLST to configure security in application deployments ?

    Hi,
    I would like to configure security (create roles and policies) in an application through WLST.
    I did not manage to find what MBeans are available for this, not how to navigate to them.
    Is it possible to configure security for an application (that is not in the domain or server realms, but as in the console from the security tab of a specific deployed application) through WLST ?
    Thanks for your help.
    Hugues

    Bengt,
    Configuring security policy via MBeans is not supported, console uses
    internal api to achieve that. Said that, I will see if I can do anything.
    Thanks,
    -satya
    Bengt Rodehav wrote:
    We use WLST to configure our servers. Unfortunately we haven't found out how to configure a security policy via WLST.
    In our case we need to define a security policy on our JMS queues. Presently we have to do this manually via the administration console. Can this be done with WLST?
    Bengt Rodehav

  • Why do we use WLST Scripting when things can be done manually??

    Hi experts ,
    It may be a stupid question ,
    why do we use WLST scripting for things like deleting Queue _ _ etc ,      which can be done manually (through console)Please help i am newbie in this technology

    In addition to the practical reasons which Barosa supplied, it is also a best practice for addtional reasons:
    <ul><li>removing human errors from typos, omissions, etc
    </li>
    <li>making certains tasks (domain creation, configuration, application deployments, etc) repeatable, especially ones with many steps
    </li>
    <li>tasks that are repeatable, once tested, have a high degree of confidence that they will be done exactly the same way next time with a script
    </li>
    </ul>
    There are many more, but hopefully this gives you an idea of the benefits.

  • Configuring the file T3 servives using WLST in WLS 10.3

    Hi,
    I am trying to use WLST to configure the File T3 services in Weblogic 10.3.
    I can do it using the console.
    Please find the link for configuring through console:
    http://edocs.bea.com/wls/docs103/ConsoleHelp/taskhelp/filet3/TargetFileT3Services.html
    Can some one help me in configuring it through WLST?

    Hi,
    did you try to record the console configuration?

  • Where can I read the proxy settings Firefox chose, when configured to use "Auto-detect proxy settings for this network"?

    I would like to set my system network proxy settings to those, Firefox chose. Firefox is configured to use "Auto-detect proxy settings for this network" and this works fine. How can I read out the settings Firefox chose, so I can adapt these system?

    Hello Richard,
    Download MozBackup and make a backup of your bookmarks and passwords. Uninstall firefox and remove ALL folders with the name "Firefox".
    Install Firefox and restore your bookmarks and passwords. Now you should have a fresh install so you have to make all settings again.

  • Configuring weblogic domain for IAM using WLST

    Hi All,
    i have to configure a weblogic domain using wlst(off-line).i am able to do this by using wls.jar template but that domain does not contain all the deployable component which is required for IAM ,IDM.
    I don't know how to set the configuration component which is required for IAM,IDM as asked configuration wizard aske when we use GUI mode and how to give the schema details.
    please give any idea how to configure a domain(for IAM,IDM) using WLST exactly same as GUI mode .
    thanks

    I'm not sure what is your problem, but there is no compatibility issue between CSS and Bind normally.
    The docuement you referenced only says, in the background section, that the DNS server itself needs to be configured so part of your domain is handled by the CSS.
    So, your dns server handles all request for your.domain but there is one NS entry forwarding request for www.your.domain to the CSS so the CSS can answer the dns request.
    The css is not able to handle all types of dns request (ie: email server ip address request) so you can configure a 'dns forwarder' on the css to forward the request to another dns server.
    See the following for dns forwarder config example
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_configuration_example09186a00801d3b52.shtml
    Regards,
    Gilles.
    Thanks for rating.

  • Can Oracle Access Manager (OAM) be used for configuring data-level access?

    Hi,
    Can OAM 10gR3 or 11g be used for configuring data-level access in PS 9.10 and OBI 11g.
    This would mean that data-level configuration are stored centrally within OAM database and PS 9.10 pulls these settings for its appropriate Row and ChartField security and OBI 11g queries OAM database tables to populate the initialization blocks during login.
    If you have configured this successfuly, please feel free to provide highlevel details/steps about the configuration and any complexities that can pre present.
    Thanks.

    I recently worked on an interesting implementation that utilized OAM configured against OID in which OAM was configured to control authentication/authorization and then all applications that were serviced by OAM utilized the users login to pass to the database at which point the Oracle database utilized VPD, which was configured against the same OID instance, to leverage user attributes/groups in order to configure fine-grained access control to data within the database. Not sure if this would work for you unless your requirements are similar but it worked very well for this particular implementation as it allowed them to have SSO for their own apps and for BI Publisher which then could pass allong the userid to be leveraged by the database to do fine grained access control.
    Edited by: oblix_fan on Jun 23, 2011 8:10 AM

  • I just put Facetime on my MacBook and Ipad. I can connect and recieve video but no sound. The other person can hear me. If I use Skype everything works fine. I can't find any where in Facetime to change settings for the audio. Any suggestions

    I just put Facetime on my MacBook and Ipad. I can connect and recieve video but no sound. The other person can hear me. If I use Skype everything works fine. I can't find any where in Facetime to change settings for the audio. Any suggestions

    Options for when an iOS device gets locked because of forgotten passcode:
    Restore (and reset passcode) on your device by connecting it to the last computer to which it was connected:
    iTunes: Backing up, updating, and restoring iOS software - http://support.apple.com/kb/HT1414
    If you cannot connect it to the computer to which the device was last connected (or the device was never connected to a computer) you will have to use recovery mode to completely reset the device, losing all data:
    iOS: Unable to update or restore - http://support.apple.com/kb/HT1808 - recovery mode (e.g., cannot connect to computer last used to sync device, iTunes still asks for a password)
    If recovery does not work there's:
    DFU mode: http://osxdaily.com/2010/12/04/ipad-dfu-mode/
    How to put iPod touch / iPhone into DFU mode - http://geekindisguise.wordpress.com/2009/07/16/how-to-put-ipod-touch-iphone-into -dfu-mode/

  • Can SSD which is configured for intel rapid start be used to store data files as a normal drive

    Can SSD which is configured for intel rapid start(No Smart Response) be used to store data files as a normal drive
    Lenovo ideapad u310 with 24 GB SSD Partition , only 4GB has been configured as Hibernate partition for Intel rapid start, rest of the 18.36 GB has been labelled as Healthy(Primary partition).Can this 18.36 GB of SSD be configured to store data files on it without affecting Intel rapid start.

    I think I have discovered the answer to my own question!
    I have disabled Adobe Reader plug-in, and can now see PDFs in Chrome.
    (Steps: Chrome Menu, Settings option, Click Advanced Settings link, then Content Settings button, then select Disable Individual Plug-Ins, and a list of plug-ins is offered to enable or disable).
    I then get a different result depending on whether or not Chrome PDF viewer is enabled - with it enabled I see the PDF document in Chrome, or with it disabled then the option is offered to download it, but either way I can get it it via Chrome without having to run Internet explorer in another browser window.

  • How can I configure ang use JNDI datasource on Tomcat 4.0.x ?

    How can I configure ang use JNDI datasource on Tomcat 4.0.x ?
    Please help me , Thanks !

    Hello ,
    You need to go through the JNDI tutorial which you can access at the sun's site. It will explain all the things you need.
    By the way all you want to use JNDI datasource is JNDI class library and some naming or directory service provider, which also you can download from sun.
    Good Luck.

  • When attempting to use Firefox with TOR I get "Firefox is configured to use a proxy server that can't be found."even though neither is configured to use a prox

    After installing TOR Browser Bundle 2.2.37-2, I get "Firefox is configured to use a proxy server that can't be found." even though neither is configured to use a proxy

    Hi,
    If the TOR Browser Bundle is installed you would have two versions of Firefox: the original Mozilla Firefox and the customized TOR Firefox. You can try to start the Firefox that was installed by TOR. If you have security software (antivirus, firewall etc.) installed, you can try deleting all existing instances of TOR and TOR Firefox and its related processes/files in all the different configuration areas/modules of the security software like process monitoring, sub/spawned process control, virtualization etc. in addition to the main AV/Firewall module. Instead create new fully allowed/trusted rules for TOR and TOR Firefox + its related processes. Even otherwise some security software may also ask again when TOR/TOR Firefox is started and you can try to allow/trust at that time. Please see [https://support.mozilla.org/en-US/kb/Firewalls this].
    [http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration]
    [https://blog.torproject.org/blog/new-tor-browser-bundles-20 Support]
    You can also try [https://www.mozilla.org/en-US/firefox/new/ updating the original Mozilla Firefox], set '''No Proxy''' in '''Tools''' ('''Alt '''+ '''T''') > '''Options '''> '''Advanced '''> '''Network '''> [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Settings] and check.

Maybe you are looking for

  • Unable to edit audio file in Logic Pro

    I am putting together some apple loop samples in LP 8, just some simple rhythm stuff- I have a sample that I want to edit in the sample editor window, but I get the message: "This audio file cannot be changed! Volume or file is locked" My editing cho

  • HP LaserJet P2015 Printing Envelopes from Bottom Tray

    Hi, Every month, I need to print approximately 100 to 150 envelopes with different addresses on them, and I can't stack that many on my HP LaserJet P2015's manual input tray. I can usually only fit about ten. I was wondering if it is possible to put

  • External hard drives and desktop

    Hi, and happy new year. I use several hard drives, Firewire 400 & 800 mostly, but query would apply to USB also. When i connect a drive it appears in a random position on my desktop ( I have a fairly cluttered desktop), is there any way to ensure tha

  • I-tunes folder doesn't appear

    I am trying to move files from old computer to the new one, and the problem is that when I get to the step where I open the i-pod in my browser, there IS no i-tunes folder. Calendars are there, and notes are there, and contacts... But no i-tunes. Wha

  • MBP owners: Recommend an external HD?

    So I've been convinced that an external HD, combined with my occasional CD-R burnings, is the best way to go for backups. What brand would you recommend? I'm looking for the best balance I can between cost and dependability/longevity. I have extremel