Wlst script to change values for Logging.

Hi,
i am trying to write a wlst script to change attributes for the following.( i am new to wlst scripting)
For all servers in a domain,
Logging --> General --> Check Limit number of retained files
--> Files to retain to different number.
--> Log file Severity Level
--> Standard out Severity Level
--> Demain log broadcaster Severity level
--> Memory Buffer Severity Level
Logging --> HTTP --> Check Limit number of retained files
--> Files to retain to different number.
I was able to figure out the path for some of the attributes in Logging --> General.
wls:/wl9xdomain/serverConfig/Servers/AdminServer/Log/AdminServer>
wls:/wl9xdomain/serverConfig/Servers/AdminServer/Log/ManagedServer1>
Can you help in finding the paths for above attributes.
And this is the sample script i wrote, and succeded in changing "Files to retain to different number" in Logging --> General.
connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
cd('/Servers/AdminServer/Log/AdminServer')
set('FileCount',10)
validate()
save()
activate()
disconnect()
exit()
Thanks,
Krishna.
Edited by: user2656687 on Apr 15, 2009 4:46 PM

Thanks for the response. I was able to figure out that access.log file attributes are in /Servers/AdminServer/WebServer/AdminServer/WebServerLog/AdminServer.
And now i trying change script to apply for all the servers.
when i use for loop it is failing. any thougts on it. may i know the syntax in this case..
connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
cd('/Servers/AdminServer/Log/AdminServer')
cmo.setNumberOfFilesLimited(true)
cmo.setFileCount(100)
cmo.setDomainLogBroadcastSeverity('Warning')
cmo.setMemoryBufferSeverity('Warning')
cmo.setLogFileSeverity('Warning')
cmo.setStdoutSeverity('Warning')
cd('/Servers/AdminServer/WebServer/AdminServer/WebServerLog/AdminServer')
cmo.setNumberOfFilesLimited(true)
cmo.setFileCount(100)
save()
activate()
Thanks,
Krishna.

