Dali Admin Administering Dali Boca Raton Documentation Team We welcome your comments and feedback about this document via email to docfeedback@hpccsystems.com Please include Documentation Feedback in the subject line and reference the document name, page numbers, and current Version Number in the text of the message. LexisNexis and the Knowledge Burst logo are registered trademarks of Reed Elsevier Properties Inc., used under license. HPCC Systems® is a registered trademark of LexisNexis Risk Data Management Inc. Other products, logos, and services may be trademarks or registered trademarks of their respective companies. All names and example data used in this manual are fictitious. Any similarity to actual persons, living or dead, is purely coincidental. © 2015 HPCC Systems®. All rights reserved 3.0.0_x HPCC Systems May, 2015 <emphasis role="bold">Dali Admin</emphasis> DaliAdmin is an administrator's command line tool to diagnose and fix problems in an HPCC's System Data Store inside the Dali Server. Daliadmin can be found at opt/LexisNexis/bin/, along with other tools the HPCC installation package installs. <emphasis>Dali Admin usage</emphasis> Daliadmin is a command line tool to with the System Data Store in your Dali server. Usage: daliadmin <command> { <options> } daliadmin <command> { <options> } More text and further descriptions of daliadmin to come... Data Store commands: export <branchxpath> <destfile> exports specified branches to the nominated file... import <branchxpath> <srcfile> imports branches from the nominated file.. importadd <branchxpath> <srcfile> Adds to import *** delete <branchxpath> deletes the specified branch set <xpath> <value> sets single value to a single get <xpath> get single value bget <xpath> <dest-file> binary property xget <xpath> (multi-value tail can have commas) wget <xpath> (gets all matching xpath) addp <xpath> <value> adds value delp <xpath> deletes path Logical File meta information command: dfsfile <logicalname> get meta information for file dfspart <logicalname> <part-num> get meta information for part dfscsv <logicalnamemask> get csv description for files matching mask dfsgroup <logicalgroupname> get IPs for logical group (aka cluster) dfsmap <logicalname> get part files (primary and replicates) dfsexists <logicalname> sets return value to 0 if logical file exists dfsparents <logicalname> list superfiles containing file dfssuperunlink <logicalname> unlinks file from all super parents dfsverify <logicalname> crc verifies parts exist and (optionaly) match crc setprotect <logicalname> <id> overwrite protects logical file unprotect <logicalname> <id> unprotect file (if id=* then clear all) listprotect <logicalnamemask> <id-mask> list protected files checksuperfile <superfilename> check superfile linkage consistent checksubfile <subfilename> check subfile links to parent listexpires <logicalnamemask> lists logical files with expiry value listrelationships <primary> secondary> lists relations set up dfsperm <logicalname> returns LDAP permission for logical file access dfscompratio <logicalname> returns size and compression ratio of logical file dfsscopes <mask> lists logical file scopes cleanscopes <mask> remove empty scopes Workunit commands: listworkunits <workunit-mask> [<prop>=<val> <lower> <upper>] workunittimings <WUID> csv of graph timings saveworkunitarchive <WUID> <file> sets result to 0 if exists loadworkunitarchive <WUID> <file> sets result to 0 if exists Other dali server and misc commands: serverlist <mask> list server IPs (mask optional) clusterlist <mask> list clusters (mask optional) queuelist <mask> list active queues (mask optional) clientlist <mask> list all current connected clients getauditlog <fromdate> <todate> <match> get dali audit log text storecoalesce force dali server transaction log coalesce mpping <server-ip> time MP connect (sets result no zero if failed) daliping time dali client connect (sets result) daliperf return 'busy' measure for dali server getxref <destxmlfile> get all XREF information dalilocks get all locked paths (e.g. files) daliunlock unlocks a path Common options: (can be placed in daliadmin.ini) server=<dali-server-ip> required user=<username> for file operations password=<password> for file operations XPATH Syntax The XPATH Syntax can be entered in alternative method on the command line making it easier to enter commands without having to escape. Take for intsance the expression: x/y[@id="z"] This can be alternatively expressed as: x/y[@id=z] if z doesn't contain the character ']' Alternatively the same statement can be constructed as : x/y[@id='z'] another example in the following statement, if z does not contain a '}]' character string, you can use: x/y[@id={z}] The above examples make using xpaths easier from the command line by removing need to always escape quotes. LFN(<logicalname>) expands to file xpath for the logical filename