do_rc_admin_bulk_update.py
The do_rc_admin_bulk_update.py script reads a comma-separated values (CSV) file that identifies subscribers and updates in the Route Cache as specified by the operation.
Use the do_rc_admin_bulk_update.py script to add, overwrite, or delete subscribers in the Route Cache directly.
Syntax
do_rc_admin_bulk_update.py -f filename -o operation
Options
- -f filename, --file-path filename
- The name of the CSV input file. Each line of the
file must have the following
syntax:
These fields are defined as:[key_type], [key], [sub_domain_id]
- key_type — An integer corresponding to the subscriber key type. The
route_cache_record_common
XML element in mtx_config_base.xml has the definitions for these types. - key — The key identifier.
- sub_domain_id — An integer that indicates the sub-domain to which the subscriber belongs.
- key_type — An integer corresponding to the subscriber key type. The
- -o operation, --operation operation
- The operation to perform on the information for the
specified subscribers in the Route Cache. The possible operations are:
- insert — Inserts specified records. If the records already exist, they are not overwritten.
- overwrite — Inserts specified records. If the records already exist, they are overwritten with the information from the CSV file.
- delete — Deletes specified records.
- delete-all — Deletes all records.