Symantec Directory : dxsearch fails to execute
search cancel

Symantec Directory : dxsearch fails to execute

book

Article ID: 376277

calendar_today

Updated On:

Products

CA Directory

Issue/Introduction

A working command line tool 'dxsearch' fails to execute with one of the following errors even though the permissions and ownership of the file and folder seems to be correct.

1)

C:\> dxsearch ?
Access is denied

2)

C:\> dxsearch -?
Program 'dxsearch.exe' failed to run: The specified executable is not a valid application for this OS platform. At
line:1 char:1
+ dxsearch -?
+ ~~~~~~~~~~~.
At line:1 char:1
+ dxsearch -?
+ ~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed

Resolution

The above can happen if someone accidently overwrote the 'dxsearch' executable by executing it with the wrong command.

e.g. Running the following command will result in std.out from D: (or C:) drive overwriting the executable with it's contents. When std.out is empty, that is what makes the file zero bytes, technically removing all the content and make it an empty executable with 0 kb size.

D:\>D:\>"D:\Program Files\CA\Directory\dxserver\bin\dxsearch.exe" -LLL -h <hostname> -p <port> -b "base_DN" -D <bind_DN> -w <bind_password> "uid=xxxxxx"

Solution is to copy the 'dxsearch.exe' from one the other host/node where the exact same version/SP of Symantec Directory is installed.