Re: Checking for kernel freshness

2012-04-13 Thread Florian Ernst
Hello all, On Thu, Apr 12, 2012 at 06:24:15PM +, Bernhard Schmidt wrote: > [...] > Fortunately there is /proc/version ... > > Thanks for everyone involved, I'm off writing checkscripts. FWIW, please check the attached script. HTH, Flo #!/usr/bin/perl -w # fe: ripped out from # # apt-dater

Re: Checking for kernel freshness

2012-04-12 Thread Bernhard Schmidt
keith wrote: > Bernhard Schmidt wrote: >> The hard part seems to be matching the running kernel against the >> version installed. I cannot figure out a good way so far. Nothing in the >> running kernel seems to show the Debian version (i.e. >> 2.6.32-41squeeze2), thus I cannot compare it. It is pr

Re: Checking for kernel freshness

2012-04-12 Thread keith
Bernhard Schmidt wrote: Hi, the company I work for has a script on SLES/SuSE, that checks the following three kernel versions - latest version available in the repository - version installed in /boot and thus likely to be loaded on next boot - version running and warns (and/or fixes) if there

Re: Checking for kernel freshness

2012-04-12 Thread Bob Proulx
Bernhard Schmidt wrote: > Bob Proulx wrote: > > Try this: > > > > $ cat /proc/version > > Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) (da...@debian.org) > > (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012 > > God damnit. I was looking in /proc/sys/kernel an

Re: Checking for kernel freshness

2012-04-12 Thread Bernhard Schmidt
Bob Proulx wrote: >> The hard part seems to be matching the running kernel against the >> version installed. I cannot figure out a good way so far. Nothing in the >> running kernel seems to show the Debian version (i.e. >> 2.6.32-41squeeze2), thus I cannot compare it. It is printed in the >> boot

Re: Checking for kernel freshness

2012-04-12 Thread Sven Joachim
On 2012-04-12 17:59 +0200, Bernhard Schmidt wrote: > The hard part seems to be matching the running kernel against the > version installed. I cannot figure out a good way so far. Nothing in the > running kernel seems to show the Debian version (i.e. > 2.6.32-41squeeze2), thus I cannot compare it.

Re: Checking for kernel freshness

2012-04-12 Thread Bob Proulx
Bernhard Schmidt wrote: > The hard part seems to be matching the running kernel against the > version installed. I cannot figure out a good way so far. Nothing in the > running kernel seems to show the Debian version (i.e. > 2.6.32-41squeeze2), thus I cannot compare it. It is printed in the > bootu

Checking for kernel freshness

2012-04-12 Thread Bernhard Schmidt
Hi, the company I work for has a script on SLES/SuSE, that checks the following three kernel versions - latest version available in the repository - version installed in /boot and thus likely to be loaded on next boot - version running and warns (and/or fixes) if there is a mismatch. I've been t