General Notes
The hasp_srm_view
utility provides a simple command-line utility for gathering Sentinel license information.
Local hardware licenses can only be displayed from a local connection to the system, for example via the console. If you are connected via a remote connection, for example ssh, the hasp_srm_view command will return an error. Network licenses do not have this problem.
Workaround:
When connected to the system via a remote connection you can display the license contents with the following command (adapt the path of the command if your installation location is different):
$ ssh localhost /opt/charon/bin/hasp_srm_view [OPTION] |
Starting with Charon-AXP/VAX 4.9, Charon-HPA 1.10, and Charon-SSP 4.0 the hasp_srm_view utility on Linux does not follow the settings in the Sentinel ACC with respect to querying remote license servers and network visibility. The utility performs a broadcast search for network licenses even if this has been disabled in the Sentinel ACC. If this behavior has to be prevented for specific reasons, the network access of the system must be temporarily restricted or disabled, for example by blocking the relevant traffic with a firewall. Alternatively, access to the network license at the license server side can be blocked.
Note that such methods can negatively impact other functions of the system or, in case of blocking access to a network license on the server, even the functions on other client host systems.
Name
hasp_srm_view – Charon Sentinel HASP Utility
Basic Syntax
|
Description
The command options of the hasp_srm_view
utility are listed below. If no options are specified, -l
is assumed.
Option | Description |
---|---|
-?, -h, -help | Display the utility usage message. |
-all | Show the product license details for all available keys. |
-c2v FILENAME |
|
-fgp FILENAME | Collect the host fingerprint information for generating a Sentinel software license to FILENAME . |
-key KEYNUMBER |
|
-l | Show the product license details for the default key attached to the host. |
(Obsolete) | Transfer HASP SL license (V2C file) from the local host to the host with the specified recipient ID. This option is no longer available in newer product versions. |
(Obsolete) | Create transfer recipient (ID) file recipient.id. The file is required if a software license is to be transferred from another system to this system. This option is no longer available in newer product versions. |
The options -trf
and -idf
are no longer available in Charon-SSP 1.0.36 and higher and in Charon-AXP/VAX version 4.8 and higher.
Exit Status
The hasp_srm_view
utility exits with 0
on success and with a non-zero value if an error occurs:
Action | Exit codes |
---|---|
Retrieve C2V data | 0 – success 1 – failure |
Create a host fingerprint | 0 – success 1 – failure |
Command line argument processing | 0 – success 1 – missing argument 2 – unknown argument |
The command also returns return code zero if the command itself ran successfully, but a Sentinel restriction was encountered (e.g., trying to display a license over a remote connection). In such cases an error message will be displayed.
Examples
The following example shows a partial output of the -l
qualifier for an attached Sentinel USB HASP key (Charon-AXP before version 4.9).
<lines removed> |
The following example shows a partial output for a hardware USB dongle using the Charon-AXP/VAX 4.9 version of hasp_srm_view the most important changes are marked in blue:
< Parameters Maximum Build and Minimum Build are no longer shown>
|