Ichat script fails with lion

Hi!
I have an applescript triggered by going online with ichat that updates my status on my website which worked fine in snow leopard.
What it does is send a json file to my server via ftp:
using terms from application "iChat"
on login finished
do shell script "curl -u ftpuser:password -T /Users/Me/Documents/Stuff/status/online/status.js ftp://ftp.serveur.com/statut.js"
end login finished
end using terms from
When I use it now it returns an error:
Erreur : sh: c: command not found
Any clue?
ps: The script (curl...) works fine in terminal.
(mantra: I love lion, I love lion, Ilove lion 100 time before going to sleep...)

Hi,
Yes the Leopard and Snow Leopard forums for iChat still show as "Refine this List" items (I search for terms now and then but mostly for 'iChat")
The current Community is about where the iChat AV category (iChat 3 and iChat 2.1 & Earlier) used to be but has become one community and "lost" the iChat 2.1 and earlier forum and somewhat achieves what the regular posters wanted (One palce for iChat).
Part of the issue is also that Users Tips under the new Software have yet to permeate to many of the regular communities.
Add to that the fact that IMAgent is doing a  job for iChat and for FaceTime in Lion (difficult to know where to put a "Sticky"/Users Tip
8:41 PM      Monday; February 13, 2012
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
  iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images."  No, Seriously

Similar Messages

  • Why does this script fail with OS X Lion?

    The following AppleScript has been woorking just fine ronning Snow Leopard. Under Lion only the first site is loaded and the other Safari tabs are Untitled. Does anyone know what is wrong and how do I fix it? Thanks for any help.
    Hugh
    ---------------------------------------------------- Non-working script ---------------------------------------------------------------------
    tell application "Safari"
              open location "http://www.macrumors.com/"
              tell window 1 to set current tab to make new tab with properties {URL:"http://www.macworld.com/"}
              tell window 1 to set current tab to make new tab with properties {URL:"http://www.macnn.com/"}
              tell window 1 to set current tab to make new tab with properties {URL:"http://reviews.cnet.com/macfixit/?tag=mfiredir"}
              tell window 1 to set current tab to make new tab with properties {URL:"http://www.macintouch.com/"}
              tell window 1 to set current tab to make new tab with properties {URL:"http://arstechnica.com/apple/"}
              tell window 1 to set current tab to make new tab with properties {URL:"http://www.appleinsider.com/"}
    end tell

    Does anyone know what is wrong and how do I fix it?
    Actually, I don't know why your script fails with Mac OS X Lion. I can only suggest the following workaround, which seems to work properly:
    set myURLs to {"http://www.macworld.com/", "http://www.macnn.com/", "http://reviews.cnet.com/macfixit/?tag=mfiredir", "http://www.macintouch.com/", "http://arstechnica.com/apple/", "http://www.appleinsider.com/"}
    open location "http://www.macrumors.com/"
    tell application "Safari"
        activate
        tell window 1 to repeat with thisURL in myURLs
            set current tab to make new tab
            my newTab(thisURL)
        end repeat
    end tell
    on newTab(theURL)
        tell application "System Events"
            keystroke "l" using command down
            keystroke theURL & return
        end tell
    end newTab

  • The PowerShell script failed with below exception

    I'm receiving the following errors on all SQL Express Servers (every machine that has SQL Express inside).
    it seems that the discovery has found SQL Express but could not connect to the instance.
    details on the alerts:
    Date and Time:
    10/22/2013 12:04:22 PM
    Log Name:
    Operations Manager
    Source:
    Health Service Modules
    Generating Rule:
    Collect Power Shell Module Events
    Event Number:
    22406
    Level:
     Error
    Logging Computer:
    SQLEXPRESS.DOMAIN.COM
    User:
    N/A
    Description:
    The PowerShell script failed with below exception
    System.Management.Automation.RuntimeException: Exception calling "Fill" with "1" argument(s): "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not
    accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
    At line:44 char:19
    + $SqlAdapter.Fill <<<< ($DataSet)|out-null
    at System.Management.Automation.FlowControlNode.Execute(Array input, Pipe outputPipe, ExecutionContext context)
    at System.Management.Automation.ParseTreeNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
    at System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement, Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
    Script Name: StolenServerMemory2008.ps1
    One or more workflows were affected by this.
    Workflow name: Microsoft.SQLServer.2008.DBEngine.StolenServerMemoryMonitor
    Instance name: SQLEXPRESS
    Instance ID: {9705795C-4F3B-C2EF-AA7D-C736B40FD6A4}
    Management group: SCOMGROUP 

    Some additional inf.
    http://stackoverflow.com/questions/6466974/unable-to-connect-to-sql-express-error-26-error-locating-server-instance-speci?rq=1
    anyway you can disable this rule/monitor as no control from monitoring solution in that case. Or try to rewrite the same monitor...
    The problem in your case is when function tries to get Max Server Memory MB by connecting to master DB, but you can replace it with performance counter like Target Server Memory (KB)...
    just see the function main in StolenServerMemory2008.ps1 and what you need to replace
    $api = New-Object -comObject "MOM.ScriptAPI"
    $bag = $api.CreatePropertyBag()
    $msg = [Environment]::NewLine
    $err = [Environment]::NewLine
    #try {
    $maxMemoryMB = GetMaxServerMemoryMB $ComputerName $InstanceName
    $stolenPages = (Get-Counter ("\" + $PerformanceCounterObject + ":Buffer Manager\Stolen Pages")).CounterSamples[0].CookedValue
    $pakeSizeKB = 8
    [double]$stolenMemoryMB = $stolenPages * $pakeSizeKB / 1024                                      
    [double]$stolenMemoryPercent = 0
    if($maxMemoryMB -gt 0){
    [double]$stolenMemoryPercent= 100.0 * $stolenMemoryMB / $maxMemoryMB
    $bag.AddValue("StolenMemoryMB", $stolenMemoryMB)
    $bag.AddValue("StolenMemoryPercent", $stolenMemoryPercent)                                  
    $msg += "StolenMemoryMB=$stolenMemoryMB StolenMemoryPercent=$stolenMemoryPercent"
    $msg += [Environment]::NewLine                          
    #debug $api.LogScriptEvent("SQL 2008 Stolen Server Memory data source", $SCRIPT_EVENT_ID, $INFORMATION_EVENT_TYPE, $msg + $err)                     
    #catch {
    #             $header = "Managegement Group: $Target/ManagementGroup/Name$. Script: {0}" -f ($MyInvocation.MyCommand).Name.ToString()
    #             $msg += "Error occured during SQL 2008 Stolen Server Memory data source executing.{0}Computer:{1} {0}Reason: {2}" -f [Environment]::NewLine, $env:COMPUTERNAME, $_.Exception.Message
    #             $api.LogScriptEvent($header, $SCRIPT_EVENT_ID, $ERROR_EVENT_TYPE, $msg + $err)                           
    $bag

  • Troubleshooting PostPrepare script failed with exit code 1

    i get a 'PostPrepare' script failed with exit code '1' message on one of the bundles, and i think i am missing some obvious thing
    it is a simple file bundle, to distribute a pdf printer:
    it distributes 2 files:
    ADIST.PPD to /usr/share/cups/model
    pdf-printer to /usr/lib/cups/backend
    (script based upon Cool Solutions: A CUPS PDF Printer for your SUSE Linux Enterprise Desktop
    then it should execute a pre-installation script that executes:
    Code:
    #!/bin/bash
    rccups restart
    mkdir -p /export/share/pdf
    chmod -R 777 /export
    lpadmin -p Desktop-PDF -v pdf-writer:/export/share/pdf/ -E -P /usr/share/cups/model/ADIST5.PPD -D "PDF Writer for CUPS" -L "PDF on desktop"
    manually placing the files on these locations and executing the script works fine
    on the machine i get (device set to log debug and above)
    Code:
    22 Jul 2010 09:33:00 INFO BundleManager Executing preprepare scripts for PDF printer
    22 Jul 2010 09:33:00 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:00 INFO WebCache Attempting to retrieve 'https://zlmserver/zenworks-pkgmgt/repo/getBundleFile/3ba56c5bc95bb2874273a7d0cae07d14/8/sled-11-i586/ADIST5.PPD' (try 1)
    22 Jul 2010 09:33:01 INFO WebCache Successfully retrieved https://zlmserver/zenworks-pkgmgt/repo/getBundleFile/3ba56c5bc95bb2874273a7d0cae07d14/8/sled-11-i586/ADIST5.PPD
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 INFO WebCache Attempting to retrieve 'https://zlmserver/zenworks-pkgmgt/repo/getBundleFile/3ba56c5bc95bb2874273a7d0cae07d14/8/sled-11-i586/pdf-writer' (try 1)
    22 Jul 2010 09:33:01 INFO WebCache Successfully retrieved https://zlmserver/zenworks-pkgmgt/repo/getBundleFile/3ba56c5bc95bb2874273a7d0cae07d14/8/sled-11-i586/pdf-writer
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 INFO BundleManager Executing postprepare scripts for PDF printer
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 INFO BundleManager Successfully prepared bundles
    22 Jul 2010 09:33:01 INFO BundleManager Beginning bundle transaction
    22 Jul 2010 09:33:01 INFO BundleTransaction Beginning bundle transaction: 1 installs, 0 removals.
    22 Jul 2010 09:33:01 INFO BundleTransaction Executing preinstall scripts for PDF printer
    22 Jul 2010 09:33:01 INFO SystemCatalog Saving system catalog containing 9 bundles
    22 Jul 2010 09:33:01 ERROR BundleTransaction Novell.Zenworks.Zmd.BUNDLE_INSTALL_ERROR: Novell.Zenworks.Zmd.BUNDLE_INSTALL_ERROR
    Novell.Zenworks.Zmd.Public.ZenException: 'PreInstall' script failed with exit code '1'
    22 Jul 2010 09:33:01 INFO Progress Progress.Stop Message: Bundle transaction failed: 'PreInstall' script failed with exit code '1'
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 ERROR BundleManager Transaction failed: Bundle transaction failed: 'PreInstall' script failed with exit code '1'
    22 Jul 2010 09:33:01 INFO Progress Progress.Stop Message: Parent failed/aborted
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 INFO Progress Progress.Stop Message: Parent failed/aborted
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 INFO Progress Progress.Stop Message: Parent failed/aborted
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 INFO Progress Progress.Stop Message: Parent failed/aborted
    22 Jul 2010 09:33:01 DEBUG Progress Is Stopped value: False
    22 Jul 2010 09:33:01 ERROR ActionManager Failed to execute scheduled action (install (bundles=3ba56c5bc95bb2874273a7d0cae07d14)): Bundle transaction failed: Bundle transaction failed: 'PreInstall' script failed with exit code '1'
    Novell.Zenworks.Zmd.Public.ZenException: Bundle transaction failed: Bundle transaction failed: 'PreInstall' script failed with exit code '1'
    22 Jul 2010 09:33:01 INFO BundleTransaction Bundle transaction ended.
    clients: sled11sp1 i586
    server: sles11 x64 + zlm732
    the files are not copied to their destination
    the target directories are available, writable by root (obviously) there are no files with the same name available, adding a trailing slash to the target path does not help (but other bundles have no trailing slash and run ok)
    questions:
    where are the temporary files copied to?
    where/how can i find what might be causing the preinstall error?
    should i delete previous versions of the bundle in zlm

    until you delete the previous version in zlm and do a rug ref... or is this as designed
    When you make changes to the bundle you need to apply them. That creates a new version and then you need to deploy that new version. Apply and deploy are on the same page. But I guess you know that.
    If you already did that and still had problems, it might be the zen loader that needs a little bit more time. Once you hit deploy, a zen queue entry gets created that informs the zen loader to update the bundle xml file in the file repository. That file is delivered to the managed device when it queries for bundle information. So if that bundle xml contains the old version, the client will see that.
    Problems here can be that the zen loader simply needs a few seconds longer then when you change to the device and run rug ref. Or there can be other queue entries that get processed and the bundle xml update is just in the queue and waiting. The zen loader has 5 slots for processing queue entries.
    On the zlm server you can run "zlman ql I" for in progress entries and "zlman ql N" for new state entries that ned to be processed.
    Or you can use the short script I posted (Cool Solutions: Monitor ZLM queue entries with Nagios) that shows you in one line how many and what type of queue entries currently exist. This is what I always use to get a overview about the queue status.
    Rainer

  • Agent Scripts failing with ID 21406 - agent can't finish discovery

    We have 500+ agents installed- all the same way.  I have this problem on only one.  It's a windows 2003 server, x64.  It's one of many we have monitored with this same OS.  The environment is SCOM2007R2 CU5.
    The agent installs fine.  After installing, we start receiving EventLog warnings with ID 21406 on the agent host. The errors indicate Microsoft runtime error:  File name or or class name not found during Automation operation: 'oAPI.CreatePropertyBag'
    or whatever it's trying to do for that particular script. JS does the same thing.  I easily reproduce it by building a simple vbs instantiating WSH and calling the CreatPropertyBag method.  It fails every time on the line with the CreatePropertyBag
    method.
    Things I've tried thus far:
     Reinstalling the agent
     Upgrading the WSH to 5.7 (it was 5.6) and with the hotfix and reboot after
     Validating the anti-virus.  Sysadmin says it's set to warn not block anything (it's Symantec FYI)
    I also noticed I occasionally get another error: ID 11105 - MOM Consolidator Module (misspelled in original message) failed to save the state after processing and might lose data.
    I guess it's only script failures because in the console, I see the agent in agent managed view.  Version is "Unknown".  In windows computer state view it shows up as Win2k3 OS, agent shows healthy.  I see some health objects and even some
    performance objects. In a basic OS state view however, name shows as 'Microsoft.Windows.OperatingSystem,  Operating System version is blank and so is OS Version Display name which I assume all get populated via the scripts that are failing.
    Thanks for any help anyone can give me on this.

    Thanks Alexey.
    1.  Checked permissions.  I found it hard to believe that this could be the problem since running a script as my own user outside of SCOM produces the same issue.  Nevertheless, did confirm LS has full control to entire install path for the
    agent.
    2.  I'm certainly not a com expert but I compared properties of every object I could find in the tree that was scom-related or scripting related.  Local System was set the same on this host as another host that is working.
    3.  I set trace level to info and I've been combing through it.  Unfortunately, the error output is no better in trace than it is in eventlog.  I still basically get only "File name or class name not found during Automation operation: 'oAPI.CreatePropertyBag'
    There are other errors in the log but some of those are perhaps expected when it recovers from reboot or shutdown.  And as I mentioned, running the simple script outside of scom (as me and I'm a local admin) produces the same issue.
    Any more thoughts?
    Thanks!

  • Time Machine Fail with Lion

    TM appears to have stopped working properly after I installed Lion on my 3 yr old MBP.
    Specifically, TM seems unable to do incremental back up.s
    Tried to back up to an existing, external HD used for TM for some time. Instead of deleting older files, TM insisted it needed a full 220 GB, so I deleted the entire, older back up and then let TM create a brand new 220 GB back up.
    An hour later, after the computer had sit unused, TM tried to back up again and -- even though no files had changed, said it needed 220 GB.
    Concidentally, or not, my BackUp to iDisk also failed.
    Since TM had always backed up successfully until the Lion install, I assume that is the problem.
    Any ideas?

    JimLosAltos wrote:
    @ Pondini. Re: TM fail.
    I installed Lion "over" Leopard.
    Odd. 
    There's a small chance it's the preferences file; try a "full reset" of Time Machine, per #A4 in Time Machine - Troubleshooting.
    If that doesn't help, try Verifying your internal HD, per #6 in Using Disk Utility.
    Then Repair Permissions, per #5 there.

  • Basic_demo install.vbs fails with windows script error 800A0005

    installing from 92030 win2k client to SunOS 2.6 92030 db.
    The install.vbs windows script fails with:
    Script: c:\down\xml\oracle\basic_demo\basicDemo\Install\Install.vbs
    Line: 876
    Char: 7
    Error: Invalid procedure call or argument
    Code: 800A0005
    Source: Microsoft VBScript runtime error
    prior to running I upgraded my IE to 6.0 and the Microsoft Script to 5.6 I have win 2k SP3
    Any ideas, line 876 is:
    oShellLink.IconLocation = iconPath
    Thanks,
    Gary

    Hi
    If I remember correctly I had the same problem a few weeks ago.
    I can't remember what I actually fixed, probably something to do with a missing directory.
    Anyway, the three procedures below(I would have attached them, but, can't find the link?) with extra
    Wscript.echo "***
    lines should show you what is wrong.
    Sub makeGeneralShortCuts(localConfig, fileManager, demoConfiguration)
    nodeListXpath = "General/shortCuts"
    nodeCount = demoConfiguration.getElement(nodeListXpath).childNodes.length - 1
    for i = 0 to nodeCount
    xpath = nodeListXpath & "/shortCut[" & i & "]"
    shortCutName = demoConfiguration.getChildTextNode(xpath,"Name")
    target = localConfig.replaceMacros(demoConfiguration.getChildTextNode(xpath,"path"))
    directory = localConfig.replaceMacros(demoConfiguration.getChildTextNode(xpath,"directory"))
    icon = localConfig.replaceMacros(demoConfiguration.getChildTextNode(xpath,"icon"))
    arguments = localConfig.replaceMacros(demoConfiguration.getChildTextNode(xpath,"Arguments"))
    Wscript.echo "*** icon 1 " & icon & ",shortCutName " & shortCutName & ",target " & target & ", icon " & icon
    fileManager.makeDefaultShortCut localConfig, shortCutName, target, icon, directory, arguments
    Next
    End Sub
    Sub makeDefaultShortcut(localConfig, shortcutName, targetPath, iconPath, targetDirectory, arguments)
    shortCutFolderPath = localConfig.getShortCutFolderPath()
    Wscript.echo "*** iconPath 3 " + iconPath
    makeShortCut localConfig, shortCutFolderPath, shortcutName, targetPath, iconPath, targetDirectory, arguments
    End Sub
    Sub makeWsFtpShortCuts(localConfig, fileManager, demoConfiguration)
    Set iniFile = fileManager.CreateTextFile(localConfig.getWsFtpIniFilePath())
    nodeListXpath = "FTP/shortCuts"
    nodeCount = demoConfiguration.getElement(nodeListXpath).childNodes.length - 1
    for i = 0 to nodeCount
    xpath = nodeListXpath & "/shortCut[" & i & "]"
    shortCutName = demoConfiguration.getChildTextNode(xpath,"Name")
    target = localConfig.getFtpPath()
    entryName = demoConfiguration.getChildTextNode(xpath,"iniFileEntry")
    localDirectory = localConfig.getDemoFolderPath() & FILE_SEPERATOR & localConfig.replaceMacros(demoConfiguration.getChildTextNode(xpath,"localPath"))
    remoteDirectory = localConfig.replaceMacros(demoConfiguration.getChildTextNode(xpath,"remotePath"))
    arguments = " -i " & localConfig.getWsFtpIniFilePath() & " -p " & entryName
    Wscript.echo "*** target 2 " + target
    FileManager.makeDefaultShortCut localConfig, shortCutName, target, _
    target, localConfig.getDemoFolderPath(), arguments
    addIniFileEntry localConfig, iniFile, entryName, localDirectory, remoteDirectory
    Next
    iniFile.close
    End Sub
    Warwick

  • ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory

    Hi,
    I am using the scheduler to take backup of the dev database and it was working fine. Then I added notification to the scripts and then the scheduler started failing with the following code .
    BEGIN dbms_scheduler.run_job('BACKUP_DEV'); END;
    ERROR at line 1:
    ORA-27369: job of type EXECUTABLE failed with exit code: No such file or
    directory
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 1
    Here' the original which has no issues
    #!/bin/bash -x
    echo $@
    if [ -z "$ORACLE_HOME" ]; then
    source /path/oracle/.bash_profile
    fi
    RMAN="${ORACLE_HOME}/bin/rman";
    ${RMAN} $@
    exit $?
    And here's the one which gives me the errors. Also if I run this script from command line it works perfectly fine
    #!/bin/bash -x
    echo $@
    if [ -z "$ORACLE_HOME" ]; then
    source /path/oracle/.bash_profile
    fi
    RMAN="${ORACLE_HOME}/bin/rman";
    exec >> temp_log
    ${RMAN} $@
    /usr/bin/mailx -s "Backup status of $ORACLE_SID " [email protected] < temp_log
    /usr/bin/rm temp_log
    exit $?
    Pls let me know what could be the reason that the script fails with the scheduler.

    Hi,
    The user oracle who owns the scheduler already has permissions for the mailx and the same script is able to send notifications when run manully. Do I need to set additional permissions for scheduler ?
    Also the db version is 10.2.0.5.
    Thanks

  • Power Shell Script failed to run - GetMGAlertsCount.ps1

    Our SCOM 2012 R2 is getting the following script error every 45 minutes...
    The PowerShell script failed with below exception
    System.Management.Automation.PropertyNotFoundException: The property 'Name' cannot be found on this object. Verify that the property exists.At line:57 char:3
    + $firstLvlClass = Get-SCOMClass -Id $firstLvlMember.Name
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at CallSite.Target(Closure , CallSite , Object )
    at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
    at CallSite.Target(Closure , CallSite , Object )
    at System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame frame)
    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    Script Name: GetMGAlertsCount.ps1
    One or more workflows were affected by this.
    Workflow name: ManagementGroupCollectionAlertsCountRule
    Instance name: All Management Servers Resource Pool
    Instance ID: {4932D8F0-C8E2-2F4B-288E-3ED98A340B9F}
    Management group: NCA2
    On the management server seeing corresponding 22406 errors
    System
    Provider
    [ Name]
    Health Service Modules
    EventID
    22406
    [ Qualifiers]
    49152
    Level
    2
    Task
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2015-04-21T18:44:03.000000000Z
    EventRecordID
    1303964
    Channel
    Operations Manager
    Computer
    PKSWSM001.ad.nca.com
    Security
    EventData
    NCA2
    ManagementGroupCollectionAlertsCountRule
    All Management Servers Resource Pool
    {4932D8F0-C8E2-2F4B-288E-3ED98A340B9F}
    GetMGAlertsCount.ps1
    300
    System.Management.Automation.PropertyNotFoundException: The property 'Name' cannot be found on this object. Verify that the property exists.At line:57 char:3 + $firstLvlClass = Get-SCOMClass -Id $firstLvlMember.Name
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at CallSite.Target(Closure , CallSite , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at CallSite.Target(Closure , CallSite , Object ) at System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame
    frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    System.Management.Automation.PropertyNotFoundException
    I'm at a bit of a loss to troubleshoot this error.  I cannot find the "GetMGAlertsCount.ps1"  script to execute manually and don't have much else I can find to troubleshoot.
    Thanks for your help!

    1) Please check Event Log on the management server and see if there are any related errors.
    Nothing
    interesting found
    2) On the management server, please ensure the following key exists:
    HKLM:\SOFTWARE\Microsoft\System Center Operations Manager\12\Setup\Powershell\V2
    Two entries found underneath this key;
    (Default) (value not set)
    InstallDirectory C:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Powershell\
    3) Action Account has access to the resources used by the PowerShell script.
    is LocalSystem
    4) Make sure that the computer is not over utilized.
    No indication of overutilization
    Thank you for the suggestions!  Do you know of anything else to check?

  • Automated install scheme fails with stty: no such

    Hello,
    Can someone please help me out with my crafty scheme? I want to do a mass deployment
    of SunMC agents using both Jumpstart and web based deployment via N1SPS.
    I have gone so far as to have read the install guide for Sun MC 4 and it is already out of date!
    I haved used es-makeclient to create an install client with pkg response and config files
    for es-setup and es-inst.
    Then I roll the above into a Solaris pkg with a postinstall script. This worked up to a
    point until I got a conclusion where the es-inst commands run out of the postinstall
    script were waiting for the pkgadd of the "makeclient" process to complete. Does this
    make sense so far?
    So, to stop the above condition where 2 pkgadds concurrent were waiting for the
    first to finish (held open by the postinstall script running the second pkgadd), I
    changed postinstall to just be a bourne shell exec /var/tmp/sunmc_agent/finish,
    with a modified version of the finish script described in the SunMC install guide.
    But my finish script fails with spurious errors and I can't seem to resolve it.
    Here is the procedure and the error message will be obvious when you
    see "finish script begins now"
    pkgadd -d . -G sunmcagent
    Processing package instance <sunmcagent> from </tmp>
    sunmcagent(sparc) 1.0
    rachel@snoz
    Using </var/tmp> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.
    This package contains scripts which will be executed with super-user
    permission during the process of installing this package.
    Do you want to continue with the installation of <sunmcagent> [y,n,?]
    Do you want to continue with the installation of <sunmcagent> [y,n,?] y
    Using </var/tmp> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    3278 package pathnames are already properly installed.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.
    This package contains scripts which will be executed with super-user
    permission during the process of installing this package.
    Do you want to continue with the installation of <sunmcagent> [y,n,?] y
    Installing sunmcagent as <sunmcagent>
    ## Installing part 1 of 1.
    /var/tmp/sunmc_agent/disk1/image/SunOS/sparc/Addons/TNG/Common/Basic/SUNWfrcam/pkginfo
    /var/tmp/sunmc_agent/disk1/image/SunOS/sparc/Addons/TNG/Common/Basic/SUNWfrcam/pkgmap
    /var/tmp/sunmc_agent/disk1/image/SunOS/sparc/Addons/TNG/Common/Basic/SUNWhcam/pkginfo
    /var/tmp/sunmc_agent/disk2/image/SunOS/sparc/Addons/X86ConfigReader/Solaris_9/installation.info
    /var/tmp/sunmc_agent/disk2/image/SunOS/sparc/Addons/X86ConfigReader/Solaris_9/installation.properties
    /var/tmp/sunmc_agent/finish
    /var/tmp/sunmc_agent/response_files/install_cfg
    /var/tmp/sunmc_agent/response_files/setup.cfg
    /var/tmp/sunmc_agent/response_files/sunmc_install.cfg
    /var/tmp/sunmc_agent/response_files/sunmc_setup.cfg
    [ verifying class <none> ]
    ## Executing postinstall script.
    sleeping for cleanup
    Installation of <sunmcagent> was successful.
    Installation of <sunmcagent> was successful.
    server:/tmp 128# finish script begins now
    This script installs Sun (TM) Sun Management Center 4.0
    Installation files source directory: /var/tmp/sunmc_agent/disk1/image/SunOS/sparc
    stty: : No such device or address
    Enter the directory in which you want to install: [ /opt ] : /opt
    Installation destination directory: /opt
    Selecting : Agent
    mkdir: Failed to make directory "/var/tmp/installCJaGg5/patchadd-1610629752"; No such file or directory
    /usr/lib/patch/patchadd[18]: /var/tmp//installCJaGg5: not found
    Reading Add-On products from image. Please wait...
    This can take approximately 2 minutes to complete.
    Found: Sun Enterprise 6500-3500 Servers/sun4d DR
    Found: Sun Fire Entry-Level Midrange System
    Found: PltAdmin SPARC Enterprise Mx000
    The es-inst process runs through but the stty error and the pkgadd install dir errors
    make the install failure and no SunMC packages are installed. My response files
    are correct and I will post everything here, sans passwds:
    This is the postinstall that calls the finish script. The postinstall runs after the
    client package is installed in /var/tmp to be run by es-inst:
    #!/bin/sh
    # Program type      : Unix bourne shell script
    # Description       : Standard finish script for installing and
    #                     setting up Sun Management Center core agent
    # THIS VERSION FOR SOLARIS 10 ONLY
    exec sh /var/tmp/sunmc_agent/finish &
    exit 0This is the finish script, without secrets:
    !/bin/sh
    # Program type      : Unix bourne shell script
    # Description       : Standard finish script for installing and
    #                     setting up Sun Management Center core agent
    # THIS VERSION FOR SOLARIS 10 ONLY
    LOGDIR=/var/tmp/sunmcfinish
    SI_CONFIG_DIR=/var/tmp/sunmc_agent
    INSTALL_RESP=${SI_CONFIG_DIR}/response_files/sunmc_install.cfg
    SETUP_RESP=${SI_CONFIG_DIR}/response_files/sunmc_setup.cfg
    echo "sleeping for cleanup"
    sleep 15
    echo "finish script begins now"
    # Begin Main Program
    umask 022
    mkdir -p $LOGDIR
    # Copy the install and setup response file to target system
    cp ${INSTALL_RESP} $LOGDIR
    cp ${SETUP_RESP} $LOGDIR
    # run es-inst with -a -R -T and -A options
    # skip the next line for Flash Archive based deployment
    # Do not use the -T option if you have specified the TARGET_DIRECTORY
    # tag in install.cfg
    ${SI_CONFIG_DIR}/disk1/sbin/es-inst -a -A ${LOGDIR}/sunmc_install.cfg
    # Clean up any rc script with the same name if present
    test -f /etc/rc3.d/S80SunMCJumpStart && rm -f /etc/rc3.d/S80SunMCJumpStart
    rm -f /etc/init.d/SunMCJumpStart
    # Place rc script in rc3.d and init.d to do setup
    # Remember to access es-setup based on the target directory location
    echo "Creating rc script..."
    cat > /etc/rc3.d/S80SunMCJumpStart << EOF
    #!/sbin/sh
    rm /etc/rc3.d/S80SunMCJumpStart /etc/init.d/SunMCJumpStart
    SECURITY_SEED=selfsown
    SNMPV1_STRING=harhar!
    export SECURITY_SEED SNMPV1_STRING
    /opt/SUNWsymon/sbin/es-setup -e -A /var/tmp/sunmcfinish/sunmc_setup.cfg
    EOF
    cp /etc/rc3.d/S80SunMCJumpStart /etc/init.d/SunMCJumpStart
    chmod 755 /etc/rc3.d/S80SunMCJumpStart /etc/init.d/SunMCJumpStart
    exit 0And so as you can see, "postinstall" runs 'finish" which is the boilerplate
    from the SunMC4 install guide jumpstart section. Now the crazy thing is,
    if I do the first pkgadd of my makeclient tarball and then run the "finish" script
    from the CLI, then the install goes 100% perfect, so I know my responses files
    are ok and my scripts are ok, but perhaps it is because I have spawned a subshell
    and have no tty? The pkgadd started by es-inst fails because of a dir entry,
    but it should just create it's own. Is there someway to get the subshell what it
    needs to run my "finish" script correctly?
    rachel

    OK,
    I fixed the stty problem by using #!/bin/sh -i
    to give the impression of an interactive shell.
    Bu I still get:
    mkdir: Failed to make directory "/var/tmp/installnZa4GW/patchadd-3145325386"; No such file or directory
    /usr/lib/patch/patchadd[18]: /var/tmp//installnZa4GW: not found
    When es-inst is run. There is a person on here with a similar problem, unanswered.
    I wonder if they found a solution, although it was 3.6.1?
    rachel

  • Office 2013 VL and app-v 5 SP2 on RDS server - package add fails with script error

    We have used the MS Office Depolyment Tool for click-to-run to download the latest Office 365 version, and flatten it into an app-v 5 package - not a problem.
    When we try to add the package to our client machine (Server 2008R2 running the app-v 5 SP2 client software), it fails with an message that a script has failed and not returned a 0 code.  We have not added any scripting to this automatically created
    package, so it seems that the app-v client does not like the "official" package.  Any hints and tips gratefully accepted, thanks
    App-v client has scripting enabled.
    The powershell command line we are using is:
    PS C:\windows\system32> Set-ExecutionPolicy Unrestricted
    PS C:\windows\system32> Add-AppvClientPackage -path file://hostname/app-v/o365-noaccess/ProPlusVolume_en-us_zh-cn_x86.appv -DynamicDeploymentConfiguration \
    \hostname\app-v\O365-NoAccess\ProPlusVolume_en-us_zh-cn_x86_DeploymentConfig.xml
    with a result of:
    Add-AppvClientPackage : Embedded Script process exited with an error code indicating failure (return code other than 0). Please ensure that Embedded
    Script process can complete successfully and exits with 0.
    Operation attempted: Configure AppV Package.
    AppV Error Code: 100000000C.
    Please consult AppV Client Event Log for more details.
    At line:1 char:1
    + Add-AppvClientPackage -path
    file://hostname/app-v/o365-noaccess/ProPlusVolum ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidResult: (:) [Add-AppvClientPackage], ClientException
        + FullyQualifiedErrorId : ConfigurePackageError,Microsoft.AppV.AppvClientPowerShell.AddAppvPackage
    and these are the error messages we see in the debug app-v client logs:
    Script Launcher successfully waited for script with command line: '"C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root\..\Scripts\Integrator.exe" /I /Msi /License /AppV PackageGUID=D24C3BDD-8FAD-44d3-998C-933F8F053682
    PackageRoot="C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root" MsiName=SPPRedist.msi,SPPRedist64.msi PidKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx,xxxxx-xxxxx-xxxxx-xxxxx-xxxxx,xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
    PRIDName=ProPlusVolume'.
    and...
    Package {d24c3bdd-8fad-44d3-998c-933f8f053682} version {cd9725ce-4503-4932-863b-4fcda3f9551d} failed configuration in folder 'C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D' with error 0x79100E10-0xC.
    and...
    machine script for event AddPackage with command line: '"C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root\..\Scripts\Integrator.exe"'
    exited with failure error code: The extended attributes are inconsistent.. Because Rollback is set to true in the script definition, the current AppV Client operation was rolled back.
    We believe this last error message is the kicker, but can't debug any further.

    Just to validate the problem, I started again.
    I have just downloaded the latest ODT from MS, and then downloaded the latest Office 2013 packaged - volume license.  Then created the app-v package - all went perfectly, no error messages.  Uploaded the package to the app-v 5 server and published
    it.  I have made NO changes to any of the files.
    I have just built a brand new Windows Server 2008R2 Datacentre VM, patched it to the hilt, and installed the RDS role, powershell 3 and appv 5.0 SP2 client for RDS.
    I then use powershell as above:
              scripting unrestricted
              app v client scripting enabled
             app v server added
              global and user update enabled
             add-appvclient package  "url of office package.appv"
                 and received exactly the same error message.  
    It is not complaining that scripting is not allowed, it is complaining that the script is invalid.
    Help!!!!

  • Error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2

    Hello
    I have set up the Demo appliance landscape for the openSAP course "Introduction to SAP Fiori UX", on AWS.
    The frontend machine is OK, but the configuration and startup of the server machine has failed for some reason. When logging in with ssh to the server, this message is presented:
    The Appliance Agent detected an error and terminated.
    When asked, please provide the file /tmp/applianceagent_20141002-145658.tar.bz2.
    Note that a restrictive iptables based firewall is still active.
    I have attached the file (had to add .txt to the name to circumvent file type restrictions).
    I noticed that the appliancedeploy.log ended with these lines:
    Start database  Execute /usr/sap/hostctrl/exe/sapcontrol -nr 02 -function StartWait 3600 20
    02.10.2014 13:56:58
    Start
    OK
    02.10.2014 14:56:58
    StartWait
    FAIL: Timeout
    error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2
    Notice the 1 hour jump in time, and then the timeout error message.
    Do any of you have any idea what could be causing this, and how to fix it?
    Please let me know if you need any further information.
    Best regards,
    Bo

    Hi Hannes.
    Trying to create and activate a new instance (version 5 of the Fiori appliance), I first got this message in the CAL instance overview list:
    Instance Operation Failed
    Operation Start failed on step Start start VAs with message: Start failed for VM SAP Server due to Amazon Web Services issue : AMAZON : The snapshot 'snap-c779ff64' does not exist.
    Then I terminated the instance and tried over again. And this time the deployment worked - I have a running server, which responds to the SAP GUI, and shows the Fiori web page.
    Thanks a lot for your quick help.
    Best regards,
    Bo

  • SSIS Job is getting failed with an error "0x00000005 : Failed to compiled scripts contained in the package.

    Hi All. Could anyone resolve my issue.
    I was created a package with an Script task written in VB.Net.
    The Package was executing Successfully in BIDS.
    But when i tried to exceute the same using Sql server Agent Job, Its getting Failed with the below error message
    "Executed as user: Admin. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  5:12:27 PM  Error: 2013-03-13 17:12:32.33    
    Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors. 
    End Error  Error: 2013-03-13 17:12:32.33     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict
    in class 'ScriptMain'., ScriptMain.vb, 156, 22  End Error  Error: 2013-03-13 17:12:32.36     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: The binary
    code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:34.28     Code: 0x00000005    
    Source: Formating Excel Sheet Formating Excel Sheet     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2013-03-13 17:12:34.28    
    Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict in class 'ScriptMain'., ScriptMain.vb, 191, 22  End Error 
    Error: 2013-03-13 17:12:34.29     Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: The binary code for the script is not found. Please open the script in the
    designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0x00000004     Source: Checking Alcon Files      Description:
    The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0xC0024107    
    Source: Checking Alcon Files      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  5:12:27 PM  Finished: 5:12:51 PM 
    Elapsed:  24.336 seconds.  The package execution failed.  The step failed."
    Please give some solution to this.
    Thanks in advance

    Are you editing this job in SQL 2012? Is it wrapping your paths in \"? Like for example does the command line tab on the step look like this:
    /FILE "\"D:\yourPathGoesHere.dtsx\""  /CONFIGFILE "\"D:\yourPathGoesHere.dtsConfig\"" /CHECKPOINTING OFF /REPORTING E
    That's the problem I had, and I resolved it by recreating the whole thing via SQL Script and getting rid of all those \" things. I think that is preventing SSIS from looking up the precompiled binaries for your Script Task. So you should edit the command
    line manually:
    /FILE "D:\yourPathGoesHere.dtsx"  /CONFIGFILE "D:\yourPathGoesHere.dtsConfig" /CHECKPOINTING OFF /REPORTING E
    Please write back whether that helps you. David Dye's answer didn't help me at all.

  • Powershell startup scripts fail on Windows 8.1 with error 267

    GPO Powershell startup script fails to execute on Windows 8.1, but does run on Windows 8 and Windows 7. Powershell logon scripts run normally on all versions of Windows.
    The event log contains entries with event ID 1130 from the GroupPolicy source. The log entries claim error 267 "directory name is invalid".
    Running cmd.exe on Windows 8.1 under the computer's account (NT Authority\SYSTEM) confirms that the Powershell script's path in SYSVOL is valid and the script executes normally.
    Running procmon on Windows 8.1 while the startup script is being run on a computer shows that the computer caches the files and folders for this GPO into C:\Windows\system32\GroupPolicy.
    I am not sure why these scripts are failing to execute on Windows 8.1 when they run on Windows 8 and the same set of GPOs are applied to both Windows 8.1 and Windows 8 computers.

    These are all good suggestions, but I have already tried to eliminate:
    All environment variables
    All network paths
    Setup the GPO to reference the script by the file name and with a full absolute path. Neither worked.
    Tried copying the scripts to multiple folders inside the policy, since the event log message reports only the root path of the policy.
    I also used procmon to monitor how the computer handles the startup scripts. I found that the computer caches them into a folder under C:\Windows\System32, but never runs any of them. I never found an error that I could correlate with the event log.
    For instance the following one line scripts failed to run:
    'I AM HERE.' | sc -path C:\Windows\TEMP\TEST.txt
    write-host 'I AM HERE.'
    As far as I can see the first script relies on the existence of C:\Windows\TEMP and write permission to it, which SYSTEM should have.
    The second one liner has no dependencies at all and it doesn't run with the same error.
    I have created multiple GPOs and scripts, so if there was a problem in creating these files and folders it is happening over and over. I checked the permissions and computer accounts have read and execute permissions all throughout the GPOs.
    Everything works perfectly on Windows 7 and 8, just not on 8.1.

  • Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....

    Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....is there some trick I am missing or do I need to make an appointment with a genius...

    I have the MacIntosh volume and the Boot Camp partition only.  I know that when I installed Lion, I had to go through a whole back-up and recovery of Windows and then re-format the drive. 
    The tech at the Apple Store had a previous life as a MSCE and was very helpful.  I believe he even said that I should not have htis problem with Mountain Lion which is why they gave me the flash with it onboard.  I was in the process of starting a new job when I went to Lion, so I have waited to do this next and probably last upgrade to this old MBP since I doubt Apple will support this MBP in Maverick. 
    I do not have another installation, so that is not an option.  I will try to create an external, I have plenty of hard drives around and see if I can get it done that way.  It might take me a week or two to get back to it, but I will comment back upon completion of that effort.  Thanks for your help....Dave Iverson

Maybe you are looking for