WLST Remote script.

Hi Guys,
I am new to this forum. Can you please suggest me how to start a managed server of a weblogic which is installed in physical server1 to be started using a WLST script from another physical server2. I used weblogic.jar, wlfullclient.jar in the classpath but its still giving me an error called Java exception WLST OffLine Class not found.
Can you guys please suggest me the way to start a weblogic server from a remote physical server using WLST.
Many Thanks!!

First set your environment properly in order to run WLST. In the directory <WebLogicServer-Home>/server/bin a file called setWLSEnv is present. This sets your Path and Classpath. (weblogic.jar in the classpath should be enough).
A WLST script to start servers is as follows:
print 'START NODE MANAGER';
startNodeManager(verbose='true', NodeManagerHome='Location where the nodemanager.properties file is located', ListenPort='Your Port Number', ListenAddress='your host name');
print 'CONNECT TO NODE MANAGER';
nmConnect('username','password','your host','port','DomainName','DomainLocation','ssl (for example)');
print 'START ADMIN SERVER';
nmStart('AdminServer');
nmServerStatus('AdminServer');
print 'CONNECT TO ADMIN SERVER';
connect('username','password');
print 'START MANAGED SERVER';
start('ServerName','Server');
nmServerStatus('ServerName');
print 'START CLUSTER';
start('ClusterName','Cluster');
nmServerStatus('ServerName1');
nmServerStatus('ServerName2');
You probably only need the stuff to start your admin server.

