Sie sind auf Seite 1von 10

DATA RETROFIT STEPS FOR LAG :

1. Login on LAG.

2. Shutdown LAG.

3. Remove Shared memory


ipcs –m
ipcrm shm < pids obtained from above command>

remove data( bak files also)


shutdown standby copy of LAG

4. remove data( bak files also)

5. Shutdown Standby Copy of LAG. (Mandatory)

6. Delete node of LAG if discovered on EMS.(MUST)

7. Bring the LAG simplex copy up.

8. Steps for lagbulk script:

Assumptions:-
i)In Exchange Code info Sheet Type is given as "LAG" [column 8]

ii)In Subscriber info


• For Time / Untimed hotline respective column should be
filled as "Y/N" [column 32 & 33]

• For Call waiting respective column should be filled as


"Y/N" [column 34]

Procedure for the Generation of the LAG Scripts

STEP 1 : Open the "Exchange Code info" Sheet and save it as


"Excod.txt" after removing the Header. Field delimiter is to be
given as ";".

STEP 2 : Open the "Equipage info" Sheet and save it as


"Eqpinfo.txt" after removing the Header. Field delimiter is to
be given as ";".

STEP 3 : Open the "subscriber Info" Sheet and save it as


"Subinfo.txt" after removing the Header. Field delimiter is to
be given as ";".

STEP 4 : Open the "Centrex info" Sheet and save it as


"Ctxinfo.txt" after removing the Header. Field delimiter is to
be given as ";".

STEP 5 : Open the "Hotline info" Sheet and save it as


"Htlninfo.txt" after removing the Header. Field delimiter is to
be given as ";".

STEP 6 : Make a directory LAG_BULK.

STEP 7 : Move all the above txt files in to it.

STEP 8 : Copy the script "lagbulk.sh" in this directory.

STEP 9 : Give command chmod +x lagbulk.sh

STEP 10 : Run lagbulk.sh as "./lagbulk.sh"

LAG wise bulk script is the output of this script like


LAG_1.lst, LAG_2.lst etc.

#############################################################
#############################################################
#############################################################
#############################################################

9. Ftp .lst file to respective LAG (mmc) in path


/usr/local/bin/lag/AGENT/lagagent/

10. Open LAG CLI (login root password public)

12. Give command mod-general-param to create exchange code.


mod general_params dirno_len=6 exc_code =2 country_code =91
area_code=1477

(The above command is the example of Nimbahera exchange for BM-1


. Fill data according to sites. Take the help from core team for
this information)

13. Give command bulk cfg file = LAG_1.lst


(here data of BM-1 is getting retrofit)

14. Search for fail in file LAG_1.lst.log in path


/usr/local/bin/lag/AGENT/lagagent directory on LAG.

15. Bring All Tics inservice with command


force unit_ins tic01-0
so on for all the tic ids

16. Bring All terminal cards inservice with command


force line_card_ins rack=1 frame=1 slot=3

So on for all the line cards in all the frames

17. Run DB utility on LAG


Steps for DB Utility to activate and register call waiting
facility (Excluding CCB subscribers):

• Copy db_CALL_WTNG_ACT.exe to the path


/mmc/usr/local/bin/lag/AD-DB/ on LAGU-NGTJ card.

• Go to the above mentioned path and execute the utility.

• chmod 777 db_CALL_WTNG_ACT.exe

#./db_CALL_WTNG_ACT.exe

Select the option 153.

