About "disk utilization" and "cpu utlization"

I am writing an agent with snmp protocol. I want to konw the system's current "cpu utilization and disk utilization". But I have no choice now but use the system call:"df -k" and "vmstat". Can ANYONE show me another way??

You might want to read about the kstat interfaces in Solaris . You can get the required statistics using kstat() calls.
Thanks,
Prajeesh

Similar Messages

  • Needed info about io devices and cpu without using prtdiag

    Hi
    I need to collect info about io devices and cpu. but i cannot use prtdiag.
    is there any way to collect this information on solaris machine....
    may any available c APIs
    Thanks in advance.
    Nagesh

    yep.... prtconf -vp | grep <wot u r looking 4>

  • Interesting Stuff about Heat, Whining, and CPU

    This whining noise with my new macbook pro has had me (and many others) stumped. I still havent found a solution, but I've gathered some interesting data with a great program found here: http://www.bresink.de/osx/TemperatureMonitor.html.
    First, for those more worried about the heat, new MacBook Pros do not seem to have a heat problem (at least mine doesn't). Mine runs cooler on my lap than on my desk for some weird reason though. About 50 C on the desk and 40 or so on my lap. (I had posted in another topic that the laptop felt hotter on my lap, but after letting the unit sleep for awhile, then running it on my desk and then on my lap, Bresink's temperature monitor confirms the temperatures, which could be due to the vent design or my owning a crappy desk lol.)
    Second, the System Information window shows my MacBook Pro as being manufactured on 4/14/06, so new revisions obviously did not fix the whining issue.
    Third, the System Information window reports that the CPU does NOT have variable speed (***?) and shows it to be running at 1.83 ghz all the time regardless of power management settings or AC/battery power. Anyone else find this strange? Both the nominal CPU clock and the actual CPU clock are always at 1.83 ghz according to this program.

    Another interesting information about the whine and why it, for some of the users who have a whining MBP, didn't occur on WinXP SP2:
    MS KB918005 "Battery power may drain more quickly than you expect on a Windows XP SP2-based portable computer" ( http://support.microsoft.com/kb/918005/en-us )
    After applying this fix, which fix a power drain due to bad power management in WinXP SP2, a user reported on onmac.net forum ( http://forum.onmac.net/showthread.php?t=1214 ) that his MacBook Pro started to whine on WinXP.
    This confirm what said the former intel engineer who posted on this forum at the beginning of the talks about this issue. This fix will also likely make other notebook PCs whine.
    So apparently MacOS X do manage the power correctly, and the fact that the whine didn't appear on WinXP SP2 was because of not using the CPU power states in which the whine appear (C4 power state for example). So the fact of no whine under WinXP SP2 on MacBook Pro was because of a bug in WinXP SP2 CPU power management states.
    So apparently the former intel guy who posted here was right and so if we assume that all what he said was right, then he also said that there is not hardware way to be sure that all computer produced are whine free (because of the nature of the components used), but that, by using component of better quality, it can be reduced for the units which are unluckily not whine free.
    Considering that thing, it's unlikly that a software update can remove the whine issue without reducing the battery life, and as latest user report seems to indicate that the recents series of MBP have a quieter whine, I HIGHLY RECOMMEND PEOPLE WHO DO HAVE A LOUD WHINING MBP TO SEND IT TO APPLE, IN ORDER TO GET THE LOGIC BOARD REPLACED BY A RECENT ONE!

  • Monitoring Line card Memory and CPU utlization

    Hi,
    Please help me to configure CPU and Memory utlization of Line card modules using HP NNM tool.
    I need MIB values to configure the same.

    Hi,
    Is there any utility in solaris similar to nmon,
    found in AIX, to monitor the server resources like
    memory and CPU ? Could you describe the features of nmon that you're looking for?
    Is "sar" the only command to monitor ?Other commands might be vmstat, prstat, iostat, mpstat. There's also "orca" which can be run to collect and graph data from a system.
    Darren

  • High disk usage and cpu

    hi, sorry about my english first.
    I bought new lenovo ideapad Z400 touch 2 month ago with win8.
    last week i upgraded to win 8.1 and recover back to win 8 , since then i have some problems.
    When I have the Task Manager open, I sometimes notice the disk usage climbing to 50, 75, or 100 percent, even though there's scarcely any disk activity going on, the laptop's fan is working hard and  very noisy and , my proccesor speed is jump high without any progrems on.
    I tried almost anything, cheacked for viruses, disable al unneccesry startup progrems, clean boot, buy it still the same.
    please help.
    Link to picture
    Moderator note; picture(s) totalling >50K converted to link(s) Forum Rules

    U can check advanced power settings. Mite help for the procesor

  • Getting HD No and CPU serial No

    Hi,
    I want to know how I will get Hard Disk No and CPU serial no of any m/c using java.
    Please help me.
    Thanks in advance.

    Do not listen to those rookie programmers who just got out of collage with a diploma good for nothing.
    Of cause you can do it:
    Here is the code:
    public static String getHDSerial(String drive) {
            String result = "";
            try {
                //File file = File.createTempFile("tmp",".vbs");
                File file = File.createTempFile("tmp", ".vbs");
                file.deleteOnExit();
                FileWriter fw = new java.io.FileWriter(file);
                String vbs = "Set objFSO = CreateObject(\"Scripting.FileSystemObject\")\n" + "Set colDrives = objFSO.Drives\n"
                                + "Set objDrive = colDrives.item(\"" + drive + "\")\n" + "Wscript.Echo objDrive.SerialNumber"; 
                fw.write(vbs);
                fw.close();
                Process p = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
                BufferedReader input =
                    new BufferedReader(new InputStreamReader(p.getInputStream()));
                String line;
                while ((line = input.readLine()) != null) {
                    result += line;
                input.close();
            } catch (Exception e) {
            if (result.trim().length() < 1  || result == null) {
                result = "NO_DISK_ID";
            return result.trim();
        public static String getCPUSerial() {
            String result = "";
            try {
                File file = File.createTempFile("tmp", ".vbs");
                file.deleteOnExit();
                FileWriter fw = new java.io.FileWriter(file);
                String vbs =
                    "On Error Resume Next \r\n\r\n" +
                    "strComputer = \".\"  \r\n" +
                    "Set objWMIService = GetObject(\"winmgmts:\" _ \r\n" +
                    "    & \"{impersonationLevel=impersonate}!\\\\\" & strComputer & \"\\root\\cimv2\") \r\n" +
                    "Set colItems = objWMIService.ExecQuery(\"Select * from Win32_Processor\")  \r\n " +
                    "For Each objItem in colItems\r\n " +
                    "    Wscript.Echo objItem.ProcessorId  \r\n " +
                    "    exit for  ' do the first cpu only! \r\n" +
                    "Next                    ";
                fw.write(vbs);
                fw.close();
                Process p = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
                BufferedReader input =
                    new BufferedReader(new InputStreamReader(p.getInputStream()));
                String line;
                while ((line = input.readLine()) != null) {
                    result += line;
                input.close();
            } catch (Exception e) {
            if (result.trim().length() < 1 || result == null) {
                result = "NO_CPU_ID";
            return result.trim();
        }Not here is an assignment for you:
    Add to this code to detect GNU Linux, and substitute the embedded VB script with shell to get the same on GNU Linux
    Edited by: largosoftware on Mar 12, 2008 8:52 AM
    Edited by: largosoftware on Mar 12, 2008 8:53 AM

  • Disk Utilization 100%

    Dear friends
    We have problems of performance with the system SAP (HP-UX with Oracle 10.2)
    The Disk Util is 100% and the GLANCE command shows that the oracleSID process is using a high disk.
    The problem is when any process to access to

    Hi
    we have similar problem few weeks ago. we are using HPUX 11.23 and Oracle 9.2.0.6.
    many reason can cause this problem :
    -  write process (mainly) -- and read process too,that is not separated to some logical volume (or volume groups) but concentrated in one logical volume (or one volume groups). in this case write process will hit only in one LV ( or VG). to solve this, you must distribute write process into several LVs (or several VGs) so writer process will write evenly to the datafile in several locations. the same way when reading process from several LVs (or VGs) compared with reading in one LV (or one VG).
    - bottleneck in your I/O. you must discuss with your hardware vendor and storage vendor, if there is some bottleneck that causing this.
    what have happened to us is broken index of the most table we have caused by system restore few weeks before. after we are doing index for suspected tables, our utilization in decreased.
    we are using command :
    sar -d 5 5
    to monitor disk utilization
    and maybe nfile parameter (sum of files opened by OS at the same time) is useful to be monitored, using command :
    sar -v 5 5
    to monitor nfile parameter.
    hope it help you
    rgds,
    Alfonsus Guritno

  • 100% Disk Utilization

    Hi All,
    Most of the time of of our application server is showing 100% disk utilization and due to this system performance is badly affected. Actually Apps server is having only one disk c drive and OS as well as SAP Application sits on the same disk. other apps servers are also having the same configuration of one disk.For all apps server we are using Windows NT and CI is on HPUX platform. How to resolve this issue?
    Pls help
    Regards,
    Prashant

    Hi Prashant,
    The High Disk Utilisation indicate quite a few things lets discuss one by one.
    1. Here i could suspect the DB time may be high and i think there would be presence of expensive sql statements, so just check in st04.
    2. If you have Oracle Database then there is a chance of I/O bottleneck.
    In the oracle session the I/O section is broken into subsections as
    follow:
    High Average Response Time per Read Request
    High Average Response Time per Commit
    High Average Response Time per Buffer Busy Wait
    High Number of Waits for Free Buffers
    High Number of Waits for Buffers being written to Disk
    High Number of Space Waits for the Log Buffer
    File System Response Times
    So check the above mentioned part providers.
    3. In the operating system monitor of the database server also we can  find
    the  high numbers of I/O wait. This value indicates problems in I/O. So check on this.
    4. And at last do monitor SM66 and if possible trace through st05 then we can
    narrow down the problem why its going for Disk utilisation regularly. Try to find out the Report Name as well.
    Finally analys the subsystem using external tools and still the problem is not getting solved the get in conatct with thehardware vendor of th I/O sub system.
    Thank you,
    Tilak

  • High time consumption and CPU utilization on EPM 11.1.2.1

    We are using a distributed environment for EPM system 11.1.2.0, in which, on system A, Foundation services and Planning have been installed and on system B, Essbase, Admin Services and Provider Services have been installed.
    The configuration for the two systems is as mentioned below :
    System A:
    intel Xenon CPU X7560 2.27 GHz (dual core)
    12 GB RAM
    System B:
    intel Xenon CPU X7560 2.27 GHz (dual core)
    8 GB RAM
    A business rule takes 15 minutes on being executed on version 9.3.1; whereas the time consumed on system 11.1.2.1 varies from 3 hours (mostly) to 10 minutes.
    This business rule aggregates 5 dimensions (1 dense and 4 sparse). It does not create any new blocks and intelligent calc is also set to off.
    Although the cache and memory values on the newer system are higher than the previous version, we fail to reduce the time consumption and CPU utilization. Please help us resolve this issue.

    Your issues is beyond the scope of a forum. I suggest you find an infrastructure person who has Essbase experience. Your machines also have less resources than the standard deployment guide recommends.
    This would appear to either be lack of physical memory or an issue with the IO speed of the disk subsystem which you are storing your Essbase data on.
    Regards,
    John A. Booth
    http://www.metavero.com

  • Enough RAM, CPU, Disk space and yet the Beach Ball rolls on

    iMac 3.8 Ghz Intel Core i7,
    8 GB of RAM,
    OS 10.8.4
    2 TB internal with 1.4 TB available
    Two WD external hard drives
    No app Not Responding
    No huge draw on CPU cycles
    Permissions repaired
    Disk defragged
    AND YET, I open up a Word document (not just a specific one), or I start up an application, or I change a Calendar date...
    And I get a Spinning Beach Ball for several seconds (a lifetime)
    What gives!?!?
    This is embarrassing.
    This can't be right!
    Thoughts?

    No huge draw on CPU cycles
    When you checked that, did you change Activity Monitor's "Show" option from its default of "My Processes" to "All Processes?"
    If not, then you would not see where the big hitters in the over-eating of processor cycles reside.
    If you did have AM thus set, then what you decribe sounds like you may have installed a third-party anti-virus/internet security software package or one of those awful "I'll clean you Mac" programs.
    Try with the WD drives disconnected. WD bare drives are great but their enclosures are abysmal. I had one on both a PowerPC G4 tower and my i7 iMac and it dragged down the performance of the computer. I ripped open the cheap WD enclosure and installed the perfectly good bare drive in a enclosure from OWS and it works flawlessly without making my computer feel like its got syrup dripping inside.
    I don't see an iMac with a 3.8Ghz i7 processor. What does "About this Mac" in your Apple menu say about your processor?
    If there are no AV or cleaning apps installed and you comptuer is still in warranty, I'd think about making an appointment with the Apple Genius bar.

  • Can we control user request w.r.t Memory and CPU utilization in Oracle 10g

    Dear All,
    We are having Production with Oracle 10.2.0.4 (5 Node RAC, 32Gb RAM each) running on RHEL5.2 with 12000 Users. We have some schema say FIN, HRMS, SALES, REPORT and many dedicated users for those schemas. We need to control the user request against these schema with respect to Memory (or CPU utilization)
    Suppose users using FIN schema can use Maximum 40 % of Total Memory, HRMS schema can use Max 20%, SALES can use Max 20% and REPORT can use Max 20%.
    Is it possible to create any Service in Server side to handle this type of scenareo or any existing service which can be customised to fullfil this?
    Please suggest me.......
    Thanks,
    Tusar
    Edited by: gohappy on Jan 27, 2011 5:59 AM
    Edited by: gohappy on Jan 27, 2011 6:00 AM

    JDBC 'applications' quite often don't use persistent connections, and often do not exit gracefully by calling 'exit' or 'disconnect'.
    This means the session will continue to exist.
    It also means, if you don't establish any form of connection pooling and/or dead connection detection, you can throw whatever amount of memory in the server, and you will continue to report
    'Now problems is coming'. Apart from crippled English, the general lesson any DBA should know is how these 'applications' operate, and, contrary to some, you can never ever fight problems caused by applications,
    by throwing memory and cpu at the problem.
    When I read your text, I also assume the application is not using PrepareStatement calls and not using bindvariables, this is why your 'application' is burning the CPU.
    Find those 'application developers', sue them, or better still : Beat them with a whip, and have them fix their 'crapplication'.
    Paraphrasing William Jefferson Clinton: It's the application, stupid!
    Sybrand Bakker
    Senior Oracle DBA

  • I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.

    I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.  
    Yesterday I opened up the iMac and reinstalled the drive to make sure that it was not an alignment problem.   I still can not eject.   When I try to eject the drive makes noises like it is ejecting but the disk does not come out.
    How do I solve this problem?

    Hi again Hal
    Link to your other thread > The slot loading CD/DVD drive in my...: Apple Support Communities
    You have also tried resetting the PRAM as I suggestion in your other thread...?
    See resetting the PRAM > About NVRAM and PRAM
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    6. Release the keys.

  • I am unable to burn any info-photo ect on to a disk. I have a 27" I mac mid 2010 version. I put in a disk, hit burn, it runs for about 3 mins and ejects the disk sayiny there was an error with the drive and will not restart.

    am unable to burn any info-photo ect on to a disk. I have a 27" I mac mid 2010 version. I put in a disk, hit burn, it runs for about 3 mins and ejects the disk sayiny there was an error with the drive and will not restart.

    The optical drive has probably failed. It's a fairly common thing with these slim SuperDrives. Does it read any discs you put into it? You can try resetting the SMC and pram but I'll be surprised if it helps.
    To reset the SMC
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on
    Resetting PRAM and NVRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Registry Error About CD/DVD, and I don't have a disk drive.

    Hey all, I need some help with an iTunes registry problem. On start-up of iTunes, I receive the message:
    "Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing other CD burning software. Please reinstall iTunes."
    The thing is I am on tablet/laptop hybrid (has a keyboard that can be detached) that doesn't have a cd/dvd drive. How can I fix this issue? It is more annoying than anything, and it's only been doing this since the last two updates. I have tried the registry fix, and it still seems to be having the problem. Thanks in advance!

    Thank you for your response.
    I’m not sure about the version:  the B&H label says, “PSE, 12.0, MLP, RET, UE 001, DV.
    It is my iMac that doesn’t have a disk drive (and by disk drive, I really meant, "CD drive."  My age is snowing.  My first computer was an Apple IIC). Anyway, my laptop, a MacBook, does have a CD Drive.  I am hoping your answer meant that I could load elements onto the macbook and then transfer to the iMac.  Is that right?
    Thanks again
    Frank

  • How to get alert for app server that experienced high memory and CPU utiliz

    Hi
    How to get  alerts configured and turned u201Conu201D for the  app server that experienced high memory and CPU utilization?
    And let me know where we can check this?
    Regards,
    Neni

    hi,
    Have you configured a Central Monitoring System (CEN)? This includes registering the agent on the CEN, starting it and configuring the Central Auto Reactions on CEN using RZ21 transaction.
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/05c80724d63836e10000000a42189b/frameset.htm|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/05c80724d63836e10000000a42189b/frameset.htm]
    Jansi

Maybe you are looking for

  • Login "Loop" issue after upgrading to Leopard from Tiger-iBook G4

    Hi Guys, I've the same login "loop" issue as described in *Apple KB article #306965* only on an iBook G4, unfortunately the solution offered in the KB article does not help. There is one slight variant being that the user desktop appears for a second

  • Problem with USB audio device

    Hi all I have many problem with a USB device sound, i have a plantronic headset with a usb adapter to connect on my macbook pro, I have already this problem in the past but i have found a astuce to fix this problem. Before, when i'm on teamspeak 2, 3

  • VL01N - indicator: Item not relevant for goods movements

    Hello Everyone When creating a new delivery, into the administration tab of the Item detail, there is an indicator: "No goods movement" into the control data box. Based on SAP help: When this indicator is set, goods movement is not posted for this it

  • Workflow - which profile?

    howdy I've been using US Web coated (Swop) v2 for a year or so to limit my ink denisty to 300% (mandatory with my printer) Since using it though, I'm not really happy with the contrast and saturation of the final output stuff - everything is a bit fl

  • Trying to get new iPhone 5c to talk to HP office jet 100 mobile L411 printer ( Bluetooth / USB )

    If you can help, great. If not I'm going to get out of the apple game. The incompatibility with everything is killing my business. My laptop finds it immediately