Automated script for deploying, removing, install again the WSP using stsadm command line

Hi,
Am having a requirement in my  staging and  prod  env. to add, install,retract and remove wsp.
In my dev env i used to perform with  Visual Studio ,so i didnt  face any issues regarding retracting and removing the wsp from solution store.
But in my staging and prod since i dont hav VS installed, i would like to have a automated script[ NOT in POWERSHELL] using stsadm command line tool which adds the solution from a folder [say D:\DeployWSPs in staging and Prod] to the solution
store  and installed onto a particular web application [  NOT "All WebApplications"].
and if  the wsp already exists , i need to retract it & remove from solution store and add it and install again.
can someone pls help me with the  automated script .also if  the folder contains multiple WSPs how can i doa  for each loop [ iterate through  wach ".wsp"  file and perform install/...task].
i know stsadm -o adddsolution, deletesolution,m retractsolution etc. But the issue is that customer asked me to do this ina automated fashion.  manually entering all these commands is a  cumbersome activity.
note: when i used powershell on 2 / 3 occasions, the wsp was retracted successfully,but failed to successfully remove from the
soln store.
so i thought i will depend upon on stsadm again like old version of SP since its supported.
Das

I would recommend you to use Power Shell so that you can do the automation easily. You can use
power shell for earlier version of SharePoint as well. 
Look why removing the solution is getting failed. May be you are trying to remove before the solution is retracted. Wait for retract and remove the solution. Refer to the following post for more information
http://www.codeproject.com/Articles/570011/PowerShellplus-plusWaitplusforplusRetractplus-fpl
http://consultingblogs.emc.com/mattlally/archive/2011/03/29/sharepoint-server-2010-multiple-solution-deployment-script.aspx
Cheers,

