Add Reservations

To add reservations, create a file whose contents define a new reservation group, which, in turn, contains definitions for one or more reservations (each with a hostid identifying a client device or a user). Each reservation definition contains one or more reservation entries, each entry defined by a feature and its count.

For a quick reference to example reservation-file contents, see the following section Sample License Reservation File. For details about reservation hierarchy, definitions, and behavior, see License Reservations in the More About License Server Functionality section.)

Note:If you want to add or edit reservations in an existing group, delete and then re-create the group, using an input file whose contents include the reservation definitions initially used to create the group, plus the edits. See Delete All Reservations in a Group for instructions on deleting a group.

To add one or more reservations

1. Run a command similar to the following:

flexnetlsadmin -server licenseServer_baseURL –reservations –load resv-1.json 

The option -load points to the text file (in this example, resv-1.json) containing the reservation definitions.

2. Use the instructions in Confirm Reservations Posting to see the added reservations.

If the reservations were not added, see License Reservations in the More About License Server Functionality section for information on the types of errors or conditions that can cause reservations to be rejected.

Sample License Reservation File

The following shows the contents of an example reservation file that defines a reservation group, called support, that contains reservations for two hostids, 7A7A77AAA77A and Joe. The file is written in the JSON format required for defining reservations.

Sample Contents of License Reservations File

{ "name" : "support", "reservations" :
  [
    { "hostId": { "value" : "7A7A77AAA77A", "type" : "ETHERNET" },  
       "reservationEntries": [
         { "featureName": "f1", "featureVersion": "1.0", "featureCount": 1 },
         { "featureName": "f2", "featureVersion": "1.0", "featureCount": 1 }
         ]},
    { "hostId": { "value" : "Joe", "type" : "USER" }, 
       "reservationEntries": [
         { "featureName": "f1", "featureVersion": "1.0", "featureCount": 1 },
         { "featureName": "f2", "featureVersion": "1.0", "featureCount": 1 }
         ]}
]}