Determine Deployment Status / Progress Programmatically

Greetings,
My goal is to programmatically deploy a vi to a compactRIO target as well as reboot the controller.  While I have been experimenting with using the Library.DeployLibrary method call, I would also like to show the user the status of the deployment (similar to the Deployment Status window that appears when one deploys a library from within the Project Explorer - showing a status indicator and what files are being uploaded).  I seem to be having issues with trying to deploy a library containing only a vi but that may be the subject of another post on this board.
I am using LabVIEW 8.01 and Windows XP Pro.
Can anyone point me in the direction of being able to show this status programmatically or if it is even possible?
Thanks
- Con

Thanks for getting back with a response Xaq!  Let me comment and see if there are some further suggestions.
Xaq wrote:
Con-
I beleive I understand what you are trying to do now. Lets tackle each problem in order.
1) How to keep VI in memory on teh cRIO. Most likely what is happening here is that you are terminating the program on teh cRIO itself (wither by ending the main control loop or calling quit labview, etc). The VI is not being erased from the flash memory on board, just getting stopped from running. To start the Vi again, you can reset the cRIO (as long as the VI in question is your startup VI).
1) By resetting the vi, I am thinking there are two ways - one is actually hitting the "Reset" button on the box (something I dont want to do), the other is actually Rebooting my cRIO (which I am succesful at doing, however, I dont have feedback on whether or not the box is actually done rebooting.  I guess I can hit the Reboot, then go into a loop that Pings the controller and either times out or gets a valid IP address.  Is there another way to do this reset?
Xaq wrote:
2) Deploying a VI to teh cRIO. Currently there are only 2 ways to do this. The first, is from the project explorer like you are used to doing. The second, which can be done programmatically assuming you have the internet toolkit or through a command line interface, is to FTP the VI to the cRIO.
2) I am trying to setup the cRIO vi such that it runs at startup, then I hoped after rebooting, it would be running and be in memory on the cRIO.  I will keep in mind the FTP option - thanks.
Xaq wrote:
3) Rebooting the cRIO programmatically. You can use the RT Reboot Controller VI, located in Real-Time VIs»Real-Time Utilities>>RT Reboot Controller.vi) to reboot a controller over the network (or reboot itself by using localhost).
3) I am donig this as discussed in 1 - thank you.
I was trying to provide more user feedback.  I guess I'm stuck in trying to use timing and my own messages to provide user feedback. 
Thanks again for your suggestions!
- Con

