Moab Accounting Manager > Managing liens > Creating liens

Creating liens

Liens are normally created with the greserve command (See Making a usage lien).

However, it is also possible to create a manual lien against specified allocations using the gmklien command. A lien object and its allocation associations will be created. Unlike greserve, no calculated lien amount will be returned nor will a usage record be created or updated with the lien. Furthermore, gmklien will not perform any checking to ensure that the specified allocations have a sufficient active balance to support the lien.

gmklien [-J instance_name|job_id] [-s start_time] {-e end_time | -t lien_duration] [-d description] [-X, --extension property=value]... {-A allocation_id<-fund_id=sublien_amount,...}... [--debug] [--site site_name] [--help] [--man] [--quiet] [--verbose] [--version]

Example 8-1: Creating a manual lien

$ gmklien -J weekend_run -t 84600 -A "5<-2=3600"
 
Successfully created 1 lien

Use of the gmklien command bypasses the normal mechanisms that prevent more liens from being placed against an allocation than it can support. Use greserve instead if you wish to avoid the possibility of oversubscribing the allocations.

Related topics 

© 2014 Adaptive Computing