Enter the BM no. as '0'.(Be careful….BM no should be ‘0’


(ZERO)

4. The directory numbers of the subscribers for whom the


utility successfully executed can be seen in /tmp/db.output
file.

5. Apart from this, the number of subscribers for which the


utility was successful can be seen using the command
# wc -l /tmp/db.output

6. Now shutdown LAG and restart again.

Note : Run data creation script .lst from CLI interface only not
from EMS GUI.
PROCEDURE FOR CREATION OF BULK DATA FOR AN-RAX (AT THE ACCESS
SITE OVER THIN CLIENT MACHINE):

Note: lst files will be provided by the Core Team.

Please stop ag application before transferring lst files for


execution.

cd /mmc/ngtj
./service ag stop

Go to /mmc/ag directory and remove bin file

cd /mmc/ag
rm -rf Cdot*bin

Give ag start

cd /mmc/ngtj
./service ag start

After getting lst files , please follow below procedure

11) ftp this lst file on NGTJ card in /mmc/agscripts


directory.Please follow below commands:

ftp <Card IP>

Username and Password is root.


Give commands bi and ha.

Give below command

cd /mmc/agscripts

AN_Card IP.lst will be the filename.

Give command mp AN_Card IP.lst and type y.


Then file will be transferred.
Type bye to exit FTP mode.

12) Run FE to open CLI prompt of the card

cd /mmc/ngj
./service ag fe

From the main menu,please select below options

Subscriber And Miscllaneous Commands  Misc Command Exec-


CMD-FILE

File Syntax :

AN_<V5 Application IP>.lst

Enter command file name for example AN_10.188.94.17.lst where


10.188.94.17 is the application IP in NGTJ card.

Then please give AN_10.188.94.17.lst after selecting option


Exec-CMD-FILE.
Procedure for Creation of lst files in AN-RAX

Assumptions:-
1)In V5AG info
i) Respective column should be filled with proper values

AI Number [column 1]
AI Name [column 2]
Area Code [column 3]
Exchange Code [column 4] (The script will run
for one Exchange Code only)
Variant ID [column 5]
Number of Directory digits [column 6]
Number of PCM Links [column 7]
Start L3 Address [column 8]
Logical Port ID of NGTJ (Primary Link) [column 9]
Logical ID of Primary Link [column 10]
Logical Port ID of NGTJ (Secondary link)[column 11]
Logical ID of Secondary Link [column 12]
V5AG Card IP Address [column 13]

2)In Subscriber info


i) For Time / Untimed hotline respective column should be filled
as "Y/N" [column 25 & 26]
ii) For Call waiting respective column should be filled as "Y/N"
[column 27]
iii) For CFB (Call Forwarding on Busy) respective column should
be filled as "Y/N" [column 21]
iii) For CFNA (Call Forwarding on No Answer) respective column
should be filled as "Y/N" [column 22]
iii) For CFU (Call Forwarding on Absenty) respective column
should be filled as "Y/N" [column 20]
iii) For Card Type respective column should be filled as
"ORDINARY/CCB" [column 6]

Procedure for the Generation of the V5AG Scripts

STEP 1 : Open the "V5AG" Sheet and save it as "ai.csv" after removing
the Header. Field delimiter is to be given as ";". Rename this file as
“ai.txt”.
STEP 2 : Open the "subscriber Info" Sheet and save it as "subinfo.csv"
after removing the Header. Field delimiter is to be given as ";".
Rename this file as “subinfo.txt”.
STEP 3 : Make a directory V5_BULK.
STEP 4 : Move all the above txt files in to it.
STEP 5 : Copy the script "anbulk.sh" in this directory.
STEP 6 : Give command chmod +x anbulk.sh
STEP 7 : Run anbulk.sh as "./anbulk.sh"
STEP 8): It will generate the files AI_(IP Address of V5AG card).lst
and AN_Sub_(IP Address of V5AG card).lst.
Ex.1. AI_10.188.194.13.lst and AI_10.188.194.19.lst (for
Configuration of V5AG port, Creation of AI, and Start AI)
AN_Sub_10.188.194.13.lst and AN_Sub_10.188.194.19.lst
(for Creation of subscribers)

STEP 9) : ftp this lst file on NGTJ card in /mmc/agscripts directory.


