[HPADM] Re: In: Find CPU info

From: James Mcdonald (jmcdon23_at_csc.com.au)
Date: 11/30/04

  • Next message: Prashant Zanwar: "[HPADM] Re: not able to login"
    To: Francesco.Borgoglio@cedacri.it
    Date: Wed, 1 Dec 2004 06:27:27 +1000
    
    

    Hi

    This covers most of the CPU info.
    The STM part will dump all your hardware info

    #!/bin/ksh
    # Get the Kernal value
    GetKernelVal(){
     echo "$1/D" | adb -k $HPUX /dev/kmem | tr "\012" " " | read dummy1 dummy2
      KERNEL_VAL
    }
    # -------------------------------------------
    CPUs(){
    # Get the CPU and some kernel info
    HPUX=/hp_ux
    REV=$(uname -r | cut -d. -f2 )
    if (( REV > 9 )); then
      HPUX=/stand/vmunix
    fi
    GetKernelVal "processor_count"
    print "CPU Number :" $KERNEL_VAL
    GetKernelVal "itick_per_tick"
    let SPEED=$KERNEL_VAL/10000
    print "CPU Speed :" $KERNEL_VAL MHz
    if (( REV > 10 )) ; then
     print "CPU HW Support :" $(getconf HW_CPU_SUPP_BITS) - bit
     print "Kernel Support :" $(getconf KERNEL_BITS) - bit
     GetKernelVal "memory_installed_in_machine"
    else
     GetKernelVal "physmem"
    fi
    let MEM_MB=$KERNEL_VAL*4/1024 #convert pages to MB
    print "RAM Size :" $MEM_MB MB
    }
    # --End CPU function -----------------
    Hardware(){
    # this all the hardware as seen by STM
    echo "System hardware and status according to STM \n"
    echo "selall\ninfolog\nexit"|cstm 2>&1
    echo "\n\n"
    }
    # --End Hardware function -----------------
    # -- Main ----
    CPUs
    Hardware
    ## END ##

    Regards

    Jim McDonald
     
    ----------------------------------------------------------------------------------------
    This is a PRIVATE message. If you are not the intended recipient, please
    delete without copying and kindly advise us by e-mail of the mistake in
    delivery. NOTE: Regardless of content, this e-mail shall not operate to
    bind CSC to any order or other contract unless pursuant to explicit
    written agreement or government initiative expressly permitting the use of
    e-mail for such purpose.
    ----------------------------------------------------------------------------------------

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Prashant Zanwar: "[HPADM] Re: not able to login"

    Relevant Pages

    • Re: Quad core CPUs loaded at only 50% when running a CPU and mmap intensive multi-threaded task
      ... Well, I just bought this new box, so there isn't a kernel version that I know that worked on this hardware. ... However on my previous box I have never seen such a problem (that the CPU is loaded only 50% with clamd) and I've been ... # Device Drivers ...
      (Linux-Kernel)
    • Re: How to develop a random number generation device
      ... single shared CPU; much less, in fact, since irrevelant interrupts, ... probably through shared memory and semaphores. ... switches are a reliability issue - processors don't have problems with them. ... If you shift the complexity to hardware, you'd get hardware that is expensive and buggy. ...
      (sci.electronics.design)
    • Re: Starting Windows 2000 hangs on new install.
      ... There might also be other mobo updated drivers. ... I've heard it said that winme is less 'hardware picky' than win2k ... > || Kevin. ... trying to return the CPU, but I'd need to show that it is faulty ...
      (microsoft.public.win2000.setup)
    • Re: Starting Windows 2000 hangs on new install.
      ... I mention BT merely as an example of my experience with a piece of hardware ... > CPU, but I'd need to show that it is faulty first. ... If you recently purchased mobo or cpu are you able to ... > || Kevin. ...
      (microsoft.public.win2000.setup)
    • RE: 70% CPU Usage Due to Hardware Interrupt Conflicts
      ... >> the CPU (also as measured by Windows Task Manager). ... >> apparent hardware conflicts, but a process management tool (Process Manager ... >> IRQ 10: ...
      (microsoft.public.windowsxp.general)