facebook

SDC Remote Deployment

  1. Secure Delivery Center
  2.  > 
  3. Getting Help
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #345345 Reply

    eglatz
    Member

    Do you or your team have any suggestions for installing packs on remote servers that I don’t have shell/gui access to? I suppose I could get access or get our system admins to do it, but they don’t really want to be bothered by us software guys! So far they setup the SDC software and gave us admin access via the admin console, but I don’t see a way to install packs directly to the server.

    #345348 Reply

    eglatz
    Member

    Working script at http://www.genuitec.com/support-genuitec/viewtopic.php?p=22930#p22930

    Found part of the answer:
    https://www.genuitec.com/sdc/docs/sdc_admin.html#appendix_e

    So I built an ant script, but it fails at login. Anyone have experience with the ant scripts?
    Yes the properties have been redacted in the snippets below.

    
    Buildfile: G:\Data\src\workspace\sdc\build.xml
    myeclipsePro2014:
    [sdc-login] SDC Ant Tasks version 4.6.0.v201308201710
    
    BUILD FAILED
    G:\Data\src\workspace\sdc\build.xml:32: Could not log in to server http://<<host>>:<<port>>
    
    Total time: 405 milliseconds
    
    
    <project default="main">
        <!-- Ant tasks to install software packs into SDC -->
        <!-- Instructions: -->
        <!-- 1. Download the sdc-ant-tasks.jar if you don't already have it -->
        <!-- 2. Download the software packs that match the server environment they will be installed to -->
        <!-- 3. Customize the targets below to install what you downloaded -->
        <!-- 4. Update main to reflect any changes to the other build tasks -->
        
        <!-- Full path to your sdc-ant-tasks.jar which can be downloaded from http://<<hostname>>:<<port>>/help/examples/sdc-ant-tasks.jar-->
        <property name="sdc_ant_tasks_release" value="./sdc-ant-tasks.jar" />
        <!-- Full path to the software packs on the client -->
        <property name="software_packs_location" value="." />
        <!-- Authentication -->
        <!-- Obtain a token from the SDC Admin Console's System>Advanced tab to supply to this task in addition to the pass phrase used to generate the token. -->
        <property name="token" value="<<token>>" />
        <property name="passphrase" value="<<passphrase>>" />
        <property name="host" value="<<host>>" />
        <property name="port" value="<<port>>" />
    
        <!-- Register the sdc tasks with ant -->
        <typedef name="sdc-login" classname="com.genuitec.delivery.anttasks.SDCLoginTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-import-library" classname="com.genuitec.delivery.anttasks.SDCImportLibraryTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-remove-library" classname="com.genuitec.delivery.anttasks.SDCRemoveLibraryTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-promote-package" classname="com.genuitec.delivery.anttasks.SDCPromotePackageTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-build-pack" classname="com.genuitec.delivery.anttasks.SDCBuildPackTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-install-pack" classname="com.genuitec.delivery.anttasks.SDCInstallPackTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-update-package" classname="com.genuitec.delivery.anttasks.SDCUpdatePackageTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
    
        <!-- Install the myeclipsePro2014 software packs -->
        <target name="myeclipsePro2014">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="Eclipse Discovery" versioninternal="4.3.1" installerfile="${software_packs_location}/eclipse-discovery-4.3.1-sr1.linux.run" source="client" />
            <sdc-install-pack id="Oracle Java JDK for Eclipse IDE" versioninternal="1.7.0.u45" installerfile="${software_packs_location}/oracle-java-jdk-1.7.0-update-45-linux.run" source="client" />
            <sdc-install-pack id="MyEclipse Professional" versioninternal="2014" installerfile="${software_packs_location}/myeclipse-pro-2014-ga-b-linux.run" source="client" />
        </target>
        
        <!-- Install the myeclipsePro10.7.1 software packs -->
        <target name="myeclipsePro10.7.1">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="Eclipse Discovery" versioninternal="3.7.2" installerfile="${software_packs_location}/eclipse-discovery-3.7.2-sr2-linux.run" source="client" />
            <sdc-install-pack id="Oracle Java JDK for Eclipse IDE" versioninternal="1.6.0.u13" installerfile="${software_packs_location}/myeclipse-sun-java-1.6.0-update-13-linux.run" source="client" />
            <sdc-install-pack id="MyEclipse Professional" versioninternal="10.7.1" installerfile="${software_packs_location}/myeclipse-pro-10-10.7.1-ga-linux.run" source="client" />
        </target>
        
        <!-- Install the certifiedPopular software packs -->
        <target name="certifiedPopular">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="Certified Eclipse Plugin Pack" versioninternal="2013 september" installerfile="${software_packs_location}/popular-pack-2013-september-linux.run" source="client" />
            <sdc-install-pack id="Certified Eclipse Plugin Pack (GPL)" versioninternal="2013 september" installerfile="${software_packs_location}/popular-gpl-pack-2013-september-linux.run" source="client" />
        </target>
        
        <!-- Install the latest Java6 jdk -->
        <target name="java6jdk">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="Oracle Java JDK for Eclipse IDE" versioninternal="1.6.0.u45" installerfile="${software_packs_location}oracle-java-jdk-1.6.0-update-45-linux.run" source="client" />
        </target>
        
        <!-- Run all the install tasks -->
        <target name="main" depends="myeclipsePro2014,myeclipsePro10.7.1,certifiedPopular,java6jdk" /></project>
    
    #345382 Reply

    sdc-support
    Member

    Hello

    To connect the ant task to the server you need put in the script your info.
    In the section of properties you need replace the values:

    <<passphrase>> = any you want (you need this to create the token)
    <<token>> = this is created in the admin console in System/Advanced tap, and click in the button Request token.
    <<host>> = host of your server
    <<port>> = port of your server

    Regards
    Oscar Grajeda

    #345383 Reply

    eglatz
    Member

    I was clear that those had been redacted:

    Yes the properties have been redacted in the snippets below.

    #345386 Reply

    eglatz
    Member

    As suggested I have double checked all the property values.

    #345395 Reply

    sdc-support
    Member

    We are Sorry, we missed that you change the real values. Are you running the ant task in the same machine that you have running the admin console, this is because the way to got this error is with wrong host/port or don’t have acces to the host.

    Maybe you have a firewall or some antivirus active in the host and it is blocking the conection?

    #345396 Reply

    eglatz
    Member

    I confirm that the admin console works from the same PC I am running the ant tasks from.

    #345398 Reply

    eglatz
    Member

    Did some messing around, I find that if I run ant outside of MyEclipse it works! Wahoo! Thanks for the tips.

    Is there a plan to integrate this functionality into the admin console?

    Also is there a way to know what the expected id and version are for packages? I had to resort to trial and error.

    Once I get them all figured out I’ll update the script.

    #345400 Reply

    eglatz
    Member

    A working script: version is not required, although id is and it’s not always intuitive.

    
    
    <project default="main">
        <!-- Ant tasks to install software packs into SDC -->
        <!-- Instructions: -->
        <!-- 1. Download the sdc-ant-tasks.jar if you don't already have it -->
        <!-- 2. Download the software packs that match the server environment they will be installed to -->
        <!-- 3. Customize the targets below to install what you downloaded -->
        <!-- 4. Update main to reflect any changes to the other build tasks -->
        
        <!-- Full path to your sdc-ant-tasks.jar which can be downloaded from http://<<hostname>>:<<port>>/help/examples/sdc-ant-tasks.jar-->
        <property name="sdc_ant_tasks_release" value="./sdc-ant-tasks.jar" />
        <!-- Full path to the software packs on the client -->
        <property name="software_packs_location" value="." />
        <!-- Authentication -->
        <!-- Obtain a token from the SDC Admin Console's System>Advanced tab to supply to this task in addition to the pass phrase used to generate the token. -->
        <property name="token" value="<<token>>" />
        <property name="passphrase" value="<<passphrase>>" />
        <property name="host" value="<<host>>" />
        <property name="port" value="<<port>>" />
    
        <!-- Register the sdc tasks with ant -->
        <typedef name="sdc-login" classname="com.genuitec.delivery.anttasks.SDCLoginTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-import-library" classname="com.genuitec.delivery.anttasks.SDCImportLibraryTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-remove-library" classname="com.genuitec.delivery.anttasks.SDCRemoveLibraryTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-promote-package" classname="com.genuitec.delivery.anttasks.SDCPromotePackageTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-build-pack" classname="com.genuitec.delivery.anttasks.SDCBuildPackTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-install-pack" classname="com.genuitec.delivery.anttasks.SDCInstallPackTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
        <typedef name="sdc-update-package" classname="com.genuitec.delivery.anttasks.SDCUpdatePackageTask" classpath="${sdc_ant_tasks_release}" loaderref="sdc-classes" />
    
        <!-- Install the myeclipsePro2014 software packs -->
        <target name="myeclipsePro2014">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="eclipse-discovery" installerfile="${software_packs_location}/eclipse-discovery-4.3.1-sr1-linux.run" source="client" />
            <sdc-install-pack id="oracle-java-jdk" installerfile="${software_packs_location}/oracle-java-jdk-1.7.0-update-45-linux.run" source="client" />
            <sdc-install-pack id="myeclipse-pro-12" installerfile="${software_packs_location}/myeclipse-pro-2014-ga-b-linux.run" source="client" />
        </target>
        
        <!-- Install the myeclipsePro10.7.1 software packs -->
        <target name="myeclipsePro10.7.1">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="eclipse-discovery" installerfile="${software_packs_location}/eclipse-discovery-3.7.2-sr2-linux.run" source="client" />
            <sdc-install-pack id="myeclipse-sun-java" installerfile="${software_packs_location}/myeclipse-sun-java-1.6.0-update-13-linux.run" source="client" />
            <sdc-install-pack id="myeclipse-pro-10" installerfile="${software_packs_location}/myeclipse-pro-10-10.7.1-ga-linux.run" source="client" />
        </target>
        
        <!-- Install the certifiedPopular software packs -->
        <target name="certifiedPopular">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="popular-pack" installerfile="${software_packs_location}/popular-pack-2013-september-linux.run" source="client" />
            <sdc-install-pack id="popular-gpl-pack" installerfile="${software_packs_location}/popular-gpl-pack-2013-september-linux.run" source="client" />
        </target>
        
        <!-- Install the latest Java6 jdk -->
        <target name="java6jdk">
            <!-- Authenticate with the server -->
            <sdc-login host="${host}" port="${port}" token="${token}" passphrase="${passphrase}" />
            <!-- If you have the pack installer on the client side, the Pack Install task can upload the installer to the server to proceed with the installation. -->
            <sdc-install-pack id="oracle-java-jdk" installerfile="${software_packs_location}/oracle-java-jdk-1.6.0-update-45-linux.run" source="client" />
        </target>
        
        <!-- Run all the install tasks -->
        <target name="main" depends="myeclipsePro2014,myeclipsePro10.7.1,certifiedPopular,java6jdk" />
    </project>
    #345402 Reply

    sdc-support
    Member

    @eglatz wrote:

    Is there a plan to integrate this functionality into the admin console?

    Yes, In SDC 2014 we are adding a Get Packs feature to the Admin Console. Using this feature, you’ll be able to discover and install packs without having to write a single line of Ant. In fact, you won’t even have to go to our web page. It’ll all happen directly in the Admin Console.

    Best Regards,
    Oscar Grajeda

    #348703 Reply

    sdc-support
    Member

    Hi eglatz, SDC 2013 SR4 is here! you can take a look into the official documentation to see the new features: http://www.genuitec.com/sdc/docs/highlights/2013sr4/index.html

    Best regards,
    the SDC Team.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: SDC Remote Deployment

You must be logged in to post in the forum log in