How to script the discovery of installed SAP instances (Windows)?

Hi,
I manage like two dozen of servers, some of which are pure sandboxes for Basis Persons. I sometime come over and discover a Java add-on to an existing ABAP instance, a new instance running...
I have followed the many threads about scripting shutdown & startup of known instances and it's quite easy to do. I initially made some scripts on each server to address the installed instances, but as they change, it pretty much forces me to go back and adjust.
There must be a simpler way!
So I want to discover all the running SAP instances (SID) on a given server, then the system numbers attached to any existing SID. Once I can query this on a server, I will be able to stop all SAP instances properly.
So how do you script the discovery of installed SAP instances (SID) and their respective components (instance 0, 1, ...)?
For the record, I use Windows shutdown scripts to systematically run a script that stops SAP instances, so my Windows Admin friends can reboot the servers without concern. I use a conditional Windows startup script to start all SAP instances when Windows starts, only if we want it to (i.e. planned maintenance is a good idea to want SAP to start automatically, all other reboot is definitly not a good idea).

Install something like Belarc Advisor and parse the resulting HTML

Similar Messages

  • How to disable the archive logs in SAP IDES(Windows) using SQL Server

    can any body tell us How to disable the archive logs in SAP IDES(Windows 2003) using SQL Server 2000.SP4.?

    Hi,
    Unfortunately, SQL Server does not have the option to turn off transaction logging. You can set the recovery mode to SIMPLE, instead of FULL. This will result in the transaction log being truncated on checkpoint.
    http://support.microsoft.com/kb/873235 - check this microsoft article
    This will help in reduction of the size of the transcation log.
    - Regards, Dibya

  • How to break the command line in SAP scripts

    Hi,
      Can any one Please guide me how to continue the command line( /: ) of SAP SCPRIPT into multiple lines.
    Regards
    Kiran

    Hi Kiran,
    U can continue in the same line itself by pressing SHIFT+F8
    If u want it in the next line then u can give space in the tag column.
    Thanks,
    Vinod.

  • How to change the default operators in sap web ui Search screen?

    How to change the default operators in sap web ui Search screen?
    For eg. Using advance search option , I have some fields with default operators like equals, contains,is between, is less than and is greater than. I don't need all these operators for this field.
    I need only "equals" operator. How do i remove the rest of the operators?

    There is a view cluster crmvc_dq where all the standard setting is present related to you r issue. Please try if you can modify that, that way you will avoid the code.
    Incase you are not able to make any changes there then in that case you have to redefine the method GET_DQUERY_DEFINITION () of the IMPL class to delete the operators for a particular serach field.
    Regards,
    Harshit

  • How to install Windows on MAC? (Can't see the check box "Install or remove Windows 7 or later version" on Boot Camp Assistant)

    I want to install Windows 7 on my MBP mid 2012 but in Boot Camp does not appear the check box: "Install or remove Windows 7 or later version". I continued with making the USB bootable with Windows 7 but then when I restart and boot with the USB I still can't install Windows because then I receive an error: ""Windows cannot be installed on this disk. The selected disk is of GPT partition style."  
    From OS with Boot Camp I didn't manage to make a partition for Windows instead I made one with Disk Utility (formated FAT).
    After booting from USB that partition was also formated into NTFS necessary for Windows. Still the same error.
    Any idea how to install Windows on my MAC?

    My Windows copy is a X64.
    MBP mid 2012 with Mountain Lion 10.8.3.
    Model Identifier:          MacBookPro9,2
      Processor Name:          Intel Core i5
      Processor Speed:          2.5 GHz
      Number of Processors:          1
      Total Number of Cores:          2
      L2 Cache (per Core):          256 KB
      L3 Cache:          3 MB
      Memory:          4 GB
      Boot ROM Version:          MBP91.00D3.B08
      SMC Version (system):          2.2f41
    Should have:
    MacBook Pro (13-inch, Mid 2012)
    MacBookPro9,2
    MBP91.00D3.B08 (EFI 2.9)
    If you are refering to this I tried to update the EFI version (I see only SMC version 2.9 as a diferrence of what I have)  but on installing I received an error: "This software is not supported on your system."

  • How to create the generic extractors in sap R/3?,pabitra

    Hi,
         How to create the generic extractors in sap R/3?
    Though it comes under cross application and the types of generic extractors are functional module ,db view,infoset query etc.Do u think the g.e can be built of one of the is types.plz tell correctly
    Advance thanks
    regards
    pabitra

    Hi,
    this is for DB view ,
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    this is for infoset query,
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb43b2455611d189710000e8322d00/frameset.htm
    Good day,
    regards
    Arun

  • Tell me the steps to install SAP NetWeaver 2004s Trial Version

    Tell me the steps to install SAP NetWeaver 2004s Trial Version

    Hi,
    Check this link,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/77317c8d-0701-0010-f093-ed35a427f559
    Cheers,
    Darshna.

  • How to deactivate the "left top corner SAP menu" for a particular screen

    Hello Friends..
    We have a requirement to implement a "Non Disclosure Agreement(NDA)" for one of our SAP systems. NDA screen will have 2 buttons, "I agree" and "I disagree" which pops up when you log in to the system(after filling up our user id and password and hit enter). If we click on "I agree", it will allow you to continue with the log in and takes you to sap easy access screen. If we click on "I disagree", then session will be terminated.
    But, the NDA window which is being popped up is also a SAP screen which has SAP menu on top left corner. Without clicking on "I agree" or "I disagree" and if we try to select "Create session" option in SAP menu on top left corner, then it is taking us inside SAP(sap easy access screen) by bypassing the buttons.
    Request your help on how to deactivate the "left top corner SAP menu" for this particular NDA screen. (SAP menu to be available with other screens and it should not be available just for the window which is being popped up after log in and before SAP easy access)
    Many Thanks in advance..
    Vinay

    Hi Vinay,
    Try this if it works -
    in your first screen for the NDA screen, on the memnu bar select - EXTRAS - SETTINGS - Select the check box 'Do not display menu, only display favourites'.
    on calling the next screen , disable this option in the PBO of the screen.
    Try and let me know if it works.
    Thanks & Regards, Swapnil Mishra

  • FTTC how long after the cabinet is installed and p...

    FTTC how long after the cabinet is installed and populated before orders are accepted?
    My exchange was originally to be FTTC enabled March 2012 then June 2012 then September 2012 then December 2012 and now .... wait for it March 2013. The dates are starting appear somewhat arbitrary. 
    A couple of weeks ago the FTTC cabinet was installed and populated, however just this week the FTTC enable date was pushed back from December 2012 to March 2013. Does it really take another six months after the caninet is installed and populated to enable to sevice?
    I have said with BT and not moved to the likes of Sky or Talk Talk (which would be cheaper and on the face of it offer increased speed) because my exchange was soon to be FTTC enabled.

    the mods only have the same information any one else has
    this link should help you more http://www.superfast-openreach.co.uk/where-and-when/
    It shows your exchange as planned for March 2013
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • My MACBOOK Pro turned out to be Snow Leopard, and later upgraded to LION. And update the EFI, I would like to replace the Snow Leopard, EFI can not boot, how do? How to use the Snow Leopard install disk to reduce EFI?

    My MACBOOK Pro turned out to be Snow Leopard, and later upgraded toLION. And update the EFI, I would like to replace the Snow Leopard, EFIcan not boot, how do? How to use the Snow Leopard install disk to reduce EFI?

    Do you mean some of your software does not work in Lion? Do you want to return to using Snow Leopard? If so, then do this:
    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • How to Script the "Upgrade Database" button in Configuration manager?

    Hi
    We want to automate the cloning process of the test env. to the dev. env. only problem is that the DBA is testing newer CU on dev, which means that we have to push the "Upgrade Database" button in configuration manager each time... any good solution
    to this?
    in short:
    How to Script the "Upgrade Database" button in Configuration manager?
    thanks!
    MM

    MM, is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    On windows load the airport utility .. latest correct version as possible.. there is no windows 8 but win7 works after a fashion.
    Make sure the TC is using SMB compatible names.. short no spaces and pure alphanumeric.
    Type the name directly into windows explorer.
    \\TCname or \\TCIPaddress
    If no luck turn off all the firewalls.. internal windows plus security software plus whatever other gargyoles and other rubbish AV software you have running.
    Ensure windows is able to at least ping the TC by IP address and name..
    Use the utility in windows to set file sharing to guest account on with full read and write access.. and set workgroup to WORKGROUP.

  • How to change the font dynamically in SAP script

    Hello,
    There are three fields for a line item to be printed in SAP form (Through Script). The font of one field has to be bigger than rest of the two.
    Can anybody tell me how to change the font of a specific field in a line of an SAP-script?
    Regards
    Kiran

    Hi,
    Its like any other character format. you can have any field with a character format.
    --Ragu

Maybe you are looking for