Similar Messages

  • Deployment status shows stuck in progress, no advertisement or package ID in any client log

    I am trying to deploy an applications to a remote machine.  The application is distributed to the DPs and has been successfully deployed to at least one computer on the LAN.  The deployment status for the machine is stuck on the In Progress
    tab, Category as In Progress.
    The content has not downloaded to ccmcache, and I can't find any reference to the application or package ID in any of the logs.  I don't know what to look at next that might help.  Any help is much appreciated!  Thanks,
    Jeff

    How about locationservices.log?  It runs through this every 10 minutes, which is both more often and quite different from what I see in my laptop's locationservices.log (granted I'm on the LAN).
    Refreshed security settings over AD      
    LocationServices             
    12/3/2014 3:50:06 PM    5160 (0x1428)
    No security settings update detected.   LocationServices             
    12/3/2014 3:50:06 PM    5160 (0x1428)
    Retrieved MP [oursccmprimary] from Registry   LocationServices             
    12/3/2014 3:50:06 PM    5160 (0x1428)
    Attempting to retrieve lookup MP(s) from AD    LocationServices             
    12/3/2014 3:50:06 PM    5160 (0x1428)
    Lookup Management Points from AD:   LocationServices             
    12/3/2014 3:50:06 PM    5160 (0x1428)
    Name: 'oursccmsecondary.ourdomain.lan' HTTPS: 'Y' ForestTrust: 'N'     
    LocationServices             
    12/3/2014 3:50:06 PM               
    5160 (0x1428)
    Name: 'oursccmprimary.ourdomain.lan' HTTPS: 'N' ForestTrust: 'N'         
    LocationServices             
    12/3/2014 3:50:06 PM               
    5160 (0x1428)
    Retrieved lookup MP(s) from AD             
    LocationServices             
    12/3/2014 3:50:06 PM    5160 (0x1428)
    Attempting to retrieve default management points from lookup MP(s) via HTTPS            
    LocationServices               
    12/3/2014 3:50:06 PM    5160 (0x1428)
    Current AD site of machine is OurADsite              
    LocationServices             
    12/3/2014 3:50:06 PM    5160 (0x1428)
    Default Management Points from MP:  LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Name: 'oursccmprimary.ourdomain.lan' HTTPS: 'N' ForestTrust: 'Y'          
    LocationServices             
    12/3/2014 3:50:07 PM               
    5160 (0x1428)
    Name: 'oursccmsecondary.ourdomain.lan' HTTPS: 'Y' ForestTrust: 'Y'      
    LocationServices             
    12/3/2014 3:50:07 PM               
    5160 (0x1428)
    LSUpdateInternetManagementPoints   LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Current AD site of machine is OurADsite              
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Internet Management Points from assigned MP:             
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Name: 'oursccmsecondary.ourdomain.lan' HTTPS: 'Y' ForestTrust: 'Y'      
    LocationServices             
    12/3/2014 3:50:07 PM               
    5160 (0x1428)
    LSUpdateInternetManagementPoints: Successfully refreshed internet MPs from MP oursccmsecondary.ourdomain.lan.         
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Persisting the default management points in WMI          
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Default Management Points from MP:  LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Name: 'oursccmprimary.ourdomain.lan' HTTPS: 'N' ForestTrust: 'Y'          
    LocationServices             
    12/3/2014 3:50:07 PM               
    5160 (0x1428)
    Name: 'oursccmsecondary.ourdomain.lan' HTTPS: 'Y' ForestTrust: 'Y'      
    LocationServices             
    12/3/2014 3:50:07 PM               
    5160 (0x1428)
    Persisted Default Management Point Locations locally  
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Attempting to retrieve local MPs from the assigned MP LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Current AD site of machine is OurADsite              
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Current AD site of machine is OurADsite              
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)
    Current AD site of machine is OurADsite              
    LocationServices             
    12/3/2014 3:50:07 PM    5160 (0x1428)

  • Deploying the packages of microsoft critical update but members of collection is showing unknow client tab which comes in monitoring-- deployments status windows. until deadline to be completed. Nither provide any errors or completed status, progress sta

    Hi
    I have challaged for deployment of microsoft critical patches to client machine with the help of sccm. I have been done all configuration formalities, although previous months has been deployed successfully with any difficulties.
    But This month have some issue is being running, once i was deploying the packages of microsoft critical update but members of collection is showing unknow client tab which comes in monitoring--> deployments status windows. until deadline
    to be completed. Nither provide any errors or completed status, progress status.
    Please guide to resolve the issue,
    if you need more clarification, kindly let me know.
    Md Ehteshamuddin Khan
    Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    Take a look at the SU superflows, they will help you troubleshot this issue.
    http://technet.microsoft.com/en-us/library/ff385001.aspx
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Deployment Status not reflecting correct application installation status

    Morning All,
    Running into an issue where the application Deployment Status does not properly reflect the state of the application install.
    The software installs, works properly and is reported in Software Center on the client PC as being installed succesfully however the status within CAS shows "In Progress" with a description of "Program started".
    The application in question is Cisco Network Access Manager which terminates the network connection and requires a reboot before restoring.  Additionally the site is behind a NAC switch which adds another layer of security to the network at that loation.
    Currently I have deployed to 90 test machines - 65 of which have reported in as succesfull, the remaining 25 have installed and are working but are not being updated in the Deployment Status.
    I have checked the Sender.log on the site server and link analyzer between the primary & secondary.  I have also checked the client heartbeat and statemessage.log all seems well - no errors reported.
    Additionally I have reviewed the WMI status on the client and repaired (just in case).
    Through google search I have also ran the following:
    Option Explicit
    On Error Resume Next
    Call RefreshServerComplianceState
    ' WScript.Echo "Finished"
    Sub RefreshServerComplianceState()
    ' Initialize the UpdatesStore variable.
    dim newCCMUpdatesStore
    ' Create the COM object.
    set newCCMUpdatesStore = CreateObject ("Microsoft.CCM.UpdatesStore")
    ' Refresh the server compliance state by running the RefreshServerComplianceState method.
    newCCMUpdatesStore.RefreshServerComplianceState
    ' Output success message.
    ' wscript.echo "Ran RefreshServerComplianceState."
    End Sub
    As well as forcing a check in from the client and running the summarization on the CAS.
    So far nothing seems to trigger an update.  I'm hoping someone can point me in the proper direction in regards to diagnosing this problem.
    Many thanks, Jeff

    Since no one has answer this post, I recommend opening  a support case with CSS as they can work with you to solve this problem.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SCCM 2012 - Deployment Status Very Slow

    I hope someone can point me in the right direction.  I recently upgraded to 2012 SP1, as well as moved my database to a new server running WS2012 and SQL 2012 SP1.  Everything seems to work very well, except for when viewing the status of my deployments. 
    For example, I pushed out a handful of security updates to a collection of 2008 R2 Servers (about 3 servers).  After a minute, the servers showed correctly that updates were available.  I proceeded to install, reboot, etc. 
    Now, in CM, under deployments, I have been keeping an eye on the Deployment Status.  After about 6 hours, the little bubble was all grey, in that it hadn't yet figured out what was going on.  24 hours later, and finally it saw that three machines
    were "in progress"....even though they should be "compliant".  I have noticed this extremely slow behavior on several other small deployments I am doing.
    I have combed through numerous logs, both client and server side, and I don't "see" anything that would suggest an issue with state messages, etc.  Does anyone have any suggestions as to where I can look, or what I can do?  Before I upgraded,
    although obviously not instant, the deployment status' seemed to update fairly quickly (couple of hours, not days).
    Thank you in advance for any suggestions.

    Since no one has answer this post, I recommend opening  a support case with CSS as they can work with you to solve this problem.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Devices in Deployment status show up as Non-Compliant

    In the deployment status section of SCCM 2012 we have 6 of the 10 servers listed in the In-Progress tab which are Non-compliant. 3 of the servers are list as Downloaded Updates. Verified that the boundaries are set up correctly and check relevant logs and
    no software updates are being pushed out to the servers almost an hour into the maintenance window. Not sure what the cause is, could use all the help I can get. Thanks!

    Hi,
    Is the client healthy?(CcmEval.log, ClientIDManagerStartup.log, ClientLocation.log, LocationServices.log)
    Could the client communicate with MP? Please check CcmMessaging.log and open
    http://<MP Name>/sms_mp/.sms_aut?mplist in IE on the client to see whether it can find the MP.
    Best Regards,
    Joyce

  • OMB to find out deployment status of an object

    Hi all,
    I am creating an OMB script to deploy all objects in a collection. I use that to promote new developments to e.g. the acceptance environment. Objects in the collection may already exist and be deployed to the database. In the case of a table it is relevant to know if the table is already deployed to the database because you do not want to destroy data already in the table. I would like to use an UPGRADE for that table as that will preserve the data and is possible in most cases.
    Now I am looking for an OMB command to retrieve the deployment status so I can determine if I must use an UPGRADE or a CREATE. It seems I can't find it in the docs? Is this possible in any way?
    I can find the status using the all_iv views of course, but since I am working from a tcl script, I would prefer an OMB command.
    Kind regards,
    Eric.

    Hi Eric,
    I've never saw such OMB command. You can try approach (using JDBC in OMBPlus) described here {message:id=3691751} .
    If your design and runtime repositoris located under the same database you can avoid creating new JDBC connection - since OWB 10gR2 it is possible get JDBC connection to OWB repository like this (before you need grant from Design Center system privilege ACCESS_PUBLICVIEW_BROWSER to user under which you plan to run script)
    set repMgr [java::call oracle.owb.connection.RepositoryManager getInstance]
    set jdbcConn [$repMgr getPublicViewConnection]
    set connStatus [$jdbcConn isClosed]
    puts $connStatusRegards,
    Oleg

  • NWDS - Get Deployment Status - Problem

    Hi!
    I really need help with my NDSW (7.1 SP03 PAT0001).
    Also two of my colleagues have the same problem but unitl now we haven't found a solution.
    There is a progress called "Get Deployment Status". It runs till the end of time. It even ignores the cancel operation.
    Unfortunately it is blocking all other tasks, and as stated, it cannot be cancelled.
    Does anyone here know this problem and perhaps has a solution for it?
    Many thanks in advance!
    Cheers,
    Andi

    Hi Andi,
    Please check the server logs at usrsapJ2EJC00j2eeclusterserver0logsystem There are files there with .log extension.
    JC00 is instance which can be different for you.
    Also check : http://www.sdn.sap.com/irj/scn/events?rid=/library/uuid/58a7e390-0201-0010-abb1-8eec7eb7a2ec&overridelayout=true
    You can also find the Application log in
    C:Documents and SettingsUserDocumentsSAPworkspace.metadata.log
    where .log is the Application Log file.
    Check if you can find soem exception or need some parameter tuning accordingly.
    Regards,
    Rajani

  • How to determine host status in a task via python api

    Hello all,
    using the python api I am having some issues trying to determine the status of a host within a task. For example I have a job, with one task and 10 hosts associated with that task. Eight hosts finish the task, 2 fail. However via the api I can only seem to determine the status of the job and the task. What I want is to be able to generate a report that basically matches what you see via the gui (ie 8 hosts ok, 2 hosts failed). The data structure OnStageTaskData gives me a status and a list of hosts, but not a status for each host. (Note I am not using any of the depricated functions/data structures). Currently my code looks like (minus the api init, etc)...
    # list all the jobs for last week
    joblist = api.GetJobs()
    for job in joblist:
    # if the job occured in the last week
    if job.c_time > reportstarttime:
    print "\nJob name %s Time %s " %(job.name, time.ctime(job.c_time))
    try:
    jobdetails = api.GetOnStageJob(job.id)
    except COsApiJobNotFoundException:
    print "Can't find job %s details" %job.name
    continue
    for tasks in jobdetails.job_data.tasks:
    for hostid in tasks.task_data.target:
    try:
    hostinfo = api.GetHostGroup(hostid)
    except OsApiHostNotFoundException:
    print "Can't find host details %s" %tasks.task_data.name
    print "Hostname %s Status %s" %(hostinfo.name, tasks.status)
    which generates output like...
    Job name chg233146-sol9 Time Sun Jan 13 10:31:42 2008
    Hostname tacnomsrv02 Status Failed
    Hostname tacpthsrv01 Status Failed
    anyone have another way to doing this or suggestions? Or is this kind of info not available via the api? Thank you.

    Hi ConnectSolutions,
    As you correctly pointed out, there is some bug in our code
    that keeps the room active and you dont receive any events or
    notification if you are entering as guest and waiting and the host
    arrives. Also, since you havent entered yet i.e your role is still
    5 i.e. UserRoles.LOBBY , you can't access any of the UserManager's
    collections and will get a length of 0 always. We will be fixing
    this with priority .
    But you can get around the problem as of now, by having a
    small shared model of yours ( any collectionNode or sharedModel
    will do) where you create a node and publish a message on it from
    the Owner's side whenever the owner/host enters to notify everyone
    that he has entered. Just remember to set the accessmodel of
    NodeConfiguration of node on which you are publishing to LOBBY ie.
    role = 5 , and make the publishModel = 100 so that only owners can
    publish on this node. In this way , any users waiting will be
    receiving this message and will know the host has arrived. If you
    can't get this sharedModel concept to work, let me know. I will try
    to run on my side.
    And as of our side regarding actual fix, we will fix this use
    case and put in the next drop of SDK and also update in forum about
    it.
    On the host side though, he is always notified when he enters
    if there are pending users knocking to enter. See the KnockingQueue
    example in case you want to explore that.
    Thanks
    Hironmay Basu

  • How to determine the status of  Maintenance Order while working in workflow

    Hello Experts,
       I am working on a workflow to release production related maintenance order.In this workflow I need to determine the status of the Maintenance Order (BOR object BUS2007) whether it has been released or not.I am trying to do this by condition step type.I can't understand which field of BUS2007 object I need to check to know the status of the maintenance order.
    Can somebody help please?
    Regards,
    Manas

    Hi,
    Have you not getting any value in Status Profile attribute.
    For new attribute u need to write coding, getting the value of that released field.
    First, u need to implement by going to Edit->Change Release Status ->To implemented.
    Then check your BO and generate it. If any error occurs in Menu bar Goto->Error List and see what is the error.
    After generation of your BO, test your BO.
    If test works fine, then Delegate with the standard BO.
    To delegate, u need to be in initial screen of SWO1 and goto Settings->Delegate. Give Super type as Std BO and delegate type as your custom BO and use the Std BO in your workflow.

  • Can you determine link status with USB Ethernet adapter?

    I'm wanting to replace an old G4 PowerBook with a 11" MacBookAir. I install networks, and I often need to determine link status of an Ethernet connection. With the built-in Ethernet port on most Macs, you can check the Network Status to see if there is link on an Ethernet connection (either the green or yellow status signs).
    If I am using the Apple USB Ethernet adapter, do I get similar feedback from the Network preference panel? If not, perhaps a terminal command that would do the same?

    Yes - the Network Panel under System Preferences works the same as with a regular Mac, showing USB Ethernet status (connected, disconnected, etc) and with the updated connected IP address, etc.

  • Query to get the Deployment Status of an application - SCCM 2012

    Hi,
    Do we have any query/report to get the detailed status report & machine name, user name of a deployment in sccm 2012 as in sccm 2007, instead of clicking on each deployment status to find the machine names and status details?
    Regards,
    Mike.

    Hi,
    You could have a look the report -"All system resources for a specified package and program deployment in a specified state".
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Update Groups Not Providing Deployment Status

    Software Updates Groups for Windows 7 were created on a monthly basis from November 2013 to June 2014. Each of these deployments are having issues reporting any data in the "Deployments" Section of SCCM.
    Patch groups created prior to November 2013, and Past June 2014 appear to be fine, and are distributing content and installing updates with ANY issue.
    Upon recreating the "broken" patch groups - nothing appears to change. I've went as far as to deleting the content, and renaming everything, recreating all the groups, and still no luck.
    Any suggestions regarding why these groups may fail to provide any deployment status?

    Hi,
    Have these updates been installed on clients? What's the status in the Deployments section? Please check the deployment status from software update reports.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Deployment status sucess but program does not run in client machine

    Hello Guys,
    I have created a package program to Run a batch script Install.bat
    Program Properties:
    Command Line: Install.bat
    Run: Normal
    After Running: No action required.
    Run Mode: Run with administrative rights (Allow interact with users)
    When i deploy this package i see Success in deployment status very soon, But the program doesnot run in client machine.
    Please find my batch script below for more info.(manually installed Install.bat in system context cmd, it works perrfectly )
    Please help me, where am going wrong
    rem ECHO OFF
    SETLOCAL
    SET WORKING=%~dp0
    echo Installing Office 365 pro plus NY package:
    echo ------------------------------------------
    %WORKING%setup.exe /configure %WORKING%install32ny.xml
    IF NOT EXIST "C:\Program Files\Microsoft Office 15\root\" (goto _ExitInstall)
    :_CopyingFile
    echo Copying Script to Office 365 INSTALLDIR:
    echo ----------------------------------------
    XCOPY %WORKING%Pin-Unpin.vbs "C:\Program Files\Microsoft Office 15\root" /C /F
    IF NOT EXIST "C:\Program Files\Microsoft Office 15\root\Pin-Unpin.vbs" (goto _ExitActivesetup)
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Office365ProPlusNY" /v "StubPath" /d "cscript.exe \"C:\Program Files\Microsoft Office 15\root\Pin-Unpin.vbs\""
    /t REG_SZ /f
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\Office365ProPlusNY" /v "Version" /d "1.0" /t REG_SZ /f
    %WORKING%Launch.vbs
    exit /b %errorlevel%
    :_ExitInstall
    echo Aborting Installation:
    echo ----------------------
    echo Office 365 installation failed.
    echo %errorlevel%
    exit /b 3
    :_ExitActivesetup
    echo Aborting Installation:
    echo ----------------------
    echo Activesetup Script error to INSTALLDIR
    echo %errorlevel%
    exit /b 4

    It's just starting the command lines one after the other and after that simply returns a success of starting all the commands.  Two things you should do to successfully use a batch file like this:
    Use start-wait constructions, so the next action won't start before the previous action is finished. For the exact command lines see:
    http://technet.microsoft.com/en-us/library/bb491005.aspx;
    First test the batch file with psexec, to see how it behaves with SYSTEM credentials.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Monioring - How to remove deployment status from monitoring

    How to remove deployment status from monitoring in SCCM 2012
    Thanks in advance
    NTRao

    You can also install this right click tool to be able to delete the deployment direct from the monitoring node.
    http://myitforum.com/myitforumwp/2013/04/16/how-to-add-a-delete-deployment-action-to-right-click-actions-in-configmgr-2012/
    Cheers Paul | http://sccmentor.wordpress.com

