How to determine if machine is 32 or 64 bit?

From: stan (stanb_at_panix.com)
Date: 07/15/04

  • Next message: Stoyan Angelov: "web server 6.1 administration server - password"
    Date: Thu, 15 Jul 2004 14:11:54 -0400
    To: Sun Magers list <sunmanagers@sunmanagers.org>
    
    

    We have recetnly added some 64 bit SPARC machines to an environment that
    has alwasy been 32 bit only.

    I need to modify some of my scripts to do different things on the 64 bit
    machines, from the 32 bit ones. I thought that my script should be able to
    get this from uname, but:

    Here is uname -a from a 32 bit machine

    SunOS AP0502 5.5.1 Generic_103640-37 sun4m sparc SUNW,SPARCstation-5

    and hre it is from a 64 bit one:

    SunOS AW0550 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Blade-100

    Now, granted they are differen Solaris versions, but I would rather be able
    to detect the 32/64 bit status itslef.

    What can I do to acomplish this?

    -- 
    "They that would give up essential liberty for temporary safety deserve
    neither liberty nor safety."
    						-- Benjamin Franklin
    ----- End forwarded message -----
    -- 
    "They that would give up essential liberty for temporary safety deserve
    neither liberty nor safety."
    						-- Benjamin Franklin
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    

  • Next message: Stoyan Angelov: "web server 6.1 administration server - password"

    Relevant Pages

    • Re: Any reason for NT Loader Missing?
      ... this "problem" with a few XP machines and also a win2k3 server. ... They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ...
      (microsoft.public.windowsxp.general)
    • How to find out the largest IDE drive I can install
      ... I've got a bunch of old P2 class HP's that I'm recycling for various ... machines, but a friend of mine reminded me that they might be to old to ... "They that would give up essential liberty for temporary safety deserve ...
      (Debian-User)
    • Status of new version?
      ... is thta the machines the deliver have Debian "stable" on them. ... "They that would give up essential liberty for temporary safety deserve ...
      (Debian-User)
    • Re: 1U servers with serial ports
      ... access teh data from aa Apache server on the machines. ... "They that would give up essential liberty for temporary safety deserve ...
      (comp.sys.sun.hardware)
    • Re: XP v 2000
      ... Perhaps I should further clarify, we have 5000 machines, 7 domains, 42 servers... ... They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. ...
      (microsoft.public.windowsxp.general)