Tag: version

  • Ubuntu: How to check the samba version

     

    To check the version of Samba that you are running, use the smbstatus command. The first line is the version, which should look something like:

     

    Samba version 3.6.3

     

    If you want to see just the version without the rest of the smbstatus information, you can run:

     

    smbstatus –version

     

    Much less cluttered. The above is the current version for a 12.04 Ubuntu server. Still waiting for version 4!

  • How to find which version of ESXi you’re running from the command line?

     

    If you’re remotely logging in to a server to apply the latest patch but can’t remember whether you’re running 4, 4.1, 5.0 or 5.1 – and it can certainly happen when you’re managing quite a few of them remotely – there is a handy command to see which version and build number you’re actually using. After you’ve SSH’d in, run:

     

    vmware -v

     

    This will display output along the lines of the following:

     

    VMware ESXi 5.0.0 build-469512

     

    You can also use:

     

    vmware -l

     

    which doesn’t display the build number:

     

    VMware ESXi 5.0.0 GA

     

    Straightforward but very handy if you haven’t got the proper notes with you.

  • How do you tell which zpool version you are running?

    This is a question that crops up fairly regularly, as different operating systems support different zpool versions. Fortunately, it’s quite easy to find out which versions you are running – simply run:

     

    # zpool upgrade

     

    If you want a more detailed readout, including the features of the pool version you have, try:

     

    # zpool upgrade -v

     

    Your output should look something like this:

     

    # zpool upgrade -v
    This system is currently running ZFS pool version 28.

    The following versions are supported:

    VER  DESCRIPTION
    —  ——————————————————–
    1   Initial ZFS version
    2   Ditto blocks (replicated metadata)
    3   Hot spares and double parity RAID-Z
    4   zpool history
    5   Compression using the gzip algorithm
    6   bootfs pool property
    7   Separate intent log devices
    8   Delegated administration
    9   refquota and refreservation properties
    10  Cache devices
    11  Improved scrub performance
    12  Snapshot properties
    13  snapused property
    14  passthrough-x aclinherit
    15  user/group space accounting
    16  stmf property support
    17  Triple-parity RAID-Z
    18  Snapshot user holds
    19  Log device removal
    20  Compression using zle (zero-length encoding)
    21  Deduplication
    22  Received properties
    23  Slim ZIL
    24  System attributes
    25  Improved scrub stats
    26  Improved snapshot deletion performance
    27  Improved snapshot creation performance
    28  Multiple vdev replacements

    For more information on a particular version, including supported releases,
    see the ZFS Administration Guide.

     

    Or for the more simple command:
    # zpool upgrade

     

    This system is currently running ZFS pool version 28.

    All pools are formatted using this version.