Similar Messages

  • Execution of remote script in File Adapter OS Command

    Hello.
    I'm having issues with a remote script placed on a file adapter which fails to execute in a clustered PI (Version 7.1), running on Windows 2008.
    Our current setup is as follows.
    - Machine A and Machine B make up a SAP PI Cluster node.
    - Machine C is our network file share, used as a sandbox for receiving and sending files.
    One given scenario would be having the Cluster picking up a file from a FTP folder (Machine D) and copying it over to a given location in Machine C. This is working without problems in the cluster environment.
    Now, a very specific scenario requires that after copying the file (to folder INPUT), a given script shall be executed over the received file and decide which folder should that file be archived, TO_PROCESS or NO_PROCESS folders.
    So, Outbound Channel is reading from the FTP, Inbound Channel stores in Machine C and has to run a script after message processing.
    The problem here is that the script is stored also in Machine C, so placing the OS Command should refer to a shared path:
    Example:
    sap-machine-c.gca.ad.root\InboundFiles\INPUT
    sap-machine-c.gca.ad.root\InboundFiles\TO_PROCESS
    sap-machine-c.gca.ad.root\InboundFiles\NO_PROCESS
    sap-machine-c.gca.ad.root\Scripts\procFile.bat
    If I give the command of "
    sap-machine-c.gca.ad.root\Scripts\procFile.bat %F" on the receiver channel, checking RWB, Communication channel says the command was executed with success but the file doesn't leave the INPUT folder.
    The script is know to execute with success from both instances, I have logged into each one of them and executed with RFCUSER in SE38 w/transaction RSBDCOS0.
    I have tried to replicate this issue, reducing even the procFile.bat script to just do an "echo" command but still doesn't work (RWB PI says it does).
    It seems to me that executing scripts from remote shares is a no go? Does anyone have a previous experience dealing with these cases?
    Thanks,
    Romeu

    Hi all.
    After taking some hints from this thread, we have found out that the problem lied some where in the installation part of PI.
    We've set up a basic script, local and not remote, and still the system would not execute that command.
    The RWB logs showed successful processing but the Application Server logs were full of errors and stack traces regarding the execution of any command. A support note was raised with SAP support in order to trace these errors.
    I'm therefore closing this question as the original question is not related with remote scripting.
    Thanks all for your help.
    Best regards,
    Romeu

  • Java 6 updates 22 thru 24 does not allow ASP Remote Scripting calls

    The Java 6 update 22 thru 24 all prevent ASP Remote Scripting from working correctly, causing applications using Remote Scripting via the standardized rs.htm code to fail. This is well documented with examples at the Java Forums page http://www.java-forums.org/new-java/36522-java-jre-6-update-21-22-rs-problem.html
    To date I have not been able to find anything that indicates Oracle is aware of this problem and is trying to fix it. If there is a fix, please contact me with it immediately!

    876886 wrote:
    Is there any update on this?
    is it fixed?Whats stopping you from installing update 26 and trying it out? Or did you think that this is an Oracle technical support forum where actual Oracle employees post?
    Note that if nobody bothered to create a bug report for this problem (because I see no evidence of that in either forum) then the answer is likely no.

  • Java Web Start and Remote Scripting Incompatibility?

    I recently installed the Java Web Start plugin to Internet Explorer, in order to run Sun's version of the Java Virtual Machine.
    After the install, I am receiving errors when trying to run a web application that uses the Remote Scripting technology for client-server communication.
    I think this might be related to the Java 2 security model, which requires all Java applets to be signed. The Remote Scripting client-side component seems to be unsigned, so that may be causing my problem.
    Does anyone have a solution for this problem?
    Any help is greatly appreciated.
    Best Regards,
    Nicole Roberts

    Hi,
    I had the same problem on a unix server!
    The new build of IE on Windows 2003 from Microsoft that excludes the JVM (Java Virtual Machine), works fine with the JVM coming from Sun, except for the following.
    We are experiencing problems, that if we are not logged in as Domain administrator, we get an Apache security prompt to log on, as soon as the RSProxy class is used. It seems that the Class is not picking up the current session, but tried to create another session, without a userid, and then prompts you for your login details.
    We still cannot figure out, why it does not do it with the Domain Administrator account.
    Can someone please have a look into this.
    I think there is a simple configuration problem somewhere, that will allow seamless integration with Sun's JVM.
    I could resolve it so far by loading the Microsoft JVM back into Win2k3 theough the Visual Studion 6 Cd's, but I don't like the idea of that!

  • JRE International Version Kills Windows Remote Scripting?

    I've got a web app that uses the Microsoft remote scripting engine to run some ASP script on the server.
    This application works fine and has always worked fine without any version of the JRE installed. If I install the JRE version 1.3 (English edition) this application still works fine. If I install the JRE 1.3 (international edition) the remote scripting no longer works.
    Does anybody have any idea why installing the international JRE would hose my remote scripting?

    I am also having a problem with this. Remote Scripting works fine with 1.3, but when 1.4 was installed I started having problems with it.
    Did you ever figure this one out?
    Thanks,
    Nathan
    [email protected]

  • Remote script execution.

    Hello.
    I would like to know how to run a script on a remote Linux machine. Can I do this without caring where the local JVM is running?
    I haven't done this before, and have searched various places for a concise answer. I have not been successful. Will something like the following work: Runtime.exec("remote.machine\remote.script.sh");. I have also noticed that my searches seem to lead me to discussions of Java RMI, so in thinking RMI has something to say about what I'm doing, I have posted my question here.
    Background: I have a java application (a web service in fact) that needs to get information from a back-end system to do its job. It needs to invoke a script that's running on a remote host where the coveted business system resides.
    The Runtime.exec() method appears only to run processes on local machines. From the research I have done, the usual fudge here is to know the operating system of the local machine so you might be able to use its remote process execution facilities. However, I don't want to know anything about the local OS, because it could be different between development, testing, and production. I know that the remote OS is Linux.
    Is there any way I can get a process to run on a remote machine without having to know about the local machine's OS?
    Many thanks in reply,
    Owen.

    You need obviously the remote system to support this through some facility like remote shell (rsh) or secure shell (ssh). so it depends on how that remote Linux system is set up and what access (userid) you can get for it.
    Are you granted some access to that remote Linux machine?
    If yes, what kind of?

  • Getting return code from remote script after Unix rsh call

    I hope one of you guys can help me with this issue. I think I've gotten the 'rsh' command to work from the CES application so that the sqr report generation can execute on a remote machine (instead of the app server machine). I'm actually doing this by having the app still execute the ces_sqr script, however, now the ces_sqr script will just have an 'rsh' command in it which will cause the actual real sqr processing to occur remotely.
    I am executing a Unix script which does a remote shell call to another script on a remote machine. The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
    If I do the following in the rsh script:
    rsh -l resdev morph "/dev/bin/remote_script"
    rc=$?
    echo "$rc\n"
    then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script?
    Jan Miller
    [email protected]
    202-237-9584

    Please ignore the first paragraph of my previous post.

  • How to create a server through WLST  ( Weblogic Scripting Tool ) ?

    How to create a server through WLST ( Weblogic Scripting Tool ) ?
    Thanks in advance...
    Sanjay

    Hi Murugesh,
    Thanks a lot for you reply..
    I was able to create a server using create(). Is it possible to clone a server ?
    When i create a server following tags is added to config.xml
    <server>
    <name>testServer_lab1</name>
    <listen-port>43000</listen-port>
    </server>
    And if i do a clone through admin console, following is added to config.xml
    <server>
    <name>testServer2_lab1</name>
    <machine xsi:nil="true"></machine>
    <listen-port>7001</listen-port>
    <cluster xsi:nil="true"></cluster>
    <listen-address></listen-address>
    <graceful-shutdown-timeout>120</graceful-shutdown-timeout>
    </server>
    If incase, cloning is not possible through WLST, can i add following
    <machine xsi:nil="true"></machine>
    <listen-port>7001</listen-port>
    <cluster xsi:nil="true"></cluster>
    <listen-address></listen-address>
    <graceful-shutdown-timeout>120</graceful-shutdown-timeout>
    under <server> tag which is created through WLST ?
    I am using 9.2 version.
    Regards
    Sanjay

  • Remote Script Execution initiated by Nagios Access Denied

    Hi, I am trying to create a powershell script (script 1) set up on our Support Server to execute a Remote Script on a Remote Server (script 2) to Restart a service. Simple - The script works fine when i execute it manually but fails when I try and use Nagios
    to call the Script using NRPE.
    Script 1 Contains (I have cut out all the Nagios inspired stuff)
    invoke-command -computer ws05 -command { & 'C:\Program Files\NSClient++\scripts\script2.ps1' }
    SendEmail
    Script 2 Contains
    Stop-Service spooler
    Nagios is successfully executing Scrip 1 as I get the confirmation email
    Nagios itself returns [ws05] Connecting to remote server failed with the following error message : Ac
    I'm assuming its a Permission issue but cant see how it works when executed manually but not when Executed via Nagios. My Only thought is the fact that the original call is from Nagios which is a Linux based None Domain server.
    Any Thoughts Appreciated
    Carl

    Powershell is not supported on Unix.
    ¯\_(ツ)_/¯

  • Portlets and Remote Scripting

    My questions center around whether Portlets that adhere to the WSRP or JSR 168 specifications can also employ technologies like remote scripting without causing the Portal to rebuild the entire page. I've already had some discussion with the JSR-168 group and it seems that JSR-168 and Remote Scripting don't play well together. However, I haven't received a fully satisfactory response from the Sun folks and am hoping the Plumtree Portlet folks can shed some light on this issue.
    I'm using the term "remote scripting" in the broadest possible sense to include technologies where a sub-section of a markup fragment (<span> or <div>) is dynamically updated via an asynchronous, background call to the server.
    The point of "remote scripting" is to avoid reloading the entire Web page in order to provide a richer user experience than a typical Web page. This is the technology behind the "rich internet application" movement a la Macromedia, Laszlo Systems, etc. where single-page experience is the foundation.
    I have two specific examples of Remote Scripting in mind:
    a) JavaScript remote scripting (JSRS) is a JavaScript framework that uses a hidden IFRAME embedded into the Portlet markup fragment to make asynchronous calls to the server to dynamically update sections of the Portlet without reloading the entire Portlet. Briefly, JSRS works as follows: 1. JSRS uses a hidden IFRAME to make background calls to the Server 2. JSRS sets the URL for the IFRAME's src to invoke a Servlet; updating the SRC in JavaScript triggers a call to the Server. 3. The response written by the Servlet is just HTML that uses an onLoad JavaScript event handler to callback into the JSRS framework 4. The onLoad event is fired when the browser loads the new page for the hidden IFRAME, this triggers the JSRS callback mechanism that allows my Portlet to update a section (using a SPAN or DIV) on the Portlet in a dynamic, asynchronous manner. (see Brent Ashley's JSRS site: www.ashleyit.com/rs)
    b) Flash Remoting. If my Portlet is a Flash Movie (the HTML fragment generated by the Portlet uses a Object/Embed tags to include an SWF), then the Flash Movie could use an XMLSocket object in ActionScript or the Flash Remoting API to talk to a Web service to dynamically update sub-sections of the Portlet, such as dynamically populating a ListBox in response to some user action.
    I have three (3) questions:
    1) From a cursory reading of the JSR-168 specification, it seems that all action-oriented URLs embedded in a Portlet must be Action URLs that have been re-written by the Portlet Container to force all traffic from Portlets back through the container. Is this a true statement?
    In other words, is a Portlet allowed to make any server requests that do not use a re-written Action/Render URL? For example, POST to a Servlet running in another Web application in the same WebLogic instance? I understand there are single sign-on issues that need to be addressed, but assuming you configure the application server so that security credentials propagate from the Portlet to this other Servlet, can you do this?
    2) Is there a way to update sub-sections of a Portlet without having the Portlet Container reload the entire page? In other words, does the JSR-168 specification have any provisions for using remote scripting inside a Portlet?
    My sense is that the two techologies "standard portlets (JSR-168 or WSRP)" and "remote scripting" are incompatible at this time. This is a shame because it means that providing a rich Internet application experience in a portal will require developer's to abandon these specifications in favor or Portal Server specific approaches.
    3) Lastly, does Plumtree have a solution to address this problem--i.e. if I build a Plumtree specific Portlet using your SDK, can I use remote scripting?

    A few issues:
    1. The idea of remote scripting runs counter to the idea of processAction. That is, processAction is blocking and expects other portlets on the same page to redraw after processAction is completed for the target portlet. Remote scripting means refreshing in place with no impact on other portlets. So it's difficult to see how remote scripting could be integrated into the specification.
    See PLT.5.2.4:
    If the client request is triggered by an action URL, the portal/portlet-container must first
    trigger the action request by invoking the processAction method of the targeted
    portlet. The portal/portlet-container must wait until the action request finishes. Then, the
    portal/portlet-container must trigger the render request by invoking the render method
    for all the portlets in the portal page with the possible exception of portlets for which
    their content is being cached.The render requests may be executed sequentially or in
    parallel without any guaranteed order.
    2. Plumtree specifically does not use the servlet container for the values of getRemoteUser() and isUserInRole(). This is because:
    (a) our users expect to get the authenticated Plumtree user.
    (b) The ways that users can be authenticated in a servlet container is specific to that vendor and version. For example, Tomcat returns whether the user is authenticated as well as the roles when the user logs in. BEA sets the roles in a weblogic.xml file. In other words, there is no uniform api for all servlet container vendors at this time. As a result, many web application authors will use their own mechanism (e.g. authenticate against LDAP), rather than release multiple versions of their product for each app server and version.
    3. To reference another servlet, make sure that the url to the servlet is in the gateway space, and then use the EDK to get the remote user name. This will return the same value as getRemoteUser in the jsr-168 portlet. If you just call getRemoteUser() on the servlet, it will return null, as we did not authenticate against the servlet application, we authenticated against the portal.
    Hope this helps.

  • Remote Scripting in JSP?

    Does anyone know how to perform the asp remote scripting feature
              in jsp?
              Smitty
              

    If you are using the Javascript version it does not POST data if you are using Netscape 4.x. It will only POST with IE and Mozilla. I had a look though the javascript include file and noticed this.
    It is probably a limitation of netscape. The java applet allows POST with Netscape. We use it with Netscape 4.x and some .asp pages.
    --jason

  • How to execute Remote scripts using OSB or BPEL

    Hi all,
    Can we execute the Remote Scripts from OSB and BPEL ??
    What is best way to invoke the scripts using OSB ?
    Thanks
    Phani

    Sutirtha,
    Thank you very much. I really appreciate all of your responses.
    I have one more question ( Sorry for flooding you with lot of questions :) )
    How to capture the errors which occured inside the SQL Scripts.
    My scenario is like this. I have two sql scripts Script_1.sql and Script2.sql namely. I would like to put dependency on the execution of the scripts.
    If Script_1.sql executes succesfully without any errors, then EXECUTE Script_2.sql
    else if Script_1.sql execution contains errors then DON'T EXECUTE Script_2.sql
    As of now, i observed that the Process flow shows Success State even if there is an error in the sql script execution. Because of which i was not able to put dependency on the execution of the scripts.
    I think i can do it by tweaking(changing) the code inside the SQL Scripts, like logging the errors in some log table and reading it before the next script execution.
    But the restriction is, I Should not touch/change the existing SQL Scripts.
    Do we have any mechanism in the ProcessFlows to identify the SQL Errors that occurred during execution of SQL Scripts ?
    Please suggest any idea on this. It will be great if you can help in this.
    Thanks in advance,
    SriGP.

  • Running a remote script

    Hi,
    at the company i work for , we started using the Flash Media
    Server. Nice stuff, got it up and running.
    Now there is an issue. Is it possible to run a remote script
    that resides on the same server as FMS? It's for the following
    scenario :
    A user uploads an flv-video, and after he presses save, that
    video needs to be distributed amoungst other servers in different
    countries. We've got the script read that will wait until it is
    executed and that copy the given file around.
    So i'm wondering if there is a way in server-side
    actionscript to make a call to a script outside of FMS. Something
    like External(scriptname,arguments) or such. Is this possible in
    FMS?

    No, you would need to call a PHP/ASP/CFM server side file to
    do that. You can do that with the loadVars object.

  • WLST deployment scripts not installing ODSI created services

    Some time ago, I modified some example scripts that installed ALDSP 3.0 assets into an ALDSP 3.0 domain, and everything was working dandily. A few months ago, we upgraded our ALDSP 3.0 domain to ODSI 10gR3. We also found we were still able to use the same WLST scripts with no modifications to install the assets into our ODSI domain.
    Now, what I have found is that when we export a dataspace into an ODSI jar from ODSI Workshop and install it with this script, the script only installs those services that were originally created in the ALDSP Workshop. If I install the exact same jar through the ODSI console, it installs all of the services as expected.
    Has anyone else seen this sort of behavior with using WLST scripts to deploy ODSI assets. I'm guessing something has changed that I need to account for in my script, but I haven't been able to find it yet. Any help would be appreciated.
    Edited by: DoubleT on Oct 8, 2009 5:20 PM

    so you have some dataspaces (projects) in ODSI that you can export and then deploy with WLST, and some dataspaces that you cannot, correct?
    To make sure that the first bunch actually do deploy, you could go to the ODSI console, delete them, deploy with WLST and check the console to see if they have reappeared. When you're convinced that works, and you're convinced that the others don't deploy - your just left with figuring out the difference. The simpler they are, the easier to diff them. If you're down to something really simple and don't see anything - engage customer support to help.
    It's unlikely that deployment fails without emitting some sort of error message - I would be looking in the server log.
    In ODSI 10.3 - the sample wlst scripts - SessionCommands.py expects the jar to be in user.dir instead of "rootFolder" in 3.2. (see below). There is also a README.TXT and a DspSecurityPolicy.py script.
    --------------------- ODSI 10.3 - SessionCommands.py ------------------
    import DspCommonCommands as dsp
    print 'Connecting to weblogic server instance...'
    connect("weblogic","weblogic","t3://localhost:7001")
    print 'Creating a deployment session...'
    dsp.createDeploymentSession('ALDSP_WLST_SESSION')
    #Import here uses the default DeploymentOptions
    #To use fancier DeploymentOptions inline the code of dsp:importDataSpace
    #and make necessary changes
    userDir=System.getProperty('user.dir')
    importJarPath=userDir+'/SimpleApp.jar'
    print 'Importing ' + importJarPath
    dsp.importDataSpace('SimpleApp','ALDSP_WLST_SESSION',importJarPath)
    print 'Activating the deployment session...'
    dsp.activateDeploymentSession('ALDSP_WLST_SESSION')
    #Export here uses the default ExportOptions
    #To use fancier ExportOptions inline the code of dsp:exportDataSpace
    #and make necessary changes
    exportJarPath=userDir+'/dataspace_with_config.jar'
    print 'Exporting the dataspace to ' + exportJarPath
    dsp.exportDataSpace('SimpleApp',exportJarPath)
    print 'Disconnecting from weblogic server...'
    disconnect()

  • Add-DhcpServerInDC failes in Remoting Script

    Hello everyone,
    I am currently scripting the installation of two DHCP servers for a Windows Server 2012R2 DHCP failover cluster.
    I used the technet description on how to do it.
    Unfortunately the authorization of the server fails when executing the script (The script is run remotely via Invoke-Command with Domain Admin credentials):
    Write-Host "Authorizing the DHCP server in the Active Directory"
    if (Add-DhcpServerInDC) {
    I have a transcript running on the remote machines that shows the following:
    PS>TerminatingError(Add-DhcpServerInDC): "Failed to initialize directory service resources for domain <domain>."
    When executing the Add-DhcpServerInDC command locally on the server (same user and elevated shell) I also get a warning, but the server is added (as verified with Get-DhcpServerInDC)
    WARNING: The DHCP server dedam-sv0485.corp.grimme.com with IP address 10.0.202.154 has been successfully authorized in
    Active Directory. Failed to initiate the authorization check on the DHCP server. Error: Access is denied.  (5).
    Does anyone have an idea why the two errors occur?
    Thanks in advance :)

    But that makes no sense to me, there are two packages, one called test with HelloSayer.java in it, the other called twitter with Tweets.java in it. I made the new destination in the xml by saying twitter.Tweets instead of test.HelloSayer, is there anything else I need to change? Like scope change to something else besides application?

