Solaris OS provides the /etc/release file to easily determine the base OS level or the OS release.
cat /etc/release
Solaris 10 8/07 s10x_u4wos_12b X86
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 August 2007
Tags: Solaris