Listing the name of the default cfg clause in an INDEX file

This form of the manage_index command enables you to see which cfg clause is the current default cfg clause:

manage_index -l -o [-v] [-i index_filename]

For example:

$ cat INDEX

...

cfg "testing" {

description "testing clause" "/var/tmp/config_c" "/opt/ignite/data/Rel_B.11.11/config" "/var/tmp/config_a"

}

cfg "testing two" {

description "testing clause" "/var/tmp/config_c" "/opt/ignite/data/Rel_B.11.11/config" "/var/tmp/config_a"

}=TRUE

$ manage_index -l -o -i /var/tmp/INDEX Default config clause is "testing two" in index file: /var/tmp/INDEX

Renaming a cfg clause in an INDEX file

The following form of manage_index enables you to rename a cfg clause. (This may be useful when you need to swap two clauses.)

manage_index -m old_clause_name -c new_clause_name [-p] [-v] [-i index_filename]

The following example swaps two cfg clauses:

$ manage_index -l -i /var/tmp/INDEX testing

testing two

$ manage_index -m "testing two" -c "t two" -i /var/tmp/INDEX $ manage_index -l -i /var/tmp/INDEX

testing t two

$ manage_index -m "testing" -c "testing two" -i /var/tmp/INDEX $ manage_index -l -i /var/tmp/INDEX

testing two t two

$ manage_index -m "t two" -c "testing" -i /var/tmp/INDEX $ manage_index -l -i /var/tmp/INDEX

testing two testing

21