Sometimes /etc/issue has what you want..
--
Tony Lawrence
SCO/Linux Support Tips, How-To's, Tests and more: http://pcunix.com
>> A quick question. What is the shell command to determine the version of
>> Xnix that is currently running?
> Usually some variant of uname, often "uname -a", but all sorts of other
> possibilies: -v, -X .. who knows? Depends on the flavor and in some
> cases even the version of that flavor.
> Sometimes /etc/issue has what you want..
Even when the man page tells you that uname -v gives you the version, it can be an
entirely different interpretatioon of version than what you would think.
For example, on this 2.4 kernel Red Hat box, uname -r says 2.4.9-21. Thatt's good.
But uname -v gives "#1" and todays date (yes, I did build a new kernel today)
On the SCO system I'm trying to recover for a client to my left, uname -r says 3.2
and uname -v says "2", but uname -X says "Release=3.2v5.0.4"
On the BSD box to my right, uname -r says 4.1.1-STABLE and -v says that and more.
Can't trust it unless you already know how it works :-)
--
Tony Lawrence
SCO/Linux Support Tips, How-To's, Tests and more: http://pcunix.com
>>> A quick question. What is the shell command to determine the
>>> version of Xnix that is currently running?
Sure, best should be, checking 'man uname', case in doubt....;-)Quote:> Can't trust it unless you already know how it works :-)
Michael Heiming
--
Remove the +SIGNS case mail bounces.
>>>>A quick question. What is the shell command to determine the
>>>>version of Xnix that is currently running?
> [SNIP]
> .
>>Can't trust it unless you already know how it works :-)
> Sure, best should be, checking 'man uname', case in doubt....;-)
The SCO man page says that uname -v gives the version. It does warn
that it will always be "2", but it's only in recent versions that it
goes on to explain that what you really want is obtained from uname -X.
Nothing in uname on this Redhat system returns "Redhat 7.1", which is
what many would consider the release- the specific kernel version is
perhaps the next thing you'd want to know.
I still say that even with the man page, if you aren't experienced with
the OS, you aren't necessarily going to get what you want without a
fight :-)
--
Tony Lawrence
SCO/Linux Support Tips, How-To's, Tests and more: http://pcunix.com
[SNIP]
OK, agreed, 'cat /proc/version' should give additional info on LinuxQuote:> I still say that even with the man page, if you aren't experienced
> with the OS, you aren't necessarily going to get what you want
> without a fight :-)
Michael Heiming
--
Remove the +SIGNS case mail bounces.
They are lengthy, slow, and involved, but have the merit of being
scripted (and debugged!) by many others; if your application doesn't
merit this sophistication, I suggest perusing the code to see how
config.guess or config.sub extracts the system info for your system.
http://subversions.gnu.org/cgi-bin/cvsweb/autoconf/config/config.guess
http://subversions.gnu.org/cgi-bin/cvsweb/autoconf/config/config.sub
=Brian
I may have used the wrong terminology there but I mean the spec one
always sees on machines for sale in stores like :
For pc hardware:
Athlon 1.2ghz Celeron 800mhz etc.
> > They are lengthy, slow, and involved, but have the merit of being
> > scripted (and debugged!) by many others; if your application doesn't
> > merit this sophistication, I suggest perusing the code to see how
> > config.guess or config.sub extracts the system info for your system.
> Brian,
> Will that technique or any others you know of dig out the cpu clock
> speed. I recently needed to get that remotely from an older FreeBSD
> installation and suddenly realized I had no clue how to get it.
> I may have used the wrong terminology there but I mean the spec one
> always sees on machines for sale in stores like :
> For pc hardware:
> Athlon 1.2ghz Celeron 800mhz etc.
rpm -q redhat-release
maybe that will help you
fred
Perhaps Fred's submission will have been of some help.
=Brian
> I confess but that I am a bit confused as to the applicability of
> what I _thought_ your were requesting insofar as you wanted a
> _software_ report. uname(1) was mentioned, and since uname does not
> give hardware info I figured that a standardized format was your
> primary goal.
On an older solaris uname -a
SunOS io 5.5.1 Generic_103640-24 sun4m sparc SUNW,SPARCstation-5
Isn't at least the entry `sparc' and the last one about hardware?
From an older FreeBSD machine:
$ uname -a
FreeBSD HOST 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0:
Wed Jan 13 11:23:30 GMT 1999
Doesn't i386 refer to hardware?
From the Solaris `man uname'
[...]
-i Print the name of the hardware implementa-
tion (platform).
-m Print the machine hardware name (class). Use
of this option is discouraged; use uname -p
instead. See NOTES section below.
[...]
Does any thing tell about the cpu or clock speed, that you know of?
I mean something you can type at the command line and get that info.
Tony> Nothing in uname on this Redhat system returns "Redhat 7.1", which is
Tony> what many would consider the release- the specific kernel version is
Tony> perhaps the next thing you'd want to know.
Both Redhat and Mandrake (and maybe other Redhat-kind Linuxes) has file
/etc/redhat-release. My Mandrake gives
Mandrake Linux release 8.1 (Vitamin) for i586
--
University of Tampere, Department of Computer and Information Sciences
Tampere, Finland http://www.cs.uta.fi/~av/
AUTHOR
MagniComp
http://www.MagniComp.com
URL
http://www.magnicomp.com/sysinfo
FILES
/etc - Directory of config files
/etc/sysinfo.cf - Master configuration file
/etc/sysmodel - Explicitly set the CPU model name
Works on nwer suns it seems, at least some I use, perhaps it's an addon tool.
For the linux folks;
SYNOPSIS
/bin/linuxinfo
DESCRIPTION
linuxinfo
Displays the system information about the system,
including ker- nel version, number and type of pro-
cessors
in system, version of system library (libc or
glibc).
again, an addon I think, have not seen it as a default in any dists:
do a google search for source.
Thanks,
Ron DuFresne
:>> Will that technique or any others you know of dig out the cpu clock
:>> speed. I recently needed to get that remotely from an older FreeBSD
:>> installation and suddenly realized I had no clue how to get it.
:>
:> I confess but that I am a bit confused as to the applicability of
:> what I _thought_ your were requesting insofar as you wanted a
:> _software_ report. uname(1) was mentioned, and since uname does not
:> give hardware info I figured that a standardized format was your
:> primary goal.
: I just butted in here with my question but I thought uname gave some
: hardware info too. If not then what does? I guess is what I was
: asking. Sorry if it confused things in the thread. Or displayed bad
: manners.
: On an older solaris uname -a
: SunOS io 5.5.1 Generic_103640-24 sun4m sparc SUNW,SPARCstation-5
: Isn't at least the entry `sparc' and the last one about hardware?
: From an older FreeBSD machine:
: $ uname -a
: FreeBSD HOST 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0:
: Wed Jan 13 11:23:30 GMT 1999
: Doesn't i386 refer to hardware?
: From the Solaris `man uname'
: [...]
: -i Print the name of the hardware implementa-
: tion (platform).
: -m Print the machine hardware name (class). Use
: of this option is discouraged; use uname -p
: instead. See NOTES section below.
: [...]
: Does any thing tell about the cpu or clock speed, that you know of?
: I mean something you can type at the command line and get that info.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
admin & senior security consultant: sysinfo.com
http://sysinfo.com
"Cutting the space budget really restores my faith in humanity. It
eliminates dreams, goals, and ideals and lets us get straight to the
business of hate, debauchery, and self-annihilation."
-- Johnny Hart
testing, only testing, and damn good at it too!
Kind of. It's the "kernel hardware configuration" or "kernel hardwareQuote:> Isn't at least the entry `sparc' and the last one about hardware?
IRIX has hinv(1m) ("hardware inventory"). In all Unices, I suspect,Quote:> Does any thing tell about the cpu or clock speed, that you know of?
> I mean something you can type at the command line and get that info.
=Brian
nothing portable.Quote:>Will that technique or any others you know of dig out the cpu clock
>speed.
--
okay, have a sig then
1. check kernel version command?
as title, thx
2. (Newbie) Script behaves different when run interactively than via 'at'
3. command to check kernel version ...
5. command to check OS version??
7. check kernel version command?
8. Reading environment variables..
9. command for checking kernel version
10. Help - how to check unix version?
11. Check Book Balancer for Unix version 0.51a
12. How do I check the version of my UNIX system?
13. check sum on a unix command