/usr/lib/xcp/lib/sm_diagnostics is in xcp-xapi 1.3.2-5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 | #!/bin/sh
. /etc/xcp/inventory
echo Host: ${INSTALLATION_UUID}
echo
xe host-get-sm-diagnostics uuid=${INSTALLATION_UUID}
|