Jean-Louis Martineau writes:
- On 01/14/2015 06:34 AM, Toomas Aas wrote:
- > I just installed a new Amanda server, version 3.3.6 on FreeBSD 10.1 
- > amd64. There seems to be a cosmetic issue during selfcheck, client 
- > tries to execute something called /usr/bin/sw_vers, which does not 
- > exist (snippet of selfcheck.debug attached). Selfcheck succeeds 
- > despite of this problem.
- >
- 
- selfcheck try to return the distro and version of the OS.
- How can it get that information on freebsd? or other bsd?
- How to get the 'FreeBSD' string and the '10.1' string?

        uname -s -> 'FreeBSD'/'NetBSD'/'OpenBSD'/'DragonFlyBSD'
        uname -r -> '10.1'/'6.1_STABLE'/...

"uname -s" provides the system name, and "uname -r" provides the
OS revision (on every UNIX family system except Linux, where
they return "Linux" and the kernel revision.  A side effect of
how Linux distributions are created.)

Other interesting attributes provided by a BSD uname (I've long
since forgotten about HP-UX and Solaris and IRIX, sorry):

        uname -m        ->      machine hardware name (i386/amd64/etc)
        uname -n        ->      node name (aka short system name)
        uname -p        ->      machine processor architecture name

--
Eric Schnoebelen                [email protected]            http://www.cirr.com
            In every real man a child is hidden that wants to play. 
                                      -- Friedrich Nietzsche

Reply via email to