Home >

Utilities Reference Guide > Lunadiag > Lunadiag Utility

Lunadiag Utility

Lunadiag is a diagnostic tool for SafeNet Luna card products. In general, you may never need to use it, other than to confirm a successful Luna installation. If you experience problems with a Luna product and need to contact Customer Support, you may be asked to perform additional tests with Lunadiag, as part of the troubleshooting process. In that circumstance, the support representative will instruct you. Several menu items are self-explanatory. The more obscure items are of interest only to Technical Support in very specific circumstances.

However, if you are an application developer, you may wish to use Lunadiag during your software-development. You have the option to run Lunadiag from the command line of a console window. From the command line, the syntax for for Lunadiag is:

  lunadiag  [-s=num]  [-o=num]  [-c=num] <[options]>

Where

-s=num     Number of slots to test at once.  

                (Range: 1..64; default: 1)

-o=num     Offset into slots to begin testing

                (Range: 1..64; default: 1)

-c=num     Command to run (Range: 1..12)

for example, lunadiag -s=1 -o=1 -c=11

The spaces are required. The following additional options can be executed, and exit immediately without user prompt.

-CHRYSTOKI   Perform the Chrystoki Library configuration test.

-DUALPORT     Dump dualport.

-FIPS             Test for FIPS setting for one token.  

                       Exit code 1 implies FIPS enabled.

Verify Successful Installation

If you can run tests

 2 Driver Test

 3 Communication Test

and

 4 Read Firmware Level

successfully (if they do not return error messages) then the installation was successful.

If there is a problem, check the cable connections to your card reader.

If there is still a problem, remove and re-install the Luna software.

If problems persist, contact Customer Support.