Maybe you are looking for

  • Iphone Sync deleted all contacts on google, Mac Address Book and Itunes

    I have my phone synced to my google contacts. I did a sync trying to sync itunes, google and my address book and now everything has been deleted. I created a back up a month ago but when I do a restore from back up, it still does not give me my conta

  • Wireless works until I try and secure it.

    We have been trying to connect a new Sony Laptop to our new wireless router.  The router works fine on our wired in desktops.  The wireless works great if we do not secure it.  It gets a full signal and connects easily, and assigns the proper IP addr

  • My iPhone is disabled and my computer is shot

    Hi my son disabled my iPhone. I know the password but I am officially locked out. The computer I originally set up my iPhone on is shot. It won't even turn on. My wife has a Macbook Pro but it's not letting me use her iTunes. I don't know what to do.

  • Stuck in Classic Environment

    I have an iMac with Os X 10.1.5 software and i went into classic environment to try to find something but now im stuck in the classic environment and my computer always goes directly to classic environment and i cant find a way to get back to OS X. H

  • Deployment Tool Problem (J2EE -Composite primary Key Class)

    Hi !! e.g. I have an entiybean which has composite primary key class. So while deploying in J2EE tool u need to specify the Primary key class and the primary key field. well in case of a composite primary key class(if u have more than one field)...ho