Manage Resources with the CLI
vovresourcemgr is a utility for managing VOV resource maps. It may be used to create, modify, forget, and reserve resource maps.
Resouce map names support most of the ASCII characters except # / =
.
Using alphanumeric characters is strongly recommended.
vovresourcemgr: Usage Message
USAGE:
% vovresourcemgr COMMAND [options]
COMMAND is one of:
show Show summary info about all resource maps
show [R1..RN] Show info about specified resource map(s)
matches RESMAP Show license matching info
ooq RESMAP Show out of queue license handles
create RESMAP map-options
Create a new resource map
set RESMAP map-options
Create a new or modify an existing resource map
reserve RESMAP TYPE WHO HOWMANY HOWLONG WHY [-exclusive]
Place a reservation on a resource map
forget [-force] R1 [R2..RN]
Remove resource map(s) from the system
MAP-OPTIONS:
-expire specify expiration (timespec) relative to now
-max specify quantity
-map specify map-to value
-rank specify rank when setting
-noooq do not track out-of-queue
-local specify that this is a local resource (when using vovwxd)
For reserve, TYPE is one of: USER,GROUP,JOBCLASS,JOBPROJ,JOBID.
EXAMPLES:
% vovresourcemgr show
% vovresourcemgr show Limit:abc
% vovresourcemgr matches Limit:abc
% vovresourcemgr create License:spice -max 8
% vovresourcemgr set License:spice -max 10
% vovresourcemgr set License:spice -map "Policy:spice"
% vovresourcemgr ooq License:spice
% vovresourcemgr reserve License:spice USER john,jane 3 3d ""
% vovresourcemgr reserve License:spice USER bill 1 1w "" -exclusive
% vovresourcemgr forget License:spice
% vovresourcemgr forget -force License:spice
vovproject enable vnc
, or
precede it with nc cmd as shown in the examples below.
Dynamic Resource Map Configuration
The create command checks for existence of the named resource map and exits with a message if it already exists. The set command will create or replace an existing resource map with the given values with no confirmation.
Limit:spice
,
which is created with a quantity of 10
and an empty map-to
value.% nc cmd vovresourcemgr set License:spice -max 10
Resource Map Reservation
License:spice
are reserved for user john
for
an interval of 4 hours. The resource map reservation will automatically expire after
4 hours.
% nc cmd vovresourcemgr reserve License:spice USER john 2 4h "library char"
Workaround for Misspelled Resource
License:sspice
resources that are mapped to the correct
License:spice
resource. License:sspice
is an incorrect request - that resource does not exist. A temporary resource is
created with that name that will be mapped to the correct resource,
License:spice
% nc cmd vovresourcemgr create License:sspice -max 4 "License:spice"
Forgetting Unneeded Resource Maps
% nc cmd vovresourcemgr forget License:sspice