Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created June 27, 2013 17:36
Show Gist options
  • Save ableasdale/5878567 to your computer and use it in GitHub Desktop.
Save ableasdale/5878567 to your computer and use it in GitHub Desktop.
Resolve hostnames of all hosts in the cluster
xquery version "1.0-ml";
import module namespace admin = 'http://marklogic.com/xdmp/admin' at '/MarkLogic/admin.xqy';
for $h in xdmp:hosts()
return xdmp:host-name($h)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment