Usage: genlicense <license type ID> <type-specific options ...>
genlicense 1 <feature name> <start date> <end date>
<tied info id> <tied info str> <secret>
Feature name: String of characters not including hyphen '-'
Start date: 0 for no limit, or date like 2003/10/15
End date: 0 for no limit, or date like 2003/10/15
Tied info id: 1 for first MAC address
2 for host ID
3 for a license not tied to any specific machine
Tied info str: For tied info id 1: MAC like 11:33:55:77:99:AA
For tied info id 2: Host ID like 8bbf35f82b2c
For tied info id 3: ignored (use "-")
Secret: Shared secret, quoted or escaped if necessary
genlicense 2 <feature name> <secret> [-h <hash type>] [-u <length>] [-i]
[-f] [-o <option tag id> <option value>]*
Feature name: String of capital letters, numbers, and '_'
Secret: Shared secret, quoted or escaped if necessary
Hash type: defaults to hmac_sha256_48 if not specified.
Use either the number or the string in parentheses to specify.
1 (hmac_md5_full): HMAC MD5 with full 128-bit length
2 (hmac_md5_96): HMAC MD5 truncated to 96 bits
3 (hmac_md5_48): HMAC MD5 truncated to 48 bits
5 (hmac_sha256_full): HMAC SHA256 with full 256-bit length
6 (hmac_sha256_128): HMAC SHA256 truncated to 128 bits
7 (hmac_sha256_96): HMAC SHA256 truncated to 96 bits
8 (hmac_sha256_48): HMAC SHA256 truncated to 48 bits
The '-u' option requests to embed a randomly generated number in the
license, which serves to make it unique from other licenses with the same
options. Useful e.g. if you are using a cumulative informational option.
The parameter is a length in bits, up to 64.
The '-i' option requests to add a validator identifier to the license.
This makes the license five characters longer, but may speed up license
calculations in some cases.
The '-f' option forces generation of a license that otherwise failed our
validation criteria: either (a) it does not meet the current requirements
for hash length and/or algorithm, or (b) it uses an option tag which is
not relevant to the particular feature chosen.
The '-o' option can be used zero or more times to specify options
for the license. Each option tag has an id (which encodes the data
type and meaning of the tag) and a value. There are two classes of
option tags, which share the same id namespace. Specify the id either
by number, or by the string shown in parentheses after the number:
Activation option IDs:
1 (start_date): Start date: license not active before this date
2 (end_date): End date: license not active after this date
3 (tied_primary_mac): Tie to this MAC address on primary interface
4 (tied_host_id): Tie to this host ID
5 (tied_host_id_hex): Tie to this host ID (lowercase hexadecimal)
49 (efm_sx_serial_num): Chassis serial number for license verification
Informational option IDs:
48 (efm_sx_max_num_hca_ports): Maximum number of HCA ports supported by this MLNX-OS SwitchX license
50 (efm_sx_active_ports): Active ports number supported by this MLNX-OS SwitchX license
51 (efm_sx_l2_enabled): Eth L2 enabled by this MLNX-OS SwitchX license
52 (efm_sx_ib_enabled): IB enabled by this MLNX-OS SwitchX license
53 (efm_sx_eth_enabled): Eth enabled by this MLNX-OS SwitchX license
54 (efm_sx_gw_ports): GW ports number supported by this MLNX-OS SwitchX license
55 (efm_sx_max_ufm_ports): Maximum number of UFM ports supported by this MLNX-OS SwitchX license
56 (efm_sx_ib_speed_sw_limit): IB port SW speed limit enabled by this MLNX-OS SwitchX license
57 (efm_sx_eth_speed_sw_limit): Eth port SW speed limit enabled by this MLNX-OS SwitchX license
58 (efm_sx_l3_enabled): Eth L3 enabled by this MLNX-OS SwitchX license
59 (efm_sx_fcf_enabled): FCF enabled by this MLNX-OS SwitchX license
60 (oem_lic_10gbps_enable): 10 Gbps ports licensed by OEM license
61 (oem_lic_25gbps_enable): 25 Gbps ports licensed by OEM license
62 (oem_lic_100gbps_enable): 100 Gbps ports licensed by OEM license