Can I make a Recovery Task "configurable"?

Hi all,
I built a recovery task in a cross platform MP that replaces a Linux shell script, if the MD5 checksum does not match.
When I use hard coded paths, this works fine, but I wanted to make it more "configurable". The only way that came into my mind was using an environment variable. We do this in an other MP, but not in a recovery task but in a Console task, e.g.:
<Application>%windir%\system32\mmc.exe</Application>
The above mentioned console task works fine, but as soon as I replace the path of the file with an environment variable, the recovery task does not work any more.
Any suggestions?
Thanks, Holger.
Holger alias InternetSmurf, Munich, Germany

Hi Jonathan,
I am using a simple recovery task (what I found to implement) based on a simple two state monitor:
<Recoveries>
<Recovery ID="MyCompany.Servers.Linux.PRIMERGY.EecdManagement.CheckMD5Script.Monitor.Recovery" Accessibility="Public" Enabled="true" Target="MyCompany.Servers.Linux.PRIMERGY.EecdManagement" Monitor="MyCompany.Servers.Linux.PRIMERGY.EecdManagement.CheckMD5Script.Monitor" ResetMonitor="false" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<WriteAction ID="CopyScript" TypeID="Unix!Microsoft.Unix.SFTPTransfer.WriteAction">
<Host>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
<Port>>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/SSHPort$</Port>
<UserName>$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/Password$</Password>
<SourceFile>C:\Program Files (x86)\MyCompany\ServerView Suite\SCOM Integration\SVISCOM-Lin\sh\EecdHealth.sh</SourceFile>
<TargetFile>/opt/MyCompany/ProgramSuite/MyMP/sh/EecdHealth.sh</TargetFile>
<TimeoutSeconds>30</TimeoutSeconds>
</WriteAction>
</Recovery>
</Recoveries>
This way it works. When I replace the path in the "SourceFile" tag or in the "TargetFile" tag by a self defined environment variable, the recovery does not work any more.
As far as I understand, the monitor does not know anything about the recovery - how could / should I pass something "from the monitor" to the recovery task?
What do I don't see?
Thanks, Holger.
Holger alias InternetSmurf, Munich, Germany

