6 Replies Latest reply: Nov 23, 2012 6:02 AM by 975643 RSS

    Find No of CPUs available in my server

    975643
      Help me to find the no of CPU's in my SunOS server (command).

      Edited by: 972640 on Nov 21, 2012 10:37 PM
        • 1. Re: Find No of CPUs available in my server
          972640 wrote:
          Help me to find the no of CPU's in my SunOS server (command).

          Edited by: 972640 on Nov 21, 2012 10:37 PM
          Depending on which +"SunOS"+ you are actually using, there may or there may not be such a command. However, you chose to keep that information a secret.

          At a command prompt, do:
          <pre> uname -a</pre>
          then paste the results back to a reply in this forum thread.
          After that, you might have someone think about replying with assistance.
          • 2. Re: Find No of CPUs available in my server
            975643
            uname -a
            SunOS server801 5.10 Generic_142900-14 sun4u sparc SUNW,SPARC-Enterprise
            • 3. Re: Find No of CPUs available in my server
              Good.
              You can begin with using the prtdiag command in verbose mode:
              <pre>prtdiag -v</pre>
              As any normal user, you will get an output report. If you do it as rout user, you will get a report with more extensive information.

              Since you are using Solaris 10, then the processor information command is in your OS release.
              <pre>psrinfo -pv</pre>
              which will additionally show you any virtual processors your system architecture might (or may not) happen to have. I don't think your box happens to have any virtual processors. It's too old a CPU design.

              In any event, go read the man pages for the commands to learn more about them.
              • 4. Re: Find No of CPUs available in my server
                975643
                Please check the below result of the commands given. guide if I have change any settings to make the command work properly.

                orabp1> uname -a
                SunOS server801 5.10 Generic_142900-14 sun4u sparc SUNW,SPARC-Enterprise
                orabp1> prtdiag -v
                ksh: prtdiag: not found
                orabp1> psrinfo -pv
                ksh: psrinfo: not found
                orabp1> date
                Thursday, November 22, 2012 10:38:04 PM PST

                Edited by: 972640 on Nov 22, 2012 10:40 PM
                • 5. Re: Find No of CPUs available in my server
                  Your forum post reply shows that you're attempting to use those commands while a normal user. Neither command is in your user's normal command path. You could have used the FIND command to locate them yourself. But ...

                  PRTDIAG can be found in the */usr/platform/sun4u/sbin* directory of your particular system.
                  Thus you'll need to type absolute path to get it to run.
                  I'll leave you to locate psrinfo by your own efforts.
                  • 6. Re: Find No of CPUs available in my server
                    975643
                    Thanks for the commands its working fine as root user.