STEP 10): Run FE to open CLI prompt of the card
STEP 11): From the main menu Choose option 2 for
Subscriber And Miscllaneous Commands
From the Subscriber And Miscllaneous Commands Choose
option 3 for Misc Commands
From the Misc Commands Choose option 4
for Exec-Cmd-File

Enter CMD FILE NAME : AI_10.188.194.13.lst (Enter the file name


and execute)

First create the data of AI in NGTJ and make all the AI as INS-ACT by
changing ports.

Then check Trans and Receive at respective ports.

#cd /proc/mccinfo
#watch cat *

Here you will be able to see Trans and receive details of all the
ports.Ports number will be port number+96.

For example, If PCM is connected to corresponding AN RAX on 2nd port


physically then it’s logical port will be 1 and at /proc/mccinfo you
will be able to see for 96+1=97.

Then you can create the subscribers (Filename is


AN_Sub_10.188.194.13.lst) same as step 11.
Field details of lst file:

Details of CONFIGPORT:
1. Number of Links 2. Logical port ID of NGTJ.......
Ex.1. We have one PCM link:
CONFIGV5PORT:1:0

Ex.2. We have two PCM links:


CONFIGV5PORT:2:1:3

Details of CREAI:
1.AI Number 2.AI Name 3.Variant ID 4.Num of Links 5.Logicat Port
ID of NGTJ 6.Logical Link ID ....
( Sno 5 and 6 repeats as much the Num of Links given)
7.Start L3 Address ; 8.Area Code 9.Exchange Code 10.Number of
Directory Digits

Ex.1 We have one PCM link, start L3 address=1, area code=011 and
num of digits=7
1 2 3 4 5 6 7 8 9 10
CREAI: 13: ai13: 13: 1:4:4: 1: 011: 2: 7

Ex.2 We have two PCM links, start L3 address=1, area code=011 and
num of digits=8
1 2 3 4 5 6 7 8 .. 9 10 11 12
CREAI: 11: ai11: 11: 2:0:0:1:1: 1: 011: 2: 8

Ex.3 We have three PCM links, start L3 address=1, area code=01360


and num of digits=6
1 2 3 4 5 6 7 8 9 10 11 12 13 14
CREAI: 12: ai12: 12: 3:2:2:3:3:4:4 1: 01360: 2: 6

V5 supports following origination subs facility:


1. Timed and 2.untimed hot line

Terminating facility include:


32 ABSENTEE diversion
16 DOB diversion on busy
8 CALLWT call waiting
4 DONA diversion on answer

Proper facility must be register and enabled on v5ag for proper


handling and dialtone to
be played.

CRESUB FIELDS:
--------------
AiNum; // AI Number
L3Addr; // L3 Address
DirNum[MAX_SUB_DIGITS]; // Directory Number
LineType; // Line Type
LineCategory; // Line Category
SubsPriority; // Subscriber Priority 0-15
SubsFclty; // 0.none/1.tmd/2.untmd-htline/4.DONA/8.call-
wtng/16.DOB/32.ABSENTEE
SubsFcltyAct; // 4.DONA/8.call-wtng/16.DOB/32.ABSENTEE
CntrxFac; //centrex facility 0. Inactive 1. active
CntrxEsc; // Centrex escape code 0 or 2 to 9

Ex.1. Here AI Num=2, L3 Address=49, Directory Num=248000


CRESUB:2:49:248000:1:1:1:0:0:0

Ex.2. Here AI Num=13, L3 Address=31, Directory Num=259000, Un


Timed Hot line
CRESUB:13:31:259000:1:1:1:2:0:0

All the following can be done via FE:


=====================================
activate terminating facility:
------------------------------
AiNum : DirNum : facility

Deactivate terminating facility


-------------------------------
AiNum : DirNum : facility

activate originating facility


-------------------------------
Hotline_type : HtlineDirno

1.AI-number
Ex.1. STARTAI: 13
To Unconfigure the V5AG port:
UNCONFIGV5PORT:2:0:1