Similar Messages

  • How do you change values after logging data to the citadel database (DSC)?

    How would one go about changing values that already exist in the citadel database.  So say I were logging a numeric value with a timestamp for 1 year and then wanted to change a few values for the month of June because my sensor wasn't working at that time.  How could I do this?  Is it possible without re-creating the whole database over?
    Thanks
    Matt

    mattyk wrote:
    Hey Ben,
    Thanks for the quick response.  I called NI and asked about this because this would be a big show stopper for me.  Their applications engineer said that the best way to change previous data would be to read in the trace that you want to change, modify it and save it as a new trace.  I am also looking into SQL querying.  I was able to connect to the citadel database by setting up a ODBC data source and using the database connectivity toolkit to query the database.  This worked.  Now I am trying to come up with a statement in SQL to change previously saved data.  I'll Keep you posted.
    Thanks
    Matt
    That reinforces my suspicions.
    I have an app running for about 8 years now that keeps a paper trail to enusr ethe cartdiges used in respirators (operated NIOSH National Institute of Occupational Safety and Health par teh CDC) that use DSC to enusre nobody can ever falsify those records. If they can be hacked I my customer and anyone using a respirator with a NIOSH sticker on the side of it, want to know.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Changing value for open_cursors

    Dear All,
    I have changed the value for this parameter in a customized init.ora file which I give during the startup of the Database like this :
    startup open pfile=/software/initkbdev.ora
    I want to change the value for this permanently in the database.
    When I give the following command :
    startup open
    the value goes back to the previous one.
    How to make this change permanent ?
    How should I solve this ?
    Thanks in advance.
    Regds..Ramakrishnan

    Hi,
    If you startup your database with the right init.ora file, the open_cursor value in v$parameter can't "go back to his previous value".
    Check if you modify the right init.ora file.
    Fred

  • Script to change Volume for TimeMachine?

    Hello,
    could anyone help me with a script that changes the volume for use with Time Machine?
    My parents are using their laptops about half the time at home with a Time Capsule. The other half, they stay at the office, equipped with a second Time Capsule which is used for all the other Macs at the office.
    We are using MarcoPolo (http://www.apple.com/downloads/macosx/networking_security/marcopolo.html) to change printer settings and other things.
    MarcoPolo is also able to perform own scripts. I want to use this feature, to allow Time Machine to back up to both Time Machines automatically without switching the TM volume manually in the system prefs.
    But I don't have any experience in scripting, so I really would appreciate your help.
    Greetings,
    Michael

    there is no nice way to do this. this operation is not scriptable. the best you can do is use GUI scripting which essentially records what you do on the screen. this can be done with automator. see this thread for details.
    http://discussions.apple.com/thread.jspa?messageID=8287777&#8287777
    However, any kind of script like that is bound not to be very reliable as a user can easily accidentally interfere with it while the script is running.

  • Changing values for EEO Questionnaire Information Fields in E-Recruiting

    We are implementing E-Recruiting 6.0.  I have changed entries for EEO values for Race Category via the IMG SAP E-Recruiting>Recruitment>Applicant Tracking>Questionnaires>Equal Employment Opportunities-->Assign Values to Information Fields.  When I attempt to create an EEO questionnaire using the new values, the old values are retained.  I have been able to determine that when an EEO questionnaire is created entries are created in the T77RCF_MBO_ATTR table linking the values with a VC object, but I haven't been able to figure out if there is a way to clear out/fix the entries in that table.
    Any assistance with this problem would be appreciated.

    Hello Cornelia, Hello Roman,
    first of all: thank you for your very fast reply. I tried to delete the cache as mentioned above and invested some hours in investigation. Your answers gave me some new searchwords and it looks like I found the solution.
    I found note 830251 where SAP said, that there is a difference between old and new way of implementing Corporate Desing to BSP-Applications.
    The old method is the one I mentioned above, but this works only as long as SAP_BW 3.5 SP04 is not in the system. After SAP_BW 3.5 SP04  is used, there is a new way to change the design of BSP-Applications.
    Here is the link to the note:
    https://service.sap.com/sap/support/notes/830251
    I will try it and - for the case somebody else will ever have the same problem - post the results.
    Once again thank you for your great help
    Kind regards
    Michael

  • Change values for report parameters

    Post Author: Galen Chen
    CA Forum: .NET
    Hi All,
    I am trying to set the values for the report paramenters which are datetime type. But when I tried to set like
    .SingleValue.Value = Now()
    I got "One or more arguments are invalid.".
    If anybody know what this means, please help. Thanks
    regards
    Galen

    Post Author: quafto
    CA Forum: .NET
    Check out the samples published here http://support.businessobjects.com/communityCS/FilesAndUpdates/sample_applications_for_.NET_developers.pdf.asp?recDnlReq=Record&dnlPath=sample_applications_for_.NET_developers.pdf.
    Or review the documentation on the Developer Zone on passing parameters, http://devlibrary.businessobjects.com/. I don't know of any property called "SingleValue" in the .NET SDK so I'm not sure where you got your code from.

  • WLST script to change Endpoint URI

    Is it possible to change endpoint URI using WLST. If yes please provide the sample script for this. It is very urgent to implement in my project.
    Regards
    James

    Refer this page for simple java program to change the env variables. http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html (Changing environment values Section) . Sample example explained to change the File URI

  • Need a script to change value in the Local Hostname

    Help! Want to change the Local Hostname because DynamicDNS has mess up 250 machines. Any ideas???????
    I need a UNIX script to to change the Value of
    /library/preference/SystemConfiguration/preferences.plist
    <key>LocalHostName</key>
    <string>Value</string>
    in Apple Remote Desktop.
    I think you use the grep command
    G5 Mac OS X (10.4.6) Mac OS X 10.3.9

    Hi CIO,
       Perl will perform the moving of files for you for free but otherwise, awk is completely up to the task and to my thinking easier to use. This assumes that the property list is text which isn't a good assumption. If the property list is binary, you would need plutil to convert it. Anyway, here's my script:
    cat /Library/Preferences/SystemConfiguration/preferences.plist | awk '{ if ( $0 ~ /<key>LocalHostName<\/key>/ ) { print; getline; sub(/<string>[^>*<\/string>/,"<string>New Value</string>"); print } else { print } }' > temp.plist
    mv /Library/Preferences/SystemConfiguration/preferences.plist .
    mv temp.plist /Library/Preferences/SystemConfiguration/preferences.plist
    The "mv" lines above will doubtless require superuser privileges.
    Gary
    ~~~~
       teamwork, n.:
          Having someone to blame.

  • How to change URL for "Log Out" link in CE?

    We need the Communications Express "Log Out" link to go to a different page to the usual log in page. How can I change this?
    I've found the logout function in the uwc/common/Header.jsp file which looks like:
    function logout() {
      url = "<%= getLogoutURL(request) %>";
      top.window.location = url;
    }and I've found the getLogoutURL fuction in the uwc/js/resourceBundleUtils.js file which looks like:
      public String getLogoutURL(HttpServletRequest request)
        return UWCApplicationHelper.getLogoutURL(request);
      }But I can't find where the URL is actually configured.
    any help would be much appreciated.
    Edited by: brett_ac on Jun 30, 2009 5:05 PM

    brett_ac wrote:
    We need the Communications Express "Log Out" link to go to a different page to the usual log in page. How can I change this?
    I've found the logout function in the uwc/common/Header.jsp file which looks like:
    function logout() {
    url = "<%= getLogoutURL(request) %>";
    top.window.location = url;
    You got it in one. If you wanted the logout button to redirect to google you would set:
    function logout() {
       url = "http://google.com/";
       top.window.location = url;Then restart the web-container.
    and I've found the getLogoutURL fuction in the uwc/js/resourceBundleUtils.js file which looks like:
      public String getLogoutURL(HttpServletRequest request)
    return UWCApplicationHelper.getLogoutURL(request);
    }But I can't find where the URL is actually configured.UWCApplicationHelper is in inbuilt java class. The UWCApplicationHelper.getLogoutURL java function returns:
    <current URL context>/base/UWCMain?op=logoutSo for example if UWC is deployed to http://myserver.domain.com/uwc you would get a logout URL of:
    http://myserver.domain.com/uwc/base/UWCMain?op=logoutRegards,
    Shane.

  • Change setings for logged clips?

    Hello-
    I've just logged a ton of footage but have just now realized that I've logged all of my clips with 16 tracks of audio, when I only need 2. This a problem because if I capture with 16 tracks of audio, my capture will stutter and drop frames.
    How do I change the audio settings of logged, un-digitized clips in my bin?
    Thanks,
    Jason

    Figured it out:
    1) Change my capture settings to what I wanted (1V, 2A)
    2) Select the bin I want to capture
    3) Right click, select "Batch Capture"
    4) In Batch Capture Window, UN-check the box for "Use logged clip settings"
    5) FCP will then capture at whatever your current settings are
    Thanks!
    Jason

  • Script to change language for all  style lables in one click

    Hello,
    We are a dutch pre press company and often we get (English or French or German) books that are translated into Dutch. And often the copublisher has created documents with 80+ stylelables. It is quite a pain to change all stylelables one by one into Dutch (for dictionary and correct hypenation). Quark has an option to save a document as multi language or singe language. With the last option the programme asks for the desired language and all stylelables are immediately changed to (in my case) Dutch. That works great. Maybe someone out there has a script to achive the same in Indesign (5 or 5.5?) Thanks in advance!
    kind regards
    Peter

    Hi Selva,
    I have been trying for a long time to change the paragraph composer of all paragraph styles in a document, say from Adobe Paragraph composer to Adobe single-line composer. Nothing goes. Do you know how I can do that? I work with the french version and the composers are named: Compositeur de paragraphe Adobe and Compositeur ligne simple Adobe. The following works for a paragraph style if i refer explicitely to its name. But then, I don't gain much. So I want to find a way to change ALL paragraph styles at once. Your help would be great.
    var myDoc = app.activeDocument;
    var myPstyle = myDoc.paragraphStyles.item("Indents");
    myPstyle.composer = "Compositeur ligne simple Adobe";
    Thanks in advance.
    Diane

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

  • Jdeveloper 11.1.1.5 - how to change path for log file for Disk quoto exceed

    I am trying to deploy to my jdev integrated webserver and am getting Disk quoto exceeded error.
    How do I change the path so it goes to /scratch/<user>/ ... or something other than /home/<user>
    <Jul 7, 2011 1:53:01 PM PDT> <Notice> <Log Management> <BEA-170019> <The server log file /home/<user>/.jdeveloper/system11.1.1.5.37.60.13/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log is opened. All server side log events will be written to this file.>
    Handler: '/home/<user>/.jdeveloper/system11.1.1.5.37.60.13/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log' raised exception when flushing.
    Caused By: weblogic.store.PersistentStoreFatalException: java.io.IOException: Error syncing file, Disk quota exceeded, errno=122
    #### Cannot run application TravelRequestApplication due to error deploying to IntegratedWebLogicServer.

    Set the USER Home directory as explained here:
    http://download.oracle.com/docs/cd/E21764_01/install.1111/e13666/ojdig.htm#BDCJCHDF

  • Changed value for Dom0 but xl does not reflect changed value

    Hi.
    I have updated Dom0 default value to 4096M in /boot/grub/grub.conf. However it only display a value of 2994M when I do a xl list after rebooting the host.
    I have installed OVMS 3.1.1 on a Dell M620.
    Any help is welcome.
    Thanks.

    Same here. I've been intending to open an SR about it an never have. I don't know what difference it actually makes but the documentation does recommend you do it and it doesn't reflect that its been changed.

  • Smartview 11.1.2.5- Cannot change value in Text-List Dropdowns- Excel Crashes

    Using latest/greatest Smartview with 64-bit Office and Windows 7.  I have a native essbase app utilizing text-lists. I am trying to update text-value through smartview. Smartview automatically produces a drop down to select a value from the linked text-list. However- as soon as a different value is entered or selcted in this cell with the drop-down list- Excel crashs. I have reproduced this consistently everytime. I have no way to change values for text-measure accounts linked to text-lists. I feel this is and incompatabiliyt issue with office 64-bit.  

    SmartView using the forms. It appears this issue has been logged as issue number 6566082 as seen here: http://docs.oracle.com/cd/E17236_01/epm.1112/readme/sv_1112200_readme.html
    But I can't seem to find out where I can get information on the status of this issue and whether it's been patched in future versions.

Maybe you are looking for