Similar Messages

  • I am trying to install Lion on my imac and it says it can't make a recovery disk

    I am trying to install lion and receive a message saying it can't make a recovery disk.  I am using a 2.33 GHz Intel Core 2 Duo iMac.  I do have bootcamp on it, but was never able to install Windows.

    What happens when Lion installs is it creates a Lion Recovery Partition at the very bottom area of the drive, this is used to Command R boot into and perform Disk Utility Repairs and reinstall Lion from Apple's servers much like a 10.6 disk will.
    So when you ran the Lion installer, it couldn't create this small partiiton, either because the GUID partition table (the map of your paartitions on the drive) is borked or there is data all the way to the bottom of the drive or OS X thinks there is.
    You set up the bootcamp parittion, so run that and delete the Bootcamp partition as your not using it or Windows, once it's finished reboot and try installing Lion again.
    I should warn you, Lion will not run your Rosetta based software or hardware drivers for external hardware, you may have to purchase all new versions. Not only that, hardware drivers may not be available for 10.7 thus rendering your third party printers, scanners etc useless.
    Before you install Lion, you should consult this web page
    http://roaringapps.com/apps:table
    to see if your current programs will break and when to expect a new version (likely paid)
    Also you shoudl check your hardware and the makers site if there is a 10.7 compatible driver/software for them.
    And once you think your ready to go to Lion, get a blank external powered drive and a free/donationware copy of Carbon Copy Cloner to clone your present (non-Filevault) 10.6 boot drive to the external drive.
    Later if 10.7 doesn't work for you, simply hold the option key and boot off the 10.6 clone, use Disk Utility to Erase the entire drive (the whole drive!) and reverse clone 10.6 back onto the internal drive.
    http://www.bombich.com/get_ready_for_lion.html

  • Miix 2 8, Can't make a recovery drive!!

    Hi, Miix is less than a week old and I am trying to make a recovery drive, just in case.
    I followed the instructions here
    http://support.lenovo.com/en_US/downloads/detail.page?DocID=HT076024
    But the first thing is the "Copy the recovery partition to the drive..." is grayed out. No matter, I thought, so clicked "Next" only to be told, "Can't make a recovery drive as some of the files are missing."
    I know the recovery partition is still there and working as just a few days back I had to do a full recovery. This thing crashes more than a crazy driver on crack.
    I am getting nervous and wanted to make a security backup drive.
    How can I do that?
    Thanks

    Hey,
    Have you already tried formatting the recovery stick first?
    I have also created recovery USB stick on my Satellite T230 that also doesnt have an optical drive and I used an 8GB Spaceloop USB stick and this worked properly. Before I did this I formatted the stick (no quick format, normal format) with default settings.
    Furthermore it would be interesting to know if the USB devices work properly under Windows or do you have problems with USB devices too?

  • Can I make a Data Guard configuration using EM console without Grid Control

    Can I make a Data Guard configuration using EM console without Grid Console?
    Can I download Grid Console software from Oracle website without cost?

    Assuming this is for 10g,
    You could use Oracle® Data Guard Broker
    Even you can download Grid Control software for free from Oracle site, you can't legally use it without license.

  • How can I make a recovery disk for an imac 24 "  early 2008 to April 2009 or connect via thunderbolt to another imac

    How can I make a recovery disk for an imac 24 "  early 2008 to April 2009 or connect via thunderbolt to another imacimac 24 "   or connect via thunderbolt to another imac
    ann

    You will only know about the hard drive when you try to access it in TDM from your other computer. If you cannot boot into TDM mode or if the drive does not appear on the new computer's Desktop then it is likely bad.
    What you are thinking about as a recovery disk is the Recovery HD normally created when you install Lion or later on the computer. You boot from it as follows:
    Boot Using Command+R keys:
      1. Restart the computer.
      2. Immediately after the chime press and hold down the
          "COMMAND" and the "R" keys together.
      3. Release the keys when the Utilities Menu appears.

  • Can you make a recovery disk with a mac?

    I have two mac computers. One works that I currently use for personal use. But I recentlly bought a "fixer up iBook G4" that needs an install disk of 10.5 Leopard. I cannot find my disks that came with my Powerbook g4 but can I make a restore disk or recovery disk so I can restore the operating system that's on the iBook g4?
    Thanks in advance!

    Connect the two computers using a FireWire cable. Use Target Disk Mode to clone the one drive to the other. Boot the iBook into TDM, then boot the PB normally. The iBook's drive should appear on the PB's Desktop. Use Disk Utility to erase the iBook's hard drive, then use Restore to clone the PB's drive to the iBook:
    Clone using Restore Option of Disk Utility
      1. Open Disk Utility in the Utilities folder.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Select the destination volume from the left side list and drag it to the Destination
          entry field.
      5. Select the source volume from the left side list and drag it to the Source entry field.
      6. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

  • Can not make a recovery disc for Toshiba Laptop

    When I try to make a recovery disc for my Toshiba Satellite L305-S5919 I receive the following message:
    An error occurred in the recording phase. Please check if the disc is scratched or dirty.
    Error Code: 0E01B5-26-2A040301.
    I have tried to do a recovery disc since buying the Computer in June 2009. The message always comes up at the same spot in the process. I am using DVD-R discs.

    Can you burn to those disks using the regular Disk Writer Program?  It doesn't matter what type as long as it's to that same batch of disks.
    I would contact Toshiba as per this post and request that they provide you with a set of Recovery Disks since you can't make your own.  They shouldn't charge you for them under the circumstances, but you might have to be forcefull about it.
    If you don't post your COMPLETE model number it's very difficult to assist you. Please try to post in complete sentences with punctuation, capitals, and correct spelling. Toshiba does NOT provide any direct support in these forums. All support is User to User in their spare time.

  • Generate report for Recovery task configured under Unit monitor

    How to create report for the recovery task run under Unit monitor. Whether it run successfully or is there  was any failure status reported. or we can use any power shell command to extract such details.
    Omkar umarani SCOM STUDENT

    Hi,
    Try using ping www.bing.com  >>status-report.txt, the results will append to the txt file.
    Diagnostic and Recovery Tasks
    https://technet.microsoft.com/en-us/library/hh551141.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Can I make a recovery email for an Apple ID that already exists

    How do I do that?

    Hi Ninjaflameboy,
    If you would like to set up a Rescue Email address for an existing Apple ID, you may find the following article helpful:
    Apple Support: Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/ht5312
    Regards,
    - Brenden

  • HT4718 How i can make a recovery

    How can I make the recovery when apple ask me an other apple ID ??  because they said that i didn't bought OS X lion with this apple ID ....

    Hi,
    Please let me know how can I know  which Apple ID was used while buying the mac.
    Actually earlier I had french apple account with my iphone in france but once I moved to london then bought My MAC this year and now I am in sinagpore using same Mac and trying to reinstall my MAC but could not do it becuase it's not accepting my active french account. I forgot which I apple account I used while buying the Mac in london.
    Please let me know if you can help me.
    Thanks,

  • S10e: How can I make my external DVD being detected to boot Recovery System

    I bought an IDE-USB Adapter and connected a DVD to the Netbook. But the device is not found even by the BIOS, too.
    So I can not install the System. In addition there will be no BIOS update available for LINUX to detect DVD drives if this is the problem.
    How can I make my Recovery DVD run on my Lenovo Ideapad S10e?
    Solved!
    Go to Solution.

    You use a normal 5 1/4 " DVD/CD drive,.it needs 12V dc did you powered the drive... ?
    So the adapter is not recognized, thats bad ....the usb-ide adapter is defective....
    The second question is... 
    Linux cant use any .exe files ...its not windows... thats normal...
    so what will you install on it ?
    Biosupdate ? is the only one .. i think.. but that is a problem for lenovo... i didnt see an biosupdater under linux
    Why you buy those expensive ide-usb adapter ?
    you can get a slimline cd usb drive is available for 25 $ (or 25€) on online shopper...
    and you dont need a power adapter ...
    Greets KalvinKlein
    Thinkies 2x X200s/X301 8GB 256GB SSD @ Win 7 64
    Ideas Centre A520 ,Yoga 2 256GB SSD,Yoga 2 tablet @ Win 8.1

  • Recovery Task for starting a stopped service not working (2012)

    I created some monitors in SCOM 2012 to monitor some third-party services on one of our Windows 2008R2 SP1 servers (virtual).  In the custom monitor, I created a "Start Service" Recovery Task using this guide:
    http://www.opsconfig.com/?p=478
    But the Recovery Task is failing.  I looked at the Health Explorer for the critical error notifiying me that the service stopped and it shows that the recovery task ran successfully but has the following error:
    Output
    None
    Error
    The service name is invalid.
    More help is available by typing NET HELPMSG 2185.
    Exit Code: 2
    I have the Recovery Task configured as follows (bear in mind I'm testing this on a monitor that is only enabled for my test server, and i'm testing it with a non-critical service (Adobe Acrobat Update Service.))
    If I connect to the server via RDP and use a command prompt to CD to C:\Windows\system32 and execute net.exe start AdobeARMservice, it starts fine.
    What's up with this?  I even tried sc.exe but that failed as well.

    If so, it is the server side issue. Is there anything related to it in Event log?
    Juke Chou
    TechNet Community Support

  • I can not make a "Automated Installation of the Introscope Agent" (Managed System Configuration, p.7)

    I can not make a "Byte Code Adapter Installation"
    When I open meets both paragraphs in step Managed System Configuration is somewhat obscure situations that do not allow the automatic configuration Introscope agent and Introscope Manager
    Please help to resolve a number of questions that might help me complete the setup :
    1. Why has the status of Enterprise Manager : <No Enterprise Manager configured> ( see picture)
    I set up Enterprise Manager in accordance with the installation instructions and complied with all the setting items . Since without any configuration can be associated with the appearance of this status ?
    2 . Why Server Node is empty detail settings ?
    JDK Location: 
    Enterprise Manager Host: 
    Enterprise Manager Port: 
    Introscope Agent Name: 
    Introscope Agent Profile: 
    Autoprobe Directives: 
    Wily Version: 
    Introscope Agent Version: 
    Introscope Agent Log Location:
    3 . What a mistake ($ MC: DIAG_WILY_MSG: 032 : L), which appears when I click configuration "Configure Introscope Agent Setup ...", and what it can be linked ? ( see picture )
    And the last question , which is also linked to the process of automatic configuration and refers to a phrase from the instruction (Introscope Version 9
    Installation Guide For SAP July 2012) points out "Automated Installation of the Introscope Agent via SMD"
    there is such an item:
    2 . Deploy ISAGENTJ5 *. SCA which is the Introscope Java Agent 9 with SDM to Solution Manager. You may need to deploy also ISAGENT *. SCA which is Introscope Java Agent 8.
    However, nowhere does it say where exactly ( on what the absolute path ) I must perform unloading and then what to do with this discharge

    The problem was resolved a small manipulation - on stage Basic Configuration,
    point 3 "Configure CA Introscope"
    I forgot to add to the list of CA Introscope Enterprise Managers link to my manager.
    Thus it is necessary to take into account that the path should be correct (usually for linux - /usr/sap/ccms/apmintroscope) and the directory should be applied appropriate privileges.
    Then in paragraph "Byte Code Adapter Installation" - there are all the necessary data, and it starts to work correctly

  • Mountain Lion Recovery DVD - How can I make one, ML was installed on my iMac and BBP

    Mountain Lion Recovery DVD - How can I make one, ML was installed on my iMac and MBP when I purchased them. When I look at the App Store, it dose not show ML as purchased (to download again) - do I have to purchase it again to make a Recovery DVD?
    Thanks for your help.
    Regards
    NGI

    do i have to purchase it again to make a Recovery DVD?
    No. You can still make a bootable recovery DVD, but you will not be able to make a full bootable copy of ML without purchase.
    1) Enable the debug menu for Disk Utility via Terminal Application. Navigate to terminal by typing "terminal" in   spotlight. Copy the bolded text below and enter it into the command prompt:
    defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true ; open -a "Disk Utility" ; exit
    2) From the Debug Menu > Select Show every Partition > Recovery HD should appear
    3) Right click (control + click) the Recovery HD partition and select "Mount"
    4) Right click again the partition again > "Reveal Recovery HD in Finder". Leave this window open
    5) At this point, you will need open terminal again and enter the following command:
    sudo chflags nohidden /Volumes/Recovery\ HD/com.apple.recovery.boot/BaseSystem.dmg ; exit
         Type your password when prompted.
    6) Navigate back to the Recovery HD finder Window > com.apple.recovery.boot > BaseSystem.dmg
    7) Drag "BaseSystem.dmg" into Disk Utility's sidebar.
    8) Insert your DVD
    9) Select "BaseSystem.dmg" in the sidebar and hit "Burn"
    Once the burn is completed, hold option down at startup and select the DVD to boot. This is a bootable Recovery partition, not a bootable copy of ML.
    Note: to disable the debug menu,
    defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool false

  • When I open my email account thru Firefox, there is a blinking message in my task bar stating that "lorainemihiril" sent me a message. I DO NOT know this person, I can't make it go away and I NEVER use instant messaging. How do I get rid of this???

    When I open my email account thru Firefox, there is a blinking message in my task bar stating that "lorainemihiril" sent me a message. I DO NOT know this person, I can't make it go away and I NEVER use instant messaging. How do I get rid of this??? Sometimes there is more than one of these flashing messages all with the same name.

    Disable Yahoo Messenger in your Yahoo Mail account.
    Use the arrow on the right of your account name to go offline or sign out.
    * http://help.yahoo.com/kb/index?locale=en_US&y=PROD_ACCT&page=content&id=SLN2003

