massupdate

SPID Mass Update

The optional mass update utility provides the ability to migrate subscription version, number pool block, and network data from one Service Provider ID (SPID) to another based on an input file downloaded from the NPAC. The mass update utility reads SIC-SMURF files for LRN, NPA-NXX, and NPA-NXX-X, performs the required database updates and, in the case of LRN data, forwards an appropriate Update Override GTT message to the EAGLE.

Keyword

massupdate

Permission

The user must be logged in with the user name lsmsadm.

Syntax

$LSMS_DIR/massupdate [-v] [-p] [-n <npacRegion>] <filename>
Note: Stop the npacagent process for the region in question when the -n option is used. It is not necessary to stop the npacagent processes for all eight regions when the -n option is used.

Optional flags:

-v
Provides verbose output.
-p
Perform “pre-check” but make no database updates.
-n
Perform the mass update only for the region named by the <npacRegion> parameter. Only one NPAC region may be entered after the -n option

Parameters

<npacRegion>
The name of the region to perform the mass update for.
<filename>
The name of the SIC-SMURF file to process.
Note: The filename must be in the following format:

SIC-SMURF-[LRN|NPANXX|NPANXXX].OldSpid.NewSpid.DD-MM-YYYYHH24MISS

Example: SIC-SMURF-NPANXX.0001.0002.25-12-1996081122

Sample Output

$ $LSMS_DIR/massupdate SIC-SMURF-LRN.1234.9876.15-03-2002121530
One or more npacagents processes are currently running.  They must be
Stopped prior to mass spid updates by executing the following command:
/lsms stop <region>
Massupdate: exiting.
$ $LSMS_DIR/massupdate SIC-SMURF-LRN.1234.9876.15-03-2002121530
WARNING: The supman, lsman or an eagleagent process is currently running. It is recommended that all of these processes be stopped prior to mass spid updates to prevent modifications of GTT data during execution of this command.
Do you wish to continue [N]? 
Massupdate: exiting.
$ $LSMS_DIR/massupdate -v SIC-SMURF-LRN.1234.9876.15-03-2002121530
Using SIC-SMURF File: SIC-SMURF-LRN.1234.9876.15-03-2002121530
Performing Mass Update of SPIDs for LRN data...
Updating LRN 2223334000 from SPID 1234 to SPID 9876...
5 OverrideGtt object(s) updated in supported database
1 ServiceProvLRN object(s) updated in Southeast region
4 NumberPoolBlock object(s) updated in Southeast region
Updating LRN 2224441000 from SPID 1234 to SPID 9876...
0 OverrideGtt object(s) updated
1 ServiceProvLRN object(s) updated in Southeast region
10 NumberPoolBlock object(s) updated in Southeast region
Updating LRN 2225550000 from SPID 1234 to SPID 9876...
4 OverrideGtt object(s) updated
0 ServiceProvLRN object(s) updated in Southeast region
4 NumberPoolBlock object(s) updated in Southeast region
Updating SubscriptionVersion tables (this may take a while)...
790 SubscriptionVersion object(s) updated in Southeast region
Command stats
-------------
Lines processed: 3
Successful:      3
Failed:          0
Command complete.
$
$ $LSMS_DIR/massupdate -p SIC-SMURF-LRN.TKLC.SP05.06-30-2004101010
WARNING: The supman, lsman or an eagleagent process is currently running. It is recommended that all of these processes be stopped prior to mass spid updates to prevent modifications of GTT data during execution of this command.
Do you wish to continue [N]? Y

START Mass update command: Thu Nov  8 13:41:57 EST 2007

Precheck mode: Makes NO CHANGES, but reports everything as if updating.

Executing mass update for all regions...
 {Precheck only}
Reading SIC-SMURF File: SIC-SMURF-LRN.TKLC.SP05.06-30-2004101010

Performing Mass Update of SPIDs for LRN data... {Precheck only}

Command stats {Precheck only}
-------------
Lines processed: 1
Successful:      1
Failed:          0

Mass update command complete: Thu Nov  8 13:41:57 EST 2007
Table A-19 identifies the database tables and fields that are updated after invoking massupdate for the various SIC-SMURF files.

For each table/field that is affected, the field that is checked for a match is listed under the appropriate SIC-SMURF filename. Under the Table/Field column, the database containing the object to be updated (for example, SupDB), the table to be updated (for example, OverrideGTT), and the field to be updated (for example, spid) are listed.

Under each SIC-SMURF file type, the field to be used for the match (for example, lrn) is listed for each Table/Field impacted by the update. For example, for LRN SIC-SMURF files, the SupDB OverrideGTT table's spid is updated if the lrn is matched.

Tables/Fields Affected By SIC-SMURF Processing

Table/Field

LRN

SIC-SMURF

NPA-NXX SIC-SMURF

NPA-NXX-X SIC-SMURF

supDB.OverrideGtt.spid

lrn

   

supDB.LsmsServiceProvider.spid (create if required)

spid

   

supDB.GttGroupSpid.spid (create if required)

spid

   

<regionDB>.ServiceProvLRN.serviceProviderId

lrn

   

<regionDB>.ServiceProvNPA_NXX.serviceProvId

 

npanxx

 

<regionDB>.ServiceProvNPA_NXX_X.service-ProvId

   

npanxx_x

<regionDB>.ServiceProvNetwork.serviceProvId (create if required)

spid

spid

spid

<regionDB>.SubscriptionVersion.newCurrentSp

lrn

   

<regionDB>.NumberPoolBlock.newCurrentSp

lrn

   

If an Override GTT entry is modified and there is no LSMS Service Provider with the NewSpid, then one is created. If that LSMS Service Provider SPID is not a member of the GTT group for a modified Override GTT, then that membership is added by creating a GTT Group SPID table entry.

If a ServiceProvLRN, ServiceProvNPA_NXX, or ServiceProvNPA_NXX_X object is modified and there is no ServiceProvNetwork object with the NewSpid, then one is created.

LsmsServiceProvider Limit

The mass update utility creates LsmsServiceProvider objects, if needed, even if creating them exceeds the maximum number of SPIDs supported (as recorded in the MAX_SPIDS field in the DbConfig entry.) However, the fact that the limit has been exceeded is recorded in the log file and the limit remains in force otherwise.

Mass Update Log File

To record information or errors during the mass update or the precheck, the mass update utility appends to a log file named massupdate.log.MMDD, located in the $LSMS_DIR/../logs/massupdate directory. The .MMDD suffix is the month and day the massupdate excution begins. If the massupdate runs past midnight, it will keep all output from one massupdate execution in one file, so the file will not be split across days but continue in the same file it started in. The following information is written to the log file by the mass update utility:

Error Codes

Error Codes: massupdate

Error Code

Cause

Suggested Corrective Action

0

Success

None required.

1

Command syntax error

Rerun the command with the proper syntax.

2

Feature not enabled

Enable optional feature.

3

SIC-SMURF file not found

Verify path and filename for SIC-SMURF file.

4

Unable to open SIC-SMURF file

Verify permissions on SIC-SMURF file.

5

Incorrect file format

Supply valid SIC-SMURF file for processing.

6

massupdate already running

Do not attempt to execute more than one massupdate process at the same time.

7

npacmassupdate executable not found

Define environment variable LSMS_DIR or contact the My Oracle Support (MOS).

8

Database error

Make sure the database server is running.

9

User chose to stop

None needed.

10

npacagent running

If massupdate is run for all regions, stop all npacagent processes. If massupdate is run for a single region, stop the npacagent for that region only.

11

Unable to write

Remove <filename>_FAILED file and verify directory permissions.

12

Invalid user

Rerun as user lsmsadm.