Need help in writinf a stop script for a production server

can somebody help me with a stop script which stops a jrun
production server.
jrun -stop production
this command should work but how do i use this in a script .
Thanks

Hi,
I highly recommend that you skip VBScript and learn PowerShell instead. This is pretty trivial in PowerShell:
If ($env:COMPUTERNAME.Length -le 15) {
# Do stuff
# HINT: Look into Start-Service
Write-Host "Under limit: $env:COMPUTERNAME"
} Else {
# Do optional stuff
Write-Host "Over limit: $env:COMPUTERNAME"
(OT: jrv - happy? =])
If you must stick with VBScript for some odd reason, here's an example to get you started:
Set wshNetwork = WScript.CreateObject( "WScript.Network" )
strComputerName = wshNetwork.ComputerName
If Len(strComputerName) <= 15 Then
'Do stuff here when the name is short enough
WScript.Echo "Under limit: " & strComputerName
Else
'Do stuff here when the name is too long (only if you want to)
WScript.Echo "Over limit: " & strComputerName
End If
http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/services/
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)

Similar Messages

  • Need Help in creating Unix Shell Script for database

    Would be appreciable if some one can help in creating unix shell script for the Oracle DB 10,11g.
    Here is the condition which i want to implement.
    1. Create shell script to create the database with 10GB TB SPACE and 3 groups of redo log file(Each 300MB).
    2. Increase size of redolog file.
    3. Load sample schema.
    4. dump the schema.
    5. Create empty db (Script should check if db already exists and drop it in this case).
    6. Create backup using rman.
    7. restore backup which you have backed up.

    This isn't much of a "code-sharing" site but a "knowledge-sharing" site.  Code posted me may be from a questioner who has a problem / issue / error with his code.   But we don't generally see people writing entire scripts as responses to such questions as yours.  There may be other sites where you can get coding done "for free".
    What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
    But the expectation here is for you to write your own code.
    Hemant K Chitale

  • Need help Installing Flash player 10.3 for firefox. It stops at 50%

    So I have Windows Vista Basic Home, I tried updating my Flash version in firefox because it was out of date, but everytime it start downloading it , then I get the a message that says "Error " Appliation in use."  I uninstalled it and followed all the suggestions on the websites nothing is working. I even  uninstall google chrome thinking it was the problem but I'm still having that problem so I really don't know what to do because now the only place Flash player is installed seems to be Google chrome that I had to redoawload, but everywhere else tells me that I need to install it.

    RE-RE-RE REPITO, NO ENTIENDO NADA DE INGLES, PARA ESTE IDIOMA SOY COMPLETAMENTE NULA, POR FAVOR TODOS LOS MENSAJES, NOTAS, ECT., MANDEN EN ESPAÑOL.
    Date: Thu, 29 Sep 2011 15:13:29 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help Installing Flash player 10.3 for firefox. It stops at 50%
        Re: Need help Installing Flash player 10.3 for firefox. It stops at 50%
        created by Kpiebo in Installing Flash Player - View the full discussion
    I have been at it since yesterday and it's still not working.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3945878#3945878
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3945878#3945878. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I need help setting up an apple id for my sons phone. It seems his email address has been taken and/or we cant get the password.

    I need help setting up an apple id for my son's phone. It seems his email address has been taken and/or we cant get the password.

    Two different things
    If you forgot the password
    If you forgot your Apple ID password - Apple Support
    If the email ID you want to use is in use by someone else - then you may need a new one
    The iCloud ID's are usually unique and may be of help if you set one up

  • I need help in finding a free update for my windows 7.5 mobile

    I need help in finding a free update for my mobile 7.5 windows phone
    Message was edited by: chevycamer427

    http://www.windowsphone.com/en-us/store/app/adobe-reader/bc4f319a-9a9a-df11-a490-00237de2d b9e
    [topic moved to Windows Phone subforum]

  • I need help in activating apple id to for the find my iphone app

    i need help in activating apple id to for the find my iphone app

    What sort of help are you requesting from us, your fellow users? What exactly is the problem/issue?

  • I need help to find the serial number for Photoshop Elements 11

    Hi! I need help to find the serial number for Photoshop Elements 11 I downloaded last year on Apple Application Store.. I have been using photoshop on mac for over a year and now need the serial number to be able to use it on macbook. I looked up Adobe's website for help but found none and noone to ask for support.. Any ideas how I can get the serial number using the App Sore bill I have?

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • Need help activating Adobe Acrobat XI PRO FOR WINDOWS?

    need help activating Adobe Acrobat XI PRO FOR WINDOWS?

    Hi jurleana15722686,
    Are you working with a subscription version or perpetual (where you bought the software outright)? Are you running into a particular problem or receiving an error message when you try to activate?
    For starters, please check out this document: https://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html.
    If you're still having trouble, please let us know what the exact issue is, including any error messages that you're receiving. It would also be helpful to know what version of Windows you're using.
    Best,
    Sara
    [disucssion moved to Downloading, Installing, Setting Up forum]

  • Need help on buying FIREWIRE/USB-compatible for Logic Pro 9.0.2 on my SL

    Hi...Im in needs of help in my new OS Mac World.Had my Logic Pro 9(9.0.2) install in my Snow Leopard(10.6.3).Need help on buying FIREWIRE/USB-compatible for Logic Pro 9.0.2 on my Snow Leopard.Just a real basic audio interface that works with my Macbook pro Specification.You're help will be much more appreciated..
    Best Regards:RatzyMazzy

    In any case I would suggest to get an audio interface which is *Core Audio* compatible. This means that you just need to plug it in and it will work with OS X’s integrated driver. I once had an M-Audio interface which needed its own driver and it had latency problems because of them. I am currently using the EDIROL FA-66 with 10.6.3 on my MacBook Pro. It still works flawlessly and has worked without problems in the past with 10.4 and 10.5, too. Here is how it looks like: http://www.rolandus.com/products/productdetails.php?ProductId=731
    I have also heard good things about the FireWire interfaces from Presonus, like the FireBox.
    Björn

  • HT4623 Hi, I need help on how to update software for my ipad1, can someone help me?

    Hi, I need help on how to update software for my ipad1, can someone help me?

    The iPad 1 can not be upgraded beyond 5.1.1. If you haven't upgraded to iOS 5.1.1, see the info below.
    If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
    http://support.apple.com/kb/HT4972
    Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
    http://support.apple.com/kb/HT4623
    Information regarding transferring purchases from your iDevice to iTunes on your syncing computer can be found at the link below.
    http://support.apple.com/kb/ht1848

  • Is there a stop script for weblogc 4.5.1 on NT

    Hi,
    Is there a stop script for weblogc 4.5.1 on NT?? There is one for starting
    the server.
    Thanks

    You can use the following in a script if you don't mind exposing your
    password:
    java weblogic.Admin t3://myhost:myport SHUTDOWN system <password> <seconds>
    Guy
    In weblogic.developer.interest.environment Gaurav Khanna <[email protected]> wrote:
    Hi,
    Is there a stop script for weblogc 4.5.1 on NT?? There is one for starting
    the server.
    Thanks

  • What happened to the 24/7 live chat for mobile me? I need help right now. Too complex for this. Crime involved., What happened to the 24/7 live chat for mobile me? I need help right now. Too complex for this. Crime involved.

    What happened to the 24/7 live chat for mobile me? I need help right now. Too complex for this. Crime involved., What happened to the 24/7 live chat for mobile me? I need help right now. Too complex for this. Crime involved.

    Hi Tmswrite,
    Here is what you want to do to protect yourself and your device:
    Find My iPhone Basics  - Apple Support
    iCloud: Find My iPhone overview
    Here's some information on how the Activation Lock protects you:
    Find My iPhone Activation Lock in iOS 7
    Sorry for your troubles. Hope it turns out OK for you!
    GB

  • Where can i find start/stop scripts for all SAP instances

    Hi,
    I installed CI, DB and Dialog instance on a standalone S10 machine and i could see start scripts under /sapmnt/RAM/profile
    START_DVEBMGS09_hostSAP
    START_D24_hostSAP
    But i cann't see stop scripts for the above and also i cann't see start and stop scripts for SAP DB instance. Could some one point me where i can find them when everything is installed on a single box.
    Thanks,
    Ram

    USAGE: STARTSAP.EXE name=<SID> nr=<SYSNR> SAPDIAHOST=<host>
    FURTHER INFORMATION:
    - The executable sapstart.exe must be in the same directory
    when you start sap instacne, it will check db instance first, if db instance not start , it will automatic start db instance then sap instance.
    vice visa :
    stopsap is alos can be used.

  • Script for Checking the Server Status

    Hi All,
         I just need the script for monitoring the server status through the WLST.My scenario:I have 2 server in Running State.If any one of the server get failed or in not RUNNING state then i use the script for starting that server automatically.I tried some of the script but it is not working properly .If any one have the sample script please share with me.
    Regards,
    Ove.

    Hi Syed,
    Replication state is very easy to see in 4.x and earlier. The last changenumber in the supplier changelog is visible (on the root DSE IIRC), and each consumer suffix has an operational attribute "copiedfrom" that tells you the name of the supplier, the database generation id, and the last change replayed from the supplier.
    So a script that compares the results of
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" lastchangenumber
    and
    ldapsearch -h <consumer> -s base -b <base_suffix> "objectclass=*" copiedFrom
    will show you if a replica has fallen out of sync. It won't tell you more than how many changes behind the replica is, though, because pre-5.x changenumbers are sequential integers, not timestamps.
    However, the change that corresponds to the changenumber is clearly visible under the "cn=changelog" suffix. So if you look at the change itself you can see the timestamp on it.
    For more info on the status of replication, you should be able to query the agreements on the supplier. Those live under the "Netscape Machine Data Suffix", which you can also find on the supplier's root DSE:
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" netscapemdsuffix
    And of course the error logs will usually tell you if replication is failing outright.
    I may be off on some of the attribute names, but if you do some investigating along these lines, you should be able to figure it out.

  • I Need HELP to config my laptop in France HP's Server URGENT

    Hello,
    i've ben connected to your Site (US HP) and i've make  my desired config in one pavilion DV8, but i live in France and  i can't make this config in HP France (Not this one and others)  i dont ave this possibility here and i need to know why???
    i need to buy my laptop until the begining of the next month... what can i do????? Help me Please.....
    the second question is that i want my laptop in a PT Layout kayboard were can i do that????
    and 3) question i dont want the GT230M graphic card... for my needs i prefere one like HD 5850 or faster and better...
    Can someone help me please or  a responsable for HP products send me for one good way??? please i need all your hel....
    please...
    by....
    URGENT... 

    This is the user forum, and we can't sell you anything. Contact HP through ordinary channels, but I can tell you they can only sell you what they have to sell. There is no special custom configuration of laptops beyond the store checkout available on the web.

Maybe you are looking for

  • Re: Airprint on HP officejet Pro 8500 A909G

    I have an ipad and would like to print from it to my HP office pro 8500A. Could someone please help me with this. Thank you. snissen 

  • PI 7.1 LDAP connectivity

    Hi , We configured our PI 7.1 system to connect to Active Directory(LDAP), we completed all the configuration in T Code-LDAP.But when i see Java stack user administration --> Configuration Data Source is still ABAP System. I am not able to change Jav

  • NullPointerExceotion on Timer.cancel

    Hi everyone! I'm a bit messed up with a rebellious timer in my program. It is supposed to measure a timeout between a messege sent by a server and a response from a client. Everything runs in UDP. So, the server sends a keepalive message periodically

  • HT203433 Songs cut off in middle downloaded latest American idol ablum

    Just purchased American idol latest ablum and the songs cut off in middle

  • Bravia TV Won't Play YouTube

    Hi, I bought the Sony Bravia KD-55X850B 4K TV earlier this year but suddenly it won't play YouTube videos. All was fine before. Is there something wrong with the app on the TV? The message is "Sorry Cannot Play This Video" - first it was for live str