CiCa
February 14, 2013, 7:00am
1
Hi,
Anyone able to advise on how to find the kernel patch level of an ABE?
showrev and uname -a will provide kernel patch details of the running environment, but how can I run these commands against the ABE or where do these commands get their information from i.e. is the kernel patch level stored somewhere in a flat file?
Thanks
CiCa
GP81
February 14, 2013, 8:09am
2
# mkdir /a
# beadm mount ABE /a
# showrev -a -R /a
1 Like
CiCa
February 14, 2013, 8:22am
3
Hmm - not sure if that's actually worked.
I've compared two BE's that I know are at different patch levels e.g.
root[mybox]#
root[mybox]# df -h .
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d3 15G 13G 1.9G 87% /
root[mybox]#
root[mybox]# mount /dev/md/dsk/d0 /a
root[mybox]# showrev -a -R /a > /tmp/result
root[mybox]# umount /a
root[mybox]# showrev -a > /tmp/result1
root[mybox]# diff /tmp/result1 /tmp/result
root[mybox]#
Am I missing something obvious?
GP81
February 14, 2013, 10:11am
4
Ok it was my mistake.
-R works only with -p
so you can do something like this
# uname -a
SunOS ldom 5.10 Generic_141414-01 ...
# showrev -p | grep 141414
Patch: 141414-01 Obsoletes: Requires: 118833-36, 120011-14, 127127-11, 137137-09, 139555-08 Incompatibles: Packages: SUNWcakr, SUNWckr, SUNWcslr, SUNWmdb, FJSVmdb, SUNWmdbr, FJSVmdbr, SUNWzfsu, SUNWs9brandr, SUNWust1, SUNWust2, SUNWdtrc, SUNWhea
If you have number of kernel patch of running BE and eventually number of obsoletes, then you can try to find out number of kernel patch in your ABE.
# mount /dev/md/dsk/d0 /a
# showrev -p -R /a | grep 141414
1 Like