How to determine the current update level of the system

How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
I have this sample program to display the version
#include <iostream>
#include <sys/utsname.h>
#include <dirent.h>
using namespace std;
int main()
  struct utsname osinfo;
  // Call uname to get system info, then extract strings.
  uname(&osinfo);
  if (osinfo.machine)  {
    cout<<" Machine : "<<  osinfo.machine;
  if (osinfo.sysname)  {
    cout << "\nOS Name : " << osinfo.sysname;
if (osinfo.release[0] != '\0')  {
    cout<<"\nRelease : " << osinfo.release;
}My aim is to check if the Solaris box is 5.10 update 4 or not.
Edited by: nidhish9 on Nov 27, 2007 5:11 AM

nidhish9 wrote:
How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
I have this sample program to display the version
#include <iostream>
#include <sys/utsname.h>
#include <dirent.h>
using namespace std;
int main()
struct utsname osinfo;
// Call uname to get system info, then extract strings.
uname(&osinfo);
if (osinfo.machine)  {
cout<<" Machine : "<<  osinfo.machine;
if (osinfo.sysname)  {
cout << "\nOS Name : " << osinfo.sysname;
if (osinfo.release[0] != '\0')  {
cout<<"\nRelease : " << osinfo.release;
}My aim is to check if the Solaris box is 5.10 update 4 or not.
Edited by: nidhish9 on Nov 27, 2007 5:11 AMIt's in /etc/release...
essapd020-u004$ cat /etc/release
                       Solaris 10 8/07 s10s_u4wos_12b SPARC
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007
essapd020-u004$ It can be processed with some simple commands:
essapd020-u004$ cat /etc/release | head -1
                       Solaris 10 8/07 s10s_u4wos_12b SPARC
essapd020-u004$ cat /etc/release | head -1 | cut -f2 -d_ | cut -c1,2
u4
essapd020-u004$ Best,

Similar Messages

  • How to determine what the current group level is?

    Post Author: mavrick5
    CA Forum: Formula
    I hope someone can help me urgently.  I have a complex report which has multiple drill down levels.  I am printing values for sales and qty at each drill down level as well as a calculation for average selling price.  What I want to do is calculate the average for the totals, not calculate the average per detail line and then calculate the average of the average (if you understand what I mean).  I have the averages calculating correctly except the total line in each drill down. How can I determine in a formula what group total I am currently printing (eg. group footer 1, group footer 2, etc.).  If I can determine which group footer I am currently printing, then I can change my calculation based upon the drill down level and the group footer. Thanks in advance.

    Post Author: yangster
    CA Forum: Formula
    think you are looking for the functiondrilldowngroupleveljust pop that into a formula and drag it into your report you'll see it counts from 0 when no drilldown has been invokedi use drilldowngoruplevel a lot to display different page headers depending on drill down level

  • How to see the current zoom level?

    I know how to increase or decrease the zoom level of a page. However, Firefox does not show me anywhere what the current zoom level is. Why? Both IE and Chrome show you the current zoom level. I don't want to install any extensions.

    If you don't want to install any extensions, then I think at best you might take a look at toolkit.zoomManager.zoomValues preference (in about:config). It gives you information about available zoom levels, but you have to remember how many times zoom in/zoom out actions were used (i.e. there is no current zoom level indicator like in e.g. Opera). For example .3,.5,.67,.8,.9,1,1.1,1.2,1.33,1.5,1.7,2,2.4,3 means that you have:
    Levels down (five):
    '''30%''' 50% 67% 80% 90%
    Levels up (eight):
    110% 120% 133% 150% 170% 200% 240% '''300%'''

  • How do I stop iOS update notifications in the middle of the night?

    How do I stop the iOS update notifications in the night. I do not need bright white update message while sleeping.  

    Settings App > Notification Center > App Store. You can take it out of Notifications altogether, or adjust the settings. (Turning OFF Show in Lock Screen might be enough).

  • I am using Acrobat XI Pro and tried to install the current update. I got this error message: "Error 1328.Error applying patch to file C:\Config.Msi\pT64b3.tmp It has probably been updated by other means1 and can no longer be modified by this patch. For mo

    I am using Acrobat XI Pro and tried to install the current update. I got this error message: "Error 1328.Error applying patch to file C:\Config.Msi\pT64b3.tmp It has probably been updated by other means1 and can no longer be modified by this patch. For more information contact your patch vendor." tried uninstalling and reinstalling and still get the error. Searched for C:\Config.Msi\pT64b3.tmp and cannot find the path or the file

    For AA XI, you only need the 11.0.09 patch. Download from http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows (Use "MAC" if a MAC is used).

  • I have a mid 2007 iMac.    2 GHz Intel Core 2 Duo, 4 GB 667MHz DDR2 SDRAM, OSX 10.9.5.   I attempted to do the latest update and got the message:  Start up disk is full.  Delete files.  How do I do that?

    I have a mid 2007 iMac.    2 GHz Intel Core 2 Duo, 4 GB 667MHz DDR2 SDRAM, OSX 10.9.5.   I attempted to do the latest update and got the message:  Start up disk is full.  Delete files.  How do I do that?

    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion/Mavericks' Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Get an external hard drive on which to store some of your files after which you can
          erase the data from your internal drive to free up space.
      5. Also see Freeing space on your Mac OS X startup disk.
      6. See Where did my Disk Space go?.
      7. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • TS1424 I have Scrabble on my IPhone but ever since I did the current update, I can't get it to work.  It's keeps saying "there is an error". "Try again later".

    So what can I do? I have Scrabble on my IPhone but since I downloaded the current update, I can no long play my games.  It constantly says "Error" Please try again later but it continues to say the same thing time and time again.  I purchased the game so I don't want to lose it.  I deleted and and placed back on my phone but still the same.  I'll take the old Scabble back if I could get it back.  What to do??

    error 3194
    I can't update my phone and I AM using the latest update of Itunes AND have restarted computer and followed everything.  I'm to the point of booking an app't with the genius bar because I'm finding apples instructions and this latest update to be a complete waste of time.

  • I have iOS 7 beta 6 on my 4s how am i supposed to update it to the final version of iOS 7

    i have iOS 7 beta 6 on my 4s how am i supposed to update it to the final version of iOS 7. when i go to settings>genral>sftware update it shows that its up to date but my iphone 4 had ios 6 so when i updated that it got more wallpapers and ringtones whivh are not there in the beta. and beat 6 has some volume bug which decreases the volume my iphone 4 is faster.

    Since only developers had legitimate access to the beta builds, consult them..your fellow developers...on the dev forums.

  • How to get the Minum Grade level from the view cluster table V_T710CL_B

    Hi Guys,
    I want to fetch the Minum Grade level from the view cluster table V_T710CL_B
    kindly help me
    Regards
    Rusidar.

    HI Siggi,
    Thank you for your reply..
    I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
    How can I use the Fields from the that table.?
    What can I do now, can you please explain me about this point.
    Waiting for your reply.
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh

  • I have a situation where the administrator password is rejected when attempting a software update. I think this happened because of syncing a iPad to the iMac.  How can I reset the Software Update back to the administrator password?

    I have a situation where the administrator password is rejected when attempting a software update. I think this happened because of syncing an iPad to the iMac.  How can I reset the Software Update back to the administrator password?

    You can reset the password with the install disk.

  • How do I remove the Adobe updater icon from the menu bar?

    How can I remove the Adobe Updater icon from the menu bar? It's pixelated and looks broken. Any help is appreciated.
    I found this thread, but it doesn't work. When I click on the Updater icon, then click "Open updater," it opens the Creative Cloud instead. I haven't found a way to remove the updater icon from within Creative cloud.
    Remove Adobe Updater from OS X menu bar?
    ^^ Doesn't work
    Anyone know how to remove it?
    Thanks!

    Found it, thanks to later posts in that thread I mentioned in the OP. Here is what they suggest (you have to use Photoshop):
    1. In Photoshop, go to Help >Updates:
    2. Click "Preferences" at the bottom right.
    3. Uncheck the box labeled "Notify me of new updates on the menu bar." Then click "Ok."
    Hope that helps anyone!

  • I can't download the current update, message says I am not connected to the internet although I am.

    I can't download the current update, message says I am not connected to the internet although I am.

    Assuming that you're not in a country that restricts or censors internet access, or connected to a LAN that does so (i.e. some dormatory and office systems):
    1. Reset the phone (no data loss): Press both the home and power buttons for at least 10 seconds, releasing when the Apple logo appears.
    2. Settings > General > Reset > Reset Network Settings
    3. Disable WiFi and update using cell data network.

  • My MacBook Pro has all the current updates, however is only open in version 10.5.8

    My MacBook Pro has all the current updates, however is only open in version 10.5.8 I've tried disk permission repair. I tried rebooting in leopard (which I have 2 cd) and both eject within 10 seconds. What do I do?

    Thank you.  I knew I had to purchase Lion, I had no idea had to purchase Snow Leopard.  Boy do I feel stupid :/
    Much appreciated

  • How to find last accessed/updated tables and the query text?

    I am using :
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.0 - Production
    How to find last accessed/updated tables and the query text?
    Regards
    LEE1212

    Check DBA_TBALES view there you find one date column that indicate last update
    One option is as follows:
    (1) Turn the auditing on: AUDIT_TRAIL = true in init.ora
    (2) Restart the instance if its running.
    (3) Audit the table:
         AUDIT INSERT,SELECT,DELETE,UPDATE on TableName
         by ACCESS WHENEVER SUCCESSFUL
    (4) Get the desired information using :
         SELECT OBJ_NAME,ACTION_NAME ,to_char(timestamp,'dd/mm/yyyy , HH:MM:SS')
         from sys.dba_audit_object.
    Cheer,
    Virag Sharma
    http://virag.sharma.googlepages.com/
    http://viragsharma.blogspot.com/
    Message was edited by:
    virag_sh

  • HT1222 i am not getting the software update tag in the general settings for my iphone, how to update my software then??

    I am not getting the "software update" tag in the general settings for my iphone, how do I update my iphone 4 software then????

    How to update your iPhone, iPad, or iPod touch

Maybe you are looking for

  • Is The GPU Working In After Effects?

    Hello, I use the MSI GTX Geforce 660TI Power Edition, Mercury Playback Engine enabled in Premiere Pro CS6 and After Effects CS6. When I render in Premiere I notice the Geforce GPU is used quite often, but not at a constant rate. It alters from 0% to

  • Can you somehow use Lightroom to rename RAW files?

    Okay let's say in one folder on my hard drive I have three RAW files: _DSC0001.NEF and _DSC0002.NEF and _DSC0003.NEF. Now let's say I have reformatted my memory card so my camera will once again start labeling new images with _DSC0001.NEF. So let's s

  • Standard Report to display locked records of an infotype

    Hi All, Is there any SAP standard report to display the locked records of an employee. Suppose for an employee his two absence record has been locked and one additional payment has been locked. Is there any SAP standard report to display his locked r

  • IMovie 08 crashes as it starts

    I just installed iLife '08 and when I click on the new iMovie icon, the app crashes before it fully opens. I tried this after restarting my iMac, which makes no difference. Any thoughts/suggestions? Below is the generated problem report... C. Date/Ti

  • Music Item Order

    Using iTunes 10.7 (21). I have selected several types of columns so as to see different information in conjunction with a listed item (e.g. composer, etc.). A small black triangle can be above any one of the columns, which, when clicked, causes the o