-
Notifications
You must be signed in to change notification settings - Fork 35
dx_get_faults
Marcin Przepiorowski edited this page Jan 10, 2019
·
5 revisions
dx_get_faults [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
[-st timestamp]
[-et timestamp]
[-severity severity]
[-status status]
[-target target]
[-format csv|json ]
[-outdir path]
[-help|? ] [ -debug ]
Get the list faults from Delphix Engine.
Delphix Engine selection - if not specified a default host(s) from dxtools.conf will be used.
- -engine|d Specify Delphix Engine name from dxtools.conf file
- -all Display databases on all Delphix appliance
- -configfile file Location of the configuration file. A config file search order is as follow:
- configfile parameter
- DXTOOLKIT_CONF variable
- dxtools.conf from dxtoolkit location
Filter faults using one of the following filters
- -severity Fault severity - WARNING / CRITICAL
- -status Fault status - ACTIVE / RESOLVED
- -target Fault target ( VDB name, target host name)
- -st timestamp Start time for faults list. Format "YYYY-MM-DD [HH24:MI:SS]". Default value is "now - 7 days"
- -et timestamp End time for faults list. Format "YYYY-MM-DD [HH24:MI:SS]"
- -format Display output in csv or json format If not specified pretty formatting is used.
- -outdir path Write output into a directory specified by path. Files names will include a timestamp and type name
- -help Print this screen
- -debug Turn on debugging
- -nohead Turn off header output
Display faults from Delphix Engine
dx_get_faults -d Landshark5
Appliance Fault ref Status Date Diagnosed Severity Target Title
-------------------- -------------------- ---------- ------------------------- -------- ------------------------------------------------------- -----------------------------------
Landshark5 FAULT-518 ACTIVE 2016-11-01 17:20:10 GMT WARNING Analytics/cont2 Unable to connect to remote databas
Landshark5 FAULT-519 ACTIVE 2016-11-01 17:20:10 GMT WARNING Analytics/cont1 Unable to connect to remote databas
Landshark5 FAULT-520 RESOLVED 2016-11-01 17:20:10 GMT WARNING Test/vFiles An error occurred during policy enf
Landshark5 FAULT-521 RESOLVED 2016-11-01 17:20:10 GMT WARNING Test/vFiles An error occurred during policy enf
Landshark5 FAULT-522 ACTIVE 2016-11-01 17:21:16 GMT WARNING rmantest Oracle home not found
Landshark5 FAULT-523 RESOLVED 2016-11-08 12:57:43 GMT WARNING test Oracle home not found
Landshark5 FAULT-524 ACTIVE 2016-11-08 13:13:10 GMT WARNING test Oracle home not found
Export faults from Delphix Engine into file
dx_get_faults -d Landshark5 -outdir /tmp
Data exported into /tmp/faults-20161108-16-11-58.txt
Delphix