Similar Messages

  • How to access the mysql using ordinary command line in Azure Website?

    Hi
    I deploying Django project on Azure. I created project and MySQL db according this method: https://pytools.codeplex.com/wikipage?title=PollsDjangoSql . I can create tables using django command "syncdb" in Visual Studio. I see
    db structure in SQL Explorer. All works. But now I need to get access directly to mysql.  For example with a view to set encoding of some column, or set permissions, change user password, etc.
    I found about many different tools and methods in Microsoft portal. But the purpose of these tools, how to install it and how to use it is a very entangled (After several attempts to find out what's what two weeks later I found on my computer
    three dozen programs with unknown purpose. I doubt that I need to install so many tools to just add the user in mysql).
    How to access the mysql using ordinary command line (or the same simple tool) in my case?

    Hi pvgdrk,
    To get access directly to a mysql database, you can use the commandline tool(open a cmd window-->type mysql the commadline ) or the
    GUI MySQL workbench.
    Since this is a question about MySQL, I would suggest you post your question in a dedicated MySQL forum. You will get more prompt response.
    If you have any feedback on our support, please click
    here.
    Eric Zhang
    TechNet Community Support

  • Automation scripts for Instant client install\ add TNS entry

    Guys,
    I'm trying to develop an VB application,which uses data from an Oracle server residing in my neighbour's system.
    My system doesn't have oracle client installed.
    So, I've made use of Oracle Instant Client package-OCBC.
    Now, I'm looking for an automation script that would do the following in order
    1)Uzip the instant client into a directory. (say C:\ondemand\instantclient)
    2)Add this directory into the PATH environment variable
    3)Set up Service Names with tnsnames.ora ie. Create a TNSNAMES.ORA file to configure my Oracle instance connection.
    4)Set the TNS_ADMIN environment variable to be the path to the tnsnames.ora
    Can someone help me out with automated scripts?
    Thanks,
    Bhagat

    Don't worry. I've solved it.
    One of the files I was using stated: Always set the TNS_ADMIN environment variable or registry setting to the full path of the tnsnames.ora file.
    I took that to mean including the "tnsnames.ora". It doesn't. It really does mean just the PATH part.
    However, with this corrected, I got the pulldown populated. But with only the first part of the name, from the tnsnames.ora file. tnsnames.ora had mydb.<domain>.com. The pulldown only had mydb. Manually adding the .<domain>.com to it worked.
    Now on to the next problem. <GRIN>
    Cheers,
    Eddie

  • How can I use srvctl command line for change "Failover type" and "F method"

    Hi all,
    I am using Oracle One Node (11.2.0.3), and I have a service:
    /u01/11.2.0/grid/bin/srvctl config service -d orcl
    Service name: orcldb
    Service is enabled
    Server pool: orcl
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: orcl_1
    Available instances:
    I would like to change "Failover type" and "Failover method" to:
    Failover type: SELECT
    Failover method: BASIC
    How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
    Thanks in advance.
    Leonardo.

    user10674190 wrote:
    Hi all,
    I am using Oracle One Node (11.2.0.3), and I have a service:
    /u01/11.2.0/grid/bin/srvctl config service -d orcl
    Service name: orcldb
    Service is enabled
    Server pool: orcl
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: orcl_1
    Available instances:
    I would like to change "Failover type" and "Failover method" to:
    Failover type: SELECT
    Failover method: BASIC
    How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
    Thanks in advance.
    Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
    Also see
    11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1]

  • Error while executing script for sharepoint online (office 365) - the remote server returned an error: (503) server unavailable

    error while executing script for sharepoint online (office 365) - the remote server returned an error: (503) server unavailable.
    I am creating many site collections reading records from sharepoint list using powershell in sharepoint online tenant (office 365).
    Few site collections are created and then getting above error so this error record will be skipped then few succeeding record processed then again getting error.
    pattern is like:
    success
    success
    success
    success
    Error
    success
    success
    success
    success
    success
    success
    error
    success

    Hi,
    As it is an online environment, to troubleshoot this issue in an easier way, I suggest you contact Office 365 Support to see if there is any useful information in
    the log files in the server side:
    https://support.office.com/en-us/article/Contact-Office-365-for-business-support-32a17ca7-6fa0-4870-8a8d-e25ba4ccfd4b?ui=en-US&rs=en-US&ad=US
    Best regards
    Patrick Liang
    TechNet Community Support

  • HT4972 i have iphone 3gs v 4,2.1 i want to upgrade to ios 5 i will erase all data, how can i install again the software, and now my device can not detect to my computer? what can i do? please help me..

    have iphone 3gs v 4,2.1 i want to upgrade to ios 5 i will erase all data, how can i install again the software, and now my device can not  be detect to my computer? what can i do? please help me..

    You can not install iOS 5. It is no longer signed by Apple. You can only install the current version of iOS. For a 3GS, that's 6.1.3.
    However... if you have 4.2.1 on your phone, odds are it is not a 3GS, it is a 3G. If that's the case, you've reached the end of the road for that. It can not run anything higher than 4.2.1.

  • Can RH8 be installed by the admin using his own account?

    Please excuse this basic yes/no question, I could not find any info about RH8. In older releases it was once recommended to install RoboHelp using the account of the USER who would later use the program (not the admin). For this, admin rights had to be assigned to the user during installation and removed again afterwards.
    Is this procedure still required for RH8 or can RoboHelp now be installed by the admin using his own account?

    The options are the user account with admin rights attached or the admin account that will have those rights by default.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • What is happening about: The GNU Bourne Again Shell (Bash) is a command line utility widely used in many Unix-based operating systems including Linux and OS X.  Researchers have discovered a critical flaw in Bash which could allow remote code executi

    Authoritative advice today:
    The GNU Bourne Again Shell (Bash) is a command line utility widely used in many Unix-based operating systems including Linux and OS X.
    Researchers have discovered a critical flaw in Bash which could allow remote code execution by an unauthenticated user
    APPLE response?

    Also see:
    http://www.macrumors.com/2014/09/26/apple-os-x-users-safe-bash-flaw-update-soon/
    If you are not running a web server
    If you have not enabled CUPS web interface
    If you do not allow anonymous users to ssh into your Mac.
    If all are no, they you are not at risk.
    This IS a very serious bug for web servers, but the typical consumer Mac user is not at risk.

  • Error msg = pls. install/uninstall the product using setup.exe in the root folder

    unable to install photoshop elements v10 on a windows 7, ultimate 64bit computer, get:
    error msg = pls. install/uninstall the product using setup.exe in the root folder

    yes, I am installing as the administrator.  I have tried to install from
    two different folders;
    1. c://adobe photoshop elements 10.msi
    and
    2. c://program files/adobe/adobe photoshop elements 10.msi
    get the same error message from both locations.
    the error message is not specific as to "root folder"
    someone please help with this.  I would like to be able to install this app.

  • How to delete the items in the recycle bin permanently from the windows using Diruse command

    How to delete the items in the recycle bin permanently from the windows  using Diruse command.
    Because most of the time we get out of disk space issues.
    Can somebody help me in giving with an example

    You can right-click Recycle Bin|Properties and choose radio button for
    Don't move files ....
     This one may also help.
    http://technet.microsoft.com/en-us/library/cc784980(v=ws.10).aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Im using a pci-6221 daq-card.I want to know the difference(use)of a line output and a port output.

    Im using a pci-6221 daq-card.I want to know the difference(use)of a line output and a port output.

    Hello Hellraiser24,
    This question has actually been discussed in another thread here:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=95895&requireLogin=False
    I hope this helps,
    E.Lee
    Eric
    DE For Life!

  • Passing the string as a command-line argument?

    Hey guys whats going on? My first post here just got a quick question hopefully.
    I need to pass the string as a command line argument in this Palindrome program, how exactly do i do do that?
    import javax.swing.JOptionPane;
    public class PalindromeIgnoreNonAlphanumeric {
    /** Main method */
    public static void main(String[] args) {
    // Prompt the user to enter a string
    String s = JOptionPane.showInputDialog(null,
    "Enter a string:", "Example 7.3 Input",
    JOptionPane.QUESTION_MESSAGE);
    // Declare and initialize output string
    String output = "Ignoring non-alphanumeric characters, \nis "
    + s + " a palindrome? " + isPalindrome(s);
    // Display the result
    JOptionPane.showMessageDialog(null, output,
    "Example 7.3 Output", JOptionPane.INFORMATION_MESSAGE);
    /** Return true if a string is a palindrome */
    public static boolean isPalindrome(String s) {
    // Create a new string by eliminating non-alphanumeric chars
    String s1 = filter(s);
    // Create a new string that is the reversal of s1
    String s2 = reverse(s1);
    // Compare if the reversal is the same as the original string
    return s2.equals(s1);
    /** Create a new string by eliminating non-alphanumeric chars */
    public static String filter(String s) {
    // Create a string buffer
    StringBuffer strBuf = new StringBuffer();
    // Examine each char in the string to skip alphanumeric char
    for (int i = 0; i < s.length(); i++) {
    if (Character.isLetterOrDigit(s.charAt(i))) {
    strBuf.append(s.charAt(i));
    // Return a new filtered string
    return strBuf.toString();
    /** Create a new string by reversing a specified string */
    public static String reverse(String s) {
    StringBuffer strBuf = new StringBuffer(s);
    strBuf.reverse(); // Use the reverse method for StringBuffer object
    return strBuf.toString();
    Thanks guys appreciate any help

    Multiple post
    http://forum.java.sun.com/thread.jspa?threadID=772058&tstart=0

  • How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    How can i install snow leopard on my mac G5 using a command line and booting from an external usb rom, since my disk i have is not a bootable media

    Hi.
    You simply can't. Snow Leopard is compiled in Intel binary only.
    Good Luck.

  • How do I redownload mountain lion for a clean install on the same machine without purchasing again?

    I purchased mountain lion and upgraded my OS.  The system seems to still be having some issues and I'd like to do a clean install with the new OS.  How do I redownload mountain lion so that I can make a bootable disk and do my clean install?

    You should be able to just go to the App Store and select Download again. If that doesn't work, try holding down the option key while selecting "Buy".
    Good luck,
    Clinton

  • Maven scripts for deploying WAR into Weblogic

    Hello Folks,
    I would need some help in deploying EAR/WAR into weblogic server.
    I already have maven scripts for building but not for deploying. your help is appreciated.
    Thanks.

    Hi Ank2cool,
    Please see my findings, I have tested the Same "build.xml" again...My AdminServer
    UserName is weblogic
    and
    password is weblogic
    <project name="webservices-hello_world" default="deploy">
    <property name="wls.username" value="weblogic" />
    <property name="wls.password" value="weblogic" />
    <property name="wls.hostname" value="localhost" />
    <property name="wls.port" value="7001" />
    <property name="wls.server.name" value="AdminServer" />
    <target name="deploy">
    <wldeploy action="deploy" name="PlanDemoEAR" source="PlanDemoEAR" user="${wls.username}"
    password="${wls.password}1" verbose="true" adminurl="t3://${wls.hostname}:${wls.port}" targets="${wls.server.name}" />
    </target>
    </project>
    Now when i run the AANT task ant deploy
    OUTPUT:
    Buildfile: build.xml
    deploy:
    [wldeploy] weblogic.Deployer -verbose -noexit -name PlanDemoEAR -source C:\JavaTest\PlanDemo\PlanDemoEAR -targets Admin
    Server -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
    [wldeploy] weblogic.Deployer invoked with options: -verbose -noexit -name PlanDemoEAR -source C:\JavaTest\PlanDemo\Pla
    nDemoEAR -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -deploy
    [wldeploy] <Dec 21, 2009 2:08:33 PM IST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for app
    lication, PlanDemoEAR [archive: C:\JavaTest\PlanDemo\PlanDemoEAR], to AdminServer .>
    [wldeploy] Task 1 initiated: [Deployer:149026]deploy application PlanDemoEAR on AdminServer.
    [wldeploy] Task 1 completed: [Deployer:149026]deploy application PlanDemoEAR on AdminServer.
    [wldeploy] Target state: deploy completed on Server AdminServer
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + PlanDemoEAR AdminServer
    BUILD SUCCESSFUL
    ========================TO REPRODUCE YOUR ISSUE I JUST CHANGED THE Password from weblogic to "*weblogic1*" or *"weblogic "* (i added a Single Space at the end of password) in the ANT script....But Server's Actual Password is still "weblogic"=======
    OUTPUT:
    [wldeploy] Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
    [wldeploy] at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
    [wldeploy] at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
    [wldeploy] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    [wldeploy] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    [wldeploy] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [wldeploy] at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    [wldeploy] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    [wldeploy] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    [wldeploy] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    [wldeploy] at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    BUILD FAILED
    C:\JavaTest\PlanDemo\build.xml:12: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerExcep
    tion: Unable to connect to 't3://localhost:7001': User: weblogic, failed to be authenticated.. Ensure the url represents
    a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.
    Total time: 0 seconds
    Above is exactly the same error what u are getting...
    So please recheck the password provideed in the "build.xml" is correct..or any space added before or after the Password.....
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

Maybe you are looking for

  • SC created without any warning or error message

    Hi, I'm working with SRM 5.0, classic scenario. Problem is following: I create a SC for a specific material for storage location A for example. But this specific material wasn't created for storage location A. SRM doesn't block my SC cart created nei

  • Having trouble with a "pop up" LOV that should return several attributes

    all the examples i've seen return a single value. what if my foreign key is concatenated? how do i return several attributes? right now the listener sets "value = #{row.xxx}.

  • Reinstalling 10.5.8

    I think I need to archive and reinstall my operating system. My install disc is 10.5.1 and I have downloaded upgrades so I now have 10.5.8. Do I just install the 10.5.1 and then down load the upgrades. I have looked for 10.5.8 discs and could find no

  • Unable to create updatable statement for MySQL?

    The following code fragment prints 'Read only', even though the updatable flag is being set for the createStatement function. Can anyone give me an idea of what I am doing wrong here? I'm able to read stuff OK, but not update anything. Connection con

  • Hp pavilion dv6522

    j'ai acheté un pc à auchan (cognac - charente) en novembre 2007, novembre 2008 le disque dur est mort, retour chez auchan qui contacte hp vu que le pc est sous garantie, toutefois c'est moi qui est dû les contacter par téléphone, très dur, très cher.