Archive for Februar, 2016

AIX – Kernel Zeit lesbar machen

Posted: 4th Februar 2016 by Thorben Hemmler in Serveradministration

#!/usr/bin/perl use strict; use warnings; my @dmesg_new = (); my $dmesg = "/bin/dmesg"; my @dmesg_old = `$dmesg`; my $now = time(); my $uptime = `cat /proc/uptime | cut -d"." -f1`; my $t_now = $now – $uptime; foreach my $line ( @dmesg_old ) {     chomp( $line );     if( $line =~ m/\[\s*(\d+)\.(\d+)\](.*)/i ) […]