# oamcfg task sequence

Regardless of the order in which the options are specified, oamcfg always performs operations in the following order:

Step | Action
--- | ---
1 | If -x is specified, ignores all other command line options except -a. Searches the system for boards.
2 | If -a is specified, ignores all other command line options except -x. Adds any detected boards to the NMS OAM database.
3 | If -c is specified, creates a board in the NMS OAM database unless -c? is specified. If -c? is specified, oamcfg displays a list of all product types supported by the installed plug-ins, in alphabetical order, and then terminates.
4 | Assigns the board a default name, number, PCI bus, and slot. The following defaults are used:
Item | Default
Name | Product name, followed by a space and then a numeral. For example: CG_6000C_QUAD 0
Number | Next unused number. For example, if board 1 exists, the next number is board 2.
PCI bus | 0
PCI slot | 0
Note: For each operation (except -c), if no specific component is referenced on the command line with the -b, -l, or -n options, the operation is performed for all boards on the resource host specified with the -@ option, or on the management host if -@ is not specified.
5 | Assigns board ID information if specified on the command line. Values specified on the command line override any values previously set. Note: If the -r option is specified, any existing data for the boards is deleted when any new information is added with the -f or -k options, or if the board ID information changes. Refer to Reading and changing database information.
6 | In the NMS OAM database record(s) for the components, adds the contents of any keyword files specified with -f options.
7 | In the NMS OAM database record(s) for the components, sets any values specified with -k options on the command line. The value for a given keyword specified on the command line overrides any value for that keyword previously loaded from a keyword file.
8 | If -q is specified, displays the board's name and number, or the names and numbers of all boards if no board is specified on the command line.
9 | If -s is specified, attempts to start the board, or all boards if no board is specified on the command line. By default, oamcfg waits until all board start or test attempts succeed or fail, unless the -i option is specified.
10 | If -p is specified, stops the boards.
11 | If -t is specified, tests the boards.
12 | If -d is specified, deletes the boards from the NMS OAM database.