/usr/sbin/serverinfo
serverinfo tool is intended to be used in shell script conditionals.
/System/Library/PrivateFrameworks/ServerInformation.framework/Versions/A/Resources/serverinfo
The binary is a part of ServerInformation private framework.