Bulk changes to Common Resource Parameters

Hi,
I need to make changes to many disks and file server resources at once in my cluster.
The settings I need to change are in the common properties for resources:
http://msdn.microsoft.com/en-us/library/aa372230(v=vs.85).aspx
RestartPeriod
RestartThreshold
SeperateMonitor
but when I use this:
get-clusterresource "cluster disk 104" | get-clusterparameter
All I get are private properties about the disk. I don't understand how I can bulk change the parameters on the disks or file servers in powershell for common parameters. Does the set-clusterparameter still work for these even though they are not displayed?
I really do not want to do this manually in the GUI.
Just to clarify, I wanted something like this:
get-clustergroup "Group 1" | get-clusterResource | Where {$_.ResourceType -like "Physical Disk"} | set-clusterparameter -name RestartPeriod -value xxxxx
But I am not sure this will work as if I use "Get" I do not see that particular common parameter listed
Thanks

I managed to work this out. It was so easy in the end I was kicking myself.
Lets say you want to change all DFSR resources that are set to failover if they fail:
$NeedFixed = get-clusterresource | Where {($_.ResourceType -like "DFS Replicated folder") -and ($_.RestartAction -eq 2)}
Foreach ($Resource in $NeedFixed) {$Resource.RestartAction = 1}
or for disks you want to change some settings:
$GroupDisks = get-clustergroup | Where {$_.Name -like "Groupname"}| get-clusterresource | Where {($_.ResourceType -like "Physical Disk")}
Foreach ($Disk in $groupDisks) {$Disk.RestartAction = 1; $Disk.RestartPeriod = 1800000; $Disk.RestartThreshold = 10 }
Thanks

