First boot of local zone - how to determine when sysidtool has finished

Hello,
we use a /etc/sysidcfg in order to do the solaris base configuration automatically. After the first boot of a local zone I recognized that some tools are started by solaris (sysidtool, etc.) which apply the settings mentioned in /etc/sysconfig.
Since we want to script some post-install set-ups I need to know, when the first boot including all "first-boot-scripts" has completely finished. Is it possible to query this information, maybe by calliing a special tool or by looking up some string within an logfile?
I would be grateful for any hints,
Thomas

I haven't checked, but I assume they have normal dependencies in the SMF tree so that other services don't start until they complete.
I would probably look at the milestone/multi-user-server service and see if it's online yet. If it is, they're probably done.
Darren

Similar Messages

  • Determine when httpservice has finished loading

    Hi, I have a little dilema, I get the list of countries for a
    form I have, from a database, but I can't set the selectedindex
    because of it's delay loading the data, is there any way to know
    when the loading of data is complete and execute a function
    then?

    When you define your service request put a result handler in
    there. Flex will call your result handler when it's finished.

  • Determining when Loader is finished loading

    How can I determine when myLoader has finished loading all
    the thumbnail images loaded into it using XML. The
    contentLoaderInfo 'complete' event fires every time an image is
    loaded in. I need to know when all the images have completely
    finished loaded. Ultimately I need to trace the 'height' property
    of myLoader's parent container_mc. I keep getting '0' as a result.
    Thank you!

    What I would do - is build your array of elements (push) an
    element on the array for every Image you have to load. Then all of
    your Image Loader COMPLETE events should be directed at one
    function. This function should just increment a counter. In this
    function it should then say if counter >= array.length then all
    is loaded and we can resize the element(s) or find out their real
    dimensions.

  • Local zones do not start when rebooting gobal zone

    HMy solaris host had been working well. Then all in a sudden, all local zones do not start automatically after I reboot the system. Did anybody see this before? Thanks.

    Thanks, Robert. There no error in /var/adm/messages. I can start zones manually.
    I found the status of svc:/system/zones:default is offline. With this status, zones will not autoboot regardless of zones configuration. But I cannot enable the service. After I execute the following command
    # svcadm enable svc:/system/zones:default
    the status of that service is still offline. Any idea?

  • JSF: How to determine which element has the focus?

    Hi all,
    I have a JSP with some input fields and a text area. When I press "ENTER" the data I have entered should be saved. That works fine (I use JavaScript to catch the keyPressed-event). But when I want to insert a new line in the text area, I press ENTER too and this invokes the javascript function. So it�s not possible to insert a new line in the text area. And I don`t want to save the data when I�m just inserting a new line.
    is it possible to determine which element has the focus at the moment of pressing ENTER? if it`s the text area then I won�t save the data and inserting a new line is possible? Or how to say: "Insert an new line if the user presses SHIFT+ENTER" or something like that?
    I�m using JSC for my application and this is my JS-function:
    function checkIt(evt)      
    var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
         if (charCode == 13)
              document.getElementById('form1:bt_Save').click();
              return false;
              return true;
    I�m looking for something like that:
    if(charCode == 13) {
    if(document.getElementById('form1:textArea').hasFocus())
    doNothing...
    else {
    document.getElementById('form1:bt_Save').click();
         return false;
    thanks for any help

    Hi,
    I searched through many forums (js of course too) but
    I couldn�t find a solution. Everybody knows how to
    set the focus but not how to get it. We often use
    JSF/JSP with javascript and maybe somebody here has
    another approach to this problem (how to solve it
    using jsf itself or anything else)?Take easy. I just suggested to search in a JavaScript forum , in your question you didn't mentioned this. Good luck man.
    Cya.

  • How to determine the correct moment when Word has finished to write to a docx file

    Hello,
    we are currently passing a document to Microsoft Word for editing and want to take back the changed/saved document when editing is finished. But it seems we have issues to determine the correct moment when Word has for sure saved all changes and
    it is save to take back the file.
    To pass the document to Word we use ShellExecuteEx with the file name. Then we use the Running Objects Table and a File Moniker to wait for the file to be closed.
    Sample code:
    HRESULT hRes = S_OK; 
    CComPtr<IMoniker> spIMoniker; 
    CComPtr<IRunningObjectTable> pRT; 
    hRes = GetRunningObjectTable(0, &pRT); 
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("GetRunningObjectTable failed."));
    hRes = ::CreateFileMoniker(m_strTempFilename.AllocSysString(), &spIMoniker);
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("CreateFileMoniker failed."));
    while (S_OK == pRT->IsRunning(spIMoniker) && !m_bShutdown)
       Sleep(500);
       continue;
    So we wait for the file to be removed from the Running Objects Table and additionally wait until we can get exclusive access to the file before we take over the changed file. But still it seems to happen that we take the file too early. Hence it
    seems the file is removed from the Running Objects Table by Microsoft Word before saving the file has completed.
    Is this behaviour of Microsoft Word by design? What is the best practice to identify the moment in time when writing the file has completed. Some other applications like Winzip seem to do the same thing.
    Thanks,
    Wolfgang

    Hi WolfGang,
    Thanks for posting in MSDN forum.
    Based on the description, you are developing application with Windows API. I would like to move it to
    General Windows Desktop Development Issues forum.
    The reason why we recommend posting appropriately is you will get the mostqualified pool of respondents, and other partners who read the forums regularly can either share their knowledge
    or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    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.
    Click
    HERE to participate the survey.

  • How to determine which application has focus in Windows

    Hello all-
    I'm trying to work around the "Labview freezes when there is large data on the clipboard known issue" (http://forums.ni.com/t5/LabVIEW/Labview-freeze-when-accessing-a-custom-menu-with-data-on-the/m-p/200...) and one thought is to try to determine if Labview has focus, and if it does then clear the clipboard.  If Labview doesn't have focus, then let the user use the clipboard.  This would be a good work-around because it would let the users paste screen shots and such into notes files and wouldn't risk a nasty clipboard/ menu/ freeze-crash.
    My initial search for determining windows application focus, came up empty though.  This old thread (from 2005) pretty much covers it:
    http://forums.ni.com/t5/LabVIEW/Is-there-a-simple-way-to-programatically-tell-which-VI-window/m-p/20...
    The "Is Frontmost' property does not do it.  I need to determine if Labview has focus, as opposed to Windows, notepad, firefox, etc.  I also reviewed the commad prompt commands and didn't find anything immediately helpful there either.
    Any ideas?
    Thanks,
    Casey
    Solved!
    Go to Solution.

    Christian-
    That's perfect!  By using GetForegroundWindow, GetWindowTextA and GetWindowFileNameA in user32.dll I can detect which window has focus.  If Labview has focus then I programatically clear the clipboard so the user can still use it when not clicking on Labview windowns, but also we do not risk a freeze and crash because of the clipboard/ freeze bug.
    I briefly thought about using the .NET versions of these functions, but because that would have forced an upgrade to at least .NET framework 3.0 for all of my user computers, I decided on the unmanaged user32.dll.
    Thanks for the suggestion.  I think I'm pretty close to a work around here that should last me until they fix the clipboard/ freeze bug.
    Thanks,
    Casey

  • How to determine which user has an Access 2013 databse open

    How can I tell which user / PC has opened a Backend Access database?

    If the file is stored on a server and you have access to it, you could check in Computer Management, then go into System Tools, Shared Folders, Open Files, and you should find the file listed there along with which user has it open currently.

  • How to determine if printer has A4 size paper

    Is there any way to determine whether the default printer is configured for A4 or NA_Letter size paper?

    Have you tried a ruler??

  • How to determine when FMS is starting to get overloaded?

    We have a set of FMS's deployed on Amazon's EC2.  One of the things we want to be able to do is automatically detect when we should start up another FMS instance.  To do that, I've been looking for metrics I could measure on the local FMS box to help me identify "transition" points, e.g., when we should add capacity or remove excess capacity.
    I ran some load testing to find out where the capacity limits of a particular box, but ran into a couple of problems:
       * Traditional system metrics (cpu/memory/run queue length) did not do a great job of predicting when we'd hit a wall.  Load was really the only thing that seemed to climb much and it was only at about 4 (on a 4-core box) when things went south.
       * When we *did* hit a wall, it was a pretty sharp cliff.  We seemed to be doing fine at 70+70 streams (~300kbps streams in reflected out) and at 75+75 streams, but when I went to 80+80 streams, BAM!  Things just started unravelling.  With very little in the way of error logs to indicate what might be happening.  But all of the sudden, my counters for simultaneous streams/etc dropped down from 80ish to 20ish (I was still publishing 80 to the server).
    I tried bumping up the EC2 instance size (under the theory that we were being bandwidth-capped or stream-capped), but didn't really see much difference.
    I see two possibilities:
      * We actually are being bandwidth- or stream- capped and going up to a bigger box didn't help
      * There are a number of other metrics on the server I could look at that would have shown a gradual degradation.
    Assuming the latter, does anyone have any suggestions for what metrics I might measure on the FMS to decide if we were starting to get loaded?  For example, I've thought about comparing Stream.time to NetStream.time for streams I'm reflecting out of the server.

    Thanks everyone for bringing this up and proceeding with some discussions. I would put up my quick thoughts on this one.
    Any load testing , as mentioned would start with CPU and Memory metrics. So is for FMS.
    For a live case, CPU usage, for default FMS configuration would be little high. This is because of the aggregate messages and other queues that are maintained. One can disable these (application.xml) to considerably reduce the CPU usage.
    Memory starts increasing as more streams are being served, but it will get stabilized, in my experience, for 1200 connections, all playing a 500 kbps stream, i would expect a memory usage of somewhere around 2-3 GB. (i would confirm the numbers if needed for accuracy, later).
    One other good thing to look for is Buffer Length on the subscribers. An abnormal increase in its value shows the server is unable to fill the buffer of the client well in time.
    Another related option is to look for frequent NetStream.Buffer.Empty and Netstream.Buffer.Full codes, if they are coming up too fast, it means the buffer on the client side is emptied faster than what we want.
    Latency is by far, the best identifier. Mark the deviation of the subscribers from the 'actual' live, queues and aggregation of messages will play a part here again.
    There are core logs enabled for any system over load (more than 90%) of FMS CPU. Watch out for these logs. Till the point one wont find them, i am sure the FMS is doing good.
    Another option to take a look at is fibers. You can either enable and disable them for perf differences.
    In the end, there must be some benchmarking each one of us should do, in order to find the just_before_fail_state. We keep doing that internally, with lots of load and expecting it to crash

  • How to determine which drive has the most recent backup?

    I have a few drives that contain backups of files. What would be the easiest way to figure out which of the drives has the most recent backup? When I sort by date, the folder shows one date, though the files inside show a different date? Is there a way to quickly check the drives to find which is the most recent?
    Thanks.

    the folder modification date isn't reliable, as is only tells of changed in the folder, but not in subfolders. there is no efficient way. I however highly suggest Time capsule, it is WAY easier and you can ask it not to sync the System data and/or applications, so it would prevent this hassle.
    You could try this: go to the first drive, type different letters, like a for instance, and see which file is the most recent document/folder.
    do the same thing on the other drives and compare.

  • How to determine if mbp has key logger or spyware

    Strange logs and possible spyware. Brand new mbp, migrated from older mbp and now wondering if i should wipe it clean and start over. Not sure what all migrated over to my new mbp.
    Most of my google questions took me to Linc Davis discussions.
    I am new to this help site and appreciate the expert advise.
    Thank you for helping!  Please let me know what logs you need to assess the situation.

    Just retrieve it like any other attribute !!!!String returnedAtts[]={"sn","givenName","distinguishedName","msDS-UserPasswordExpired"};
    searchCtls.setReturningAttributes(returnedAtts);
    Attributes attrs = sr.getAttributes();
    if (attrs != null) {
    try {
    System.out.println("Password Expired: " + attrs.get("msDS-UserPasswordExpired").get());
    .....A constructed attribute simply means that it's value is automagically constucted by the domain controller when it is explicitly requested. It is not an attribute where the value is stored in the directory.
    No need to refresh caches etc.
    The reference to refreshing the cache for .NET (and in particular ADSI) is that ADSI automagically constructs a cache for all of the persisted attributes of an object.

  • How to determin wich control has focus

    I'm using arrow keys to drive an external device. I catch the main vi key events and act on it. On this vi is also a textinput. When I navigate true is input with arrow keys the main vi events are also fired. That of course should not happen. Is there a way to distinguis between such events. Thus between a vi's main keyboard events and keyboard events in a control on this vi. I thought of finding out wich control has focus.?

    Sometimes when you dialog controls, the last "OK" button added to the front panel has the focus turned on by default. You can right click on the control and select "Customize >> Key Navigation" and select "None" in the list.
    It seems you have a different problem and are using event structure. Nomally we use the "Value Change" as event condition. Is it possible that you may choose a different condition, such as "Key Down, Key up, etc"?
    -Joe

  • How to determine if 2851 has PWR-2851-51-AC-IP

    We have always ordered our 2851 with PWR-2851-51-AC-IP in case we go POE with internal switches. What show command can I use to see if the routers have these power supplies ?

    There is probably a better way but here is one:
    sh environment
    Main Power Supply is AC with -48V
    -48V supply status: OK
    -48V relay status: ISOLATED
    Fan 1 OK
    Fan 2 OK
    Fan 3 OK
    System Temperature: 28 Celsius (normal)
    Environmental information last updated 00:00:25 ago
    with out a AC-IP power supply:
    sh environment
    Main Power Supply is AC
    Fan 1 OK
    Fan 2 OK
    Fan 3 OK
    System Temperature: 28 Celsius (normal)
    Environmental information last updated 00:00:23 ago

  • How to: Determine When a Shelled Process Ends

    Hi all
    I followed the tutorial here https://msdn.microsoft.com/en-us/library/office/ff845544.aspx and it works very well
    When I do the same thing with a vbsript file instead of "Notepad.exe" It works very well too
    But if with the same vbscript file  I do request elevation (Run As) so it works more ..
    An idea?
    Thank you

    Hi Sun2k,
    Thanks for posting in MSDN fourm.
    This forum is for developers discusing developing issues involve Excel application. Since the issue is more relative to script developing. I would like to move it to
    The Official Scripting Guys Forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    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.
    Click
    HERE to participate the survey.

Maybe you are looking for