Maybe you are looking for

  • Apple Macbook wont open applications just closes down saying " application has closed unexpectedly"

    any ideas how to fix this , its doing it for safari , photo booth , msn ect, thankyou !

  • Crystal Report 2008 [CR Developer] version - connectivity issue

    Hi Folks, I am not sure this is right forum to post my question, after a long research I found this forum. Year ago I developed proto type reports in Crystal 11.5 version and integrated with Power Builder 11.5 to our client. It took almost a year to

  • [SOLVED]Yajl 2.0 disabled yaourt

    after upgrading to yajl 2.0 today every yaourt operation about package results in: package-query: error while loading shared libraries: libyajl.so.1: cannot open shared object file: No such file or directory is there any temporary way to workaround i

  • Sync server failed to sync the iphone

    Good Day! Everytime I try and sync my contacts I get this error message "Itunes could not sync contacts to the iPhone because the sync server failed to sync the iPhone". What do I need to do? Itunes 11.2.2.3, Windows 8.1, iPhone 5 (IOS 7.1.2) Thank y

  • Renting a movie on Apple TV Problem

    All - I've been renting movies from iTunes via the Apple TV and the issue I have if i don't watch them right away, they sit in the top tray and show "rented" but when I click on them to play them I get: "! An error occurred loading this content. Try