Similar Messages

  • Another controversy: Where to store common application parameters?

    For higher flexibility, application parameters are usually set. For intranet applications, I used to store these parameters with my Oracle database. Now I'm developing a web-based internet applications, would you please advise for the following questions:
    1) The place to store common application parameters (How to set and how to retrieve?)
    (Currently, I have put such application parameters into a class file. Although it should be faster than retrieval from database, it means that I need to re-compile in case of any changes are made for those parameters. Can I set up some global constant for my application with my JDeveloper? How to set and how to retrieve?).
    2) The place to store the application configuration and application package string
    (As you see, if you have many Jsp page, it's not convenient to change the <jbo:ApplicationModule ... Configuration="MyConfig"... /> all the time. It may be better if it could be generalized by a variable. I have found the configuration in the "web.xml" file, but i don't know how to retrieve the value from it. Currently, I have made use of my old approach mentioned in Question 1 - place the configuration string in a common class ... the drawback has already been mentioned as above ... any better solutions?)
    Thanks for replying!

    Curt,
    To create an AM using the definition in the cpx file:
       JUApplication app = JUMetaObjectManager.createApplicationObject("Project2.am");
       ApplicationModule am = app.getApplicationModule();.
    This is the same call used by JClient application.
    Here is the story with BC4J runtime params:
    jbo.default.language
    This parameter is used in localization.
    jbo.default.country
    This parameter is used in localization.
    DeployPlatform
    The platform on which the business components are deployed:
    LOCAL - The web module of Oracle 9iAS
    EJB_IAS - The EJB module or Oracle 9iAS
    VB - A VisiBroker CORBA server
    WLS - a WebLogic application server
    Connection Mode
    For business components deployed to VisiBroker, the connection
    mode used:
    1 - colocate mode
    2 - remote mode
    3 - IOR mode
    4 - bind mode
    For more information, see the VisiBroker documentation.
    HostName
    For all deployment platforms except LOCAL, the name of the
    application server hosting the business components.
    ConnectionPort
    For all deployment platforms except LOCAL, the port of the
    application server hosting the business components.
    ApplicationPath
    For all deployment platforms except LOCAL, the JNDI path to the
    business components.
    java.naming.security.principal
    For all deployment platforms except LOCAL, the username for the
    IIOP connection to the business components.
    jbo.use.pers.coll
    Setting this to true enables view row spillover. If you are working
    with large rowsets and memory is a problem, this property should be
    true. For more information, see the Oracle JDeveloper documentation.
    jbo.pers.max.rows.per.node
    The maximum size of a node for view row spillover.
    jbo.pers.max.active.nodes
    The maximum number of nodes that will be cached in memory for view
    row spillover.
    jbo.fetch.mode
    AS.NEEDED causes view objects to only fetch rows when they are
    requested. ALL causes them to fetch the entire results of their
    queries.
    MetaObjectContextFactory
    The default value uses the business components framework's
    MetaObjectContext Factory, which stores business components metadata
    in XML. If you want to use a different format for business components
    metadata, you can implement your own MetaObjectContext Factory.
    IsLazyLoadingTrue
    For all deployment platofrms except LOCAL, setting this property to
    true will cause business componetns metadata to be loaded into memory
    only as needed, whereas setting it to false will cause all metadata
    to be loaded into memory immediately. Lazy loading is mandatory in
    LOCAL mode.
    Factory-Substitution-List
    The list of business components to substitute out. See the Oracle
    JDeveloper documentation for more information on substituting
    business components.
    jbo.project
    The project containing business components to be substituted for old
    ones, if Factory-Substitution-List is not empty.
    jbo.max.cursors
    The maximum number of cursors the business components may have open.
    The framework will clean up free JDBC statements as the number of
    cursors approaches this number.
    do.failover
    This property is true if application module failover is enabled.
    Setting this property to false provides better performance at the
    expense of reliability.
    jbo.doconnectionpooling
    This property is true if application modules are allowed to share
    connections. For more information about connection pooling, see the
    Oracle JDeveloper documentation.
    jbo.recyclethreshold
    The recycle threshold for application module pooling. When the number
    of application modules in the pool reaches this level, the pool
    begins to recycle application modules in stateful mode. Monitoring
    the application module pool statistics may help you decide on a good
    value for this field.
    jbo.ampool.highwatermark
    The maximum number of application modules allowed in the pool. If
    this high-water mark is reached, clients must wait for the next
    available application module.
    jbo.ampool.resetnontransactionalstate
    If this property is false, application modules will preserve their
    non-transactional state (properties and dynamically added view
    object, view link, and nested application module members) even when
    they are checked in in stateless mode. If the property is true,
    non-transactional state will be reset.
    jbo.ampool.sessioncookiefactoryclass
    This class creates the session cookies that allow clients to retrieve
    application modules in stateful mode. Change this value only if you
    need to implement your own custom session cookie factory. See the
    Oracle JDeveloper documentation for more information.
    jbo.ampool.connectionstrategyclass
    This class manages the connection strategy for the application module
    pool. Change this value only if you need to implement your own custom
    connection strategy. See the Oracle JDeveloper documentation for
    more information.
    jbo.passivationstore
    When an application module is released in stateful mode, its state is
    saved when the application module is recycled (or immediately if
    failover is enabled). If this property is 'null' or 'database', the
    state is saved to the database. If the property is 'file', the state
    is saved to a local file.
    RELEASE_MODE
    The release mode--Stateless, Stateful, or Reserved--used by data web
    beans. Other clients specify their own release mode.
    jbo.maxpoolcookieage
    The maximum age of the browser cookies used to help clients retrieve
    stateful application modules. If these cookies do not time out, the
    value is -1.
    PoolClassName
    The class that implements the application module pool. Do not change
    this value unless you are using a custom application module pool
    implementation. For more information, see the Oracle JDeveloper
    documentation.
    jbo.maxpoolsize
    The maximum size of the JDBC connection pool. If this number is
    exceeded, an application module will have to wait for a connection if
    none is available.
    jbo.initpoolsize
    The number of JDBC connections automatically created in the
    connection pool, before any requests.
    jbo.poolrequesttimeout
    The amount of time, in milliseconds, an application module will wait
    for an available connection before failing.
    jbo.assoc.consistent
    If this property is true, the entity rowsets retrieved through
    association accessors will include rows that have been added, even if
    these changes have not been posted to the database. This property can
    reduce performance and so should be turned off if not needed.
    jbo.viewlink.consistent
    If this property is true, the view object rowsets retrieved through
    view link accessors will include rows that have been added, even if
    these changes have not been posted to the database. This property can
    reduce performance and so should be turned off if not needed.
    jbo.SQLBuilder
    The SQL flavor generated by view objects:
    Oracle - for the Oracle8i or Oracle9i database
    OLite - for the Oracle Lite database
    SQL92 - for any SQL92-compliant database
    DB2 - IBM DB2 Universal Database
    jbo.ConnectionPoolManager
    The class that manges the connection pool. Do not change this value
    unless you are using a custom application module pool manager
    implementation. For more information, see the Oracle JDeveloper
    documentation.
    jbo.TypeMapEntries
    The type mappings used by business components:
    Oracle - for the Oracle8i or Oracle9i database
    OLite - for the Oracle Lite database
    SQL92 - for any SQL92-compliant database
    oracle.jbo.defineColumnLength
    If this is false, business components will not by default define
    column length for CHAR and VARCHAR2 columns. In general, this should
    only be set to false for NLS applications.
    jbo.tmpdir
    You can use this parameter to specify a directory for temporary files.
    jbo.server.internal-connection
    Specifies a connection to use when application module state is saved
    to the database. By default, the application module pool will use the
    application module's JDBC connection.
    SessionClass
    The class which implements the oracle.jbo.Session interface, used to
    load and store session context throughout a client's lifetime. By
    default, the framework uses oracle.jbo.server.SessionImpl. Do not
    change this value unless you have implemented a custom session
    implementation class.
    TransactionFactory
    The class responsible for creating database transactions. By default,
    the framework uses oracle.jbo.server.DatabaseTransactionFactory. Do
    not change this value unless you have implemented a custom
    transaction factory class.
    jbo.debugoutput
    If this property is set to 'console', debug information is displayed
    on the console. If the property is set to 'silent', debug information
    is not displayed.
    jbo.logging.show.timing
    Whether to show the time elapsed between debug calls.
    jbo.logging.show.function
    Whether to show the name of the method that triggered a debugger
    call. Setting this property to true will degrade performance.
    jbo.logging.show.level
    Show the trace level of debugger messages. The lower the trace level,
    the more important the message.
    jbo.logging.show.linecount
    Number the lines of debugger output.
    jbo.logging.trace.threshold
    Lower this number to display only the most important debugger
    messages; raise it to display a larger portion of debugger messages.
    jbo.jdbc.driver.verbose
    If this property is true, the JDBC driver will run in verbose mode.
    For more information, see the JDBC documentation.
    jbo.ejb.txn.timeout
    For EJB deployment configurations, the number of seconds after the
    last database access before the EJB transaction expires.
    jbo.ejb.txntype
    For EJB deployment configurations, the transaction type:
    global - use the JTA UserTransaction interface
    local - use straight JDBC
    jbo.xml.validation
    If true, the XML parser uses strict XML validation.
    Charles.

  • To whom it might interest - "bulk" changes to the apex repository

    For those who might be interested in methods for "bulk" changing the apex repository, especially for medium large applications, i wrote a few queries that may come in handy for common problems like :
    - "how to change template on all labels currently set to "Optional"?
    - "how to quickly delete a region with a given name from multiple pages in one shot?"
    - "how to check if there are items or buttons attached to a region?"
    and stuff like that...
    The list of queries that i initially supplied is supposed to grow in the future.
    Of course this kind of practice is absolutely unsupported, officially discouraged, so, use at your own risk.
    http://oraclequirks.blogspot.com/2008/10/some-examples-of-bulk-changes-to-apex.html
    Flavio
    http://oraclequirks.blogspot.com

    Hi Flavio
    Your post didn't appear to set session state anywhere, which tends to screw things up.
    ie. your objects "disappear" from your workspace and get reassigned to flow_id 0.
    I always do the following before any changes:
    declare
    l_flow_id number := 101; /** set to match application */
    l_company_id number := 1203342054321505; /** set to match application */
    l_user varchar2(30) := 'MARK'; /** set to match application */
    l_sgid number := wwv_flow.get_current_flow_sgid(l_flow_id,l_company_id);
    l_csize number := 12;
    begin
    -- set Apex context
    apex_application.g_user := l_user;
    wwv_flow.g_flow_id := l_flow_id;
    if l_sgid is not null then
    wwv_flow_api.set_security_group_id(p_security_group_id=&gt;l_sgid);
    else
    raise_application_error(-20000,'Security group ID not found - must fix before can continue.');
    end if;
    /*** now do your changes ***/
    end;

  • Common resources within EAR shared by multiple WARs

    I am designing a relatively small enterprise application using IBM WebSphere Express 5.1 (Lite version). The way the application is packaged, or atleast how I want to package it, is to have two WAR files packaged under the single EAR. One WAR file corresponds to a publicly accessible site, and the other WAR corresponds to a secure section of the site, to be accessed via HTTPs.
    A lot of images, text-based files like JavaScript, CSS and even JSPs (for header, footer, etc.) are common to both the WAR files. For maintenance reasons, I would like for these 'resource' files to be in a common area or in one of the WAR files, but also be referenced from the other WAR file.
    I would like to know what is the possible and best way to store these common resource files. Keeping two copies, one in each WAR file, is what I do not want to do.
    Can JSPs/servlets in one WAR file access JSP, HTML, CSS, JS, GIF, JPG, etc. in another WAR file? Is it recommended to maintain a third WAR file that contains only these resources, and is this even possible?
    I would really appreciate all responses, and thank you all for reading/responding to this post.
    --forum7                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    if the resource is in the classpath (as opposed to being in a disk path) then accessing it must be accessed with a '/' preceding the path.
    E.g. Runtime.getResourceAsStream("/some/class/path/file.gif"); will load the resource from a jar included in the classpath. To contrast Runtime.getResourceAsStream("this/is/a/someFile.gif"); will attempt to load the resource from disk.
    This may be the same with EAR/WAR files.
    (One problem may occurr when the /path/to/image.gif is interpreted by the server: it may try simply to access it as if the image url is from the server root...)
    Happy coding.
    --Xapp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to do (if possible) a bulk change of formats

    Is there a way I can create a bulk change of formats? That is to say, I have six pages multiple frames of text (and graphics) with all kinds of different fonts, points, colors, effects etc.
    I want to (as easily as possible) conduct a mass change where everything will be reformatted to (for example), Times new roman 12 point.
    I would imagine I could create a paragraph style sheet and then go touch all the text boxes one at a time, but I was hoping for one click (ha ha ) and it is done.
    Am I smoking funny stuff, or do I have to do it the old fashioned way. One text box at a time.
    Bob

    Bob,
    InDesign "remembers" which values to change if you change the Paragraph Style, courtesy of this simple rule: If it is the same number in the text as in the style, it gets changed. Otherwise, it must've been some sort of override, and it's preserved.
    Alt+clicking the paragraph style on your entire document resets
    i everything
    -- intended or not. Since that's what you wanted, no further problems. If you ever get into a spot where you
    i don't
    want to reset everything (because you manually fiddled), you can try this handy trick:
    * find out what the "wrong" size is -- the one you want to kill.
    * change the size in the paragraph style to the "wrong" size. Every paragraph with the style will get this applied. Exit the Paragraph Style options (so it will "take")
    * Re-visit the Paragraph Style options and put in the right size. All and only the size overrides will have disappeared; the rest of your overrides stay in place.
    This works with everything (as far as I'm concerned) you can change in Paragraph Styles, and as a matter of fact, also in Characters styles (and probably in Object styles and Table styles as well).

  • Bulk changing all websites from SSL to non-SSL (443 to 80)

    While I was cleaning up my Mountain Lion Server, I innocently updated some SSL server certificates.
    Shortly afterwards, I found that ALL my HTTP (80) sites didn't work. I went into the Server.app and found that ALL my sites were now using port 443, rather than the port 80 that they were running on.
    Since I have over 100 sites, I need to know how to BULK update them back by removing the certificate they were assigned when I updated that specific cert.
    How did I update the certificate? I was looking at the Alerts section of the Server.app, that told me that some were expiring. There was a Replace button and that's what I clicked. I was never warned that it would change ALL my sites from having NO certificate to the certification that I replaced.
    Any ideas on how to resolve this issue quickly, without having to open up EACH site and change the certification to NONE (and thus changing the port back to 80)?

    There's no bulk update via the GUI [1], which leaves shutting off Server.app and mass-editing the Apache data.
    For a bulk change of 443 to 80, something like this should get you started. 
    FWIW, Do also confirm whether the port 80 sites are still around in the configuration data, as some web browsers are now selecting 443 whenever that's available.
    [1] Yes, I'm probably ignoring scripting via AppleScript here.  If I have to script something, it'll be the Apache data and not the GUI, and using bash, Python or other such and likely not AppleScript.  Local preference.

  • Programatically changing the common plot types

    Hi,
    Is it possibe to programatically change the plot type.
    ie,selecting line/bar..
    Its possibe by right clicking the plot legend,taking common plot and selecting the appropriate one.
    But i want to include it as an option in my application.
    I saw the property node of the graph namely,plot.linestyle,plot.barplotstyle...will it work in the desired way?
    Thanks in advance

    l1k wrote:
    I understand user_1's confusion.  I don't see a way to change the 'common plot type' in the property menu.  All the other options are pretty obvious in the list of properties.  If I want to program for example that under certain conditions the plot is just a line, and other conditions the plot is a line with points, I don't see how to do this.  I can change thickness, line style, etc, but not the common plot type.  Is this property not in the 'Plot' menu of the Properties?  I'll keep looking...
    If you want to change the icons that show up in common plot styles: You can't!
    That are simply shortcuts put in by the LabVIEW programmers that combine a certain setting for plot style, point style, line style, line width, etc under one simple user selectable icon.
    If you want to change any of the settings of a particular plot however, you certainly can do that with property nodes.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to use common resource bundle across all the development components ?

    Hi,
    I am working on SAP NetWeaver Developer Studio - JAVA
    How to use common resource bundle across all the development components ?
    Description :
    I have a requirement of creating a resource bundle (resource.properties) and use that common resource bundle in all the development components.
    Can we create a  development component (war and ear both) and create only resource.properties in this development component( DC ) and create the dependency of the same DC  in all the other DCs ?
    Thanks,
    Neha

    Hello Neha 
    This question is more NWDS related.
    You may have a better chance of someone answering the thread under
    SAP Netweaver -> SAP NetWeaver Development Infrastructure (NWDI, formerly known as JDI) forum
    Thanks
    Kenny

  • Is there any way to change some of the parameters in hundreds of xml file

    Hi,
    We have got hundreds of xmls to run some of the batch scripts.I need to change some of the parameters in those xmls like USER,PASSWORD,SERVERetc.All the So I am doing them manually now by opening each of the xml script ,edit -> Find and Replace.But can anyone suggest me an easy way to update hundreds of xmls.

    In the past, I've written VBA code in Excel to open all the files in a directory, then search for the strings and replace them. The files are then written out to a new directory so I was able to keep the original versions. It's pretty easy using a few loops

  • How to edit IT Resource parameters??

    How to edit IT Resource parameters??
    When I go to the IT Resources type definition and open the IT resource, I see correct parameters. But when I open the same IT resource in IT resources tab, I see one parameter missing and another one duplicate.
    Can someone explain what is happening. This is really urgent .. please help!!

    The IT resource type is like a class definition while the IT resource is an instance of class.
    It is likely that the it resource instance that you see was defined using an old it resource type definition. Create a new instance and you should get the correct fields.
    Hope this helps
    /Martin

  • Why am I suddenly getting the following error message: "The specified location is reserved by the operating system and is not permitted. Please choose a different location." I've been recording all night and I haven't changed any of the parameters.

    Why am I suddenly getting the following error message: "The specified location is reserved by the operating system and is not permitted. Please choose a different location." I've been recording all night and I haven't changed any of the parameters.

    Hi Tom,
    Looks like we have problem here as we see another blank post from you here. It's probably something to do with your email. Let me send you a PM with my email address and we can communicate that way.
    Thanks,
    Kevin

  • IT Resource parameters through API

    Hi,
    does anybody know what API is used by provisioning processes to get IT Resource parameters (such as hostname, port, admin pass etc?)

    Hi...
    U can use the
    method -
    public Thor.API.tcResultSet getITResourceInstanceParameters(long plITResourceInstanceKey)
    from the Interface -
    tcITResourceInstanceOperationsIntf
    to fetch the IT resource instance parameters...
    rgds,
    Priya

  • Bulk Change UserID and Primary Email Address

    Hi All,
    We have just successfully completed Cutover Migration and imported in all users and mailboxes from our existing Exchange 2010 environment into Exchange Online. However we are now wanting to change all UserID and Primary Email Addresses to conform with a
    new username strategy. All accounts are currently Cloud Only and we do not have DirSync set up and are not planning to.
    Currently the username and email address for a user is in the format [email protected] We want this now to be [email protected] for both logging in and email address. We want to maintain the old Email address as a proxy address. How is this possible?
    There are about 500 users, so I need a quick way of doing this with a script?
    Regards,
    Timus

    You can connect to Exchange Online via the powershell console.
    To add an emailaddress this should work :
    http://technet.microsoft.com/en-us/library/bb123794(v=exchg.150).aspx
    To change the upn, check http://msdn.microsoft.com/en-us/library/azure/dn194136.aspx
    This one might also be interesting :
    http://blog.migrationwiz.com/2012/01/24/office-365-powershell-tip-bulk-change-upns/

  • Common monitoring parameters of OGG

    What are the common monitoring parameters of OGG and specific parameters for using JAgent ?
    Thank you

    Hi Eugen,
    I think this link will be useful to you. It is about Monitoring Oracle GoldenGate Processes..
    https://docs.oracle.com/goldengate/1212/gg-winux/GWUAD/wu_monitoring.htm#BABIACDB
    Regards,
    Veera

  • Bulk Changes to Transactions

    Hi All,
    We have a requirement of enabling Bulk Changes to transactions. For example if select 5 opportunities and change the status for one of the opportunity, the status for the other selected opportunities also gets changed.
    Any pointers on how to achieve this would be highly appreciated
    Regards,
    Varun

    Hi Varun,
    When you mentioned select 5 opportunities, from which screen/transaction
    you select these documents from?
    You can create Action Defintion to call Function CRM_ORDER_CHANGE_STATUS to each of those 5 documents.
    Hope this helps.
    cheers,
    Gun.

Maybe you are looking for

  • Error 'Program not registered' while testing RFC connection PI_RFC

    Hi Basis Experts I am having problems while testing an RFC connection PI_RFC in one of our PI quality system. Here is the Error log Logon Connection Error Error when opening an RFC connection ERROR: program PI_RFC not registered LOCATION: SAP-Gateway

  • Problem in creating a list.

    Hello! How do I create a list in an applet? What do I need to import? I have a simple applet below that contains a list. Yet when I compile it, en error message comes up. The error is shown below. import java.awt.*; import java.applet.*; public class

  • Ipod scan and fix error

    I have A 160 gb ipod classic and am using windows 8, I plugged it in this morning and got the "scan and fix" error message and accidentally clicked it and it erased all 5,600 songs I have on ipod. when I go to summary it still shows all the space is

  • Foundation services going into Admin state

    Hello All, Our setup is as follows: Version: 11.1.2.3.500 Linux Server1: Foundation, OHS, EAS, APS Linux Server2: Essbase Linux Server3: Planning, EPMA, Calc Mgr. Windows Server: EPMA Dimension server, FDMEE. In our existing set up we have introduced

  • SIC Code for Industry to be displayed at account level

    Hi, Needed some inputs on the requirement: Account detail page must have the industry to which the account belongs (which is out of the box) and also the SIC/NSIC code that is mentioned against that particular industry in the industry definition page