Maybe you are looking for

  • H.323 Gateway is not Registering in CCM 4.1.2

    H.323 Gateway. I am using cisco2620 ======================================== nafay#sh run Building configuration... Current configuration : 966 bytes version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encry

  • Wrong query results: due to date format?

    hello, I have oracle 11 and when I execute this query: select MYDATE from mytable order by MYDATE DESC; it get me a bad order: MYDATE 25-MAR-09 13-MAR-09 10-MAR-10 10-MAR-10 31-JAN-10 29-JAN-10 28-JAN-10 08-DEC-09 07-DEC-09 06-DEC-09 05-DEC-09 is it

  • Tip: My MacBook Pro 5.2 (Early 2009) works great on Mavericks!

    Hi there, After upgrading to Mavericks I initially got what I deserved, or so I thought: a slow computer that wasn't working well with this advanced operating system. It was a very slow machine and I blamed Mavericks for it as all was still running w

  • Where can i get a duel processor for my iPhone 4 to be upgraded to the iPhone 4s

    where can i get a duel processor for my iPhone 4 to be upgraded to the iPhone 4s

  • Problems with Restore

    I did a backup on my iPhone 4S prior to trying to updated to iOS6. I have it setu[ to backup to the cloud. I tried to update to iOS6 but it failed. itunes showed the option to restore from my backup which I attempted to do, but it asks for a password