Moab Accounting Manager > Managing funds > Creating funds

Creating funds

gmkfund is used to create a new fund. You can specify a fund name, a description, and any number of fund constraints. If a name is not specified and constraints are specified, a name will be automatically generated based on the constraints. A new unique id is automatically generated for the fund.

gmkfund [-n fund_name] [--priority fund_priority] [--default-deposit deposit_amount] [-d description] [-X, --extension property=value]... [-u user_name,...]...  [-g group_name,...]... [-a account_name,...]... [-o organization_name,...]... [-c class_name,...]... [-m machine_name,...]... [--constraint constraint_name=[!]constraint_value,...]... [--parent parent_fund_id] [--debug] [--site site_name] [--help] [--man] [--quiet] [--verbose] [--version]

It is possible to have funds be created automatically when accounts are created by setting the Fund object's AutoGen property to true (see Fund auto-generation). The auto-generated fund will be associated with the new account.

Example 6-1: Creating a fund valid for the chemistry account

$ gmkfund -a chemistry -n "Chemistry"
 
Successfully created 1 fund with id 7 and 1 constraint

Example 6-2: Creating a wide-open fund that can be used by anyone for anything

$ gmkfund -n "Windfall"
 
Successfully created 1 fund with id 8

Example 6-3: Creating a fund valid toward all biology account members except for dave and just the machine colony

$ gmkfund --constraint Account=biology,User=!dave,Machine=colony -n "Biology on Colony not for Dave"
 
Successfully created 1 fund with id 9 and 3 constraints

Related topics 

© 2014 Adaptive Computing