Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input = "ALMS01_MSOFTX
- +++ MSOFTX/*MEID:5 MENAME:ALMS01_MSOFTX*/ 2019-06-24 16:44:22+06:00
- O&M #1682000
- %%/*1879364950 MEID=005*/LST LAIGCI: GCI=\"470020495\",QR=LOCAL;%%
- RETCODE = 0 Operation succeeded
- Local LAIGCI Detailed Description
- ---------------------------------
- Global cell ID = 470020495
- LA cell name = ALMS01_CBEA5_LAC_1173
- MSC number of the LA cell = 8801801000070
- VLR number of the LA cell = 8801801000070
- Mobile network code = FFF
- Perform roaming analysis = No
- Restrict incoming call = No
- Restrict outgoing call = No
- Location area category = LAI
- Location area type = Local VLR
- Early assignment flag = Early assignment
- Location number name = INVALID
- BSC number = 1
- Home BSC network indicator 1 = National reserved network
- Home BSC DPC 1 = H'000069
- Home BSC network indicator 2 = National reserved network
- Home BSC DPC 2 = H'000000
- Home BSC network indicator 3 = National reserved network
- Home BSC DPC 3 = H'000000
- Home BSC network indicator 4 = National reserved network
- Home BSC DPC 4 = H'000000
- Home BSC network indicator 5 = National reserved network
- Home BSC DPC 5 = H'000000
- Home BSC network indicator 6 = National reserved network
- Home BSC DPC 6 = H'000000
- Home BSC network indicator 7 = National reserved network
- Home BSC DPC 7 = H'000000
- Home BSC network indicator 8 = National reserved network
- Home BSC DPC 8 = H'000000
- Home BSC network indicator 9 = National reserved network
- Home BSC DPC 9 = H'000000
- Home BSC network indicator 10 = National reserved network
- Home BSC DPC 10 = H'000000
- Call source name = CBEA5
- East or west longitude = East longitude
- Longitude(degree) = 0
- Longitude(minute) = 0
- Longitude(second) = 0
- South or north latitude = North latitude
- Latitude(degree) = 0
- Latitude(minute) = 0
- Latitude(second) = 0
- Radius(kilometre) = 0
- Multi area name = 0
- Server name = LOCAL
- Tone playing name = INVALID
- IDP Location number = 8801801000220
- Cell group name = INVALID
- TZDST name = INVALID
- Location Identify Name = INVALID
- IDP Location Number Address Attribute = International Number
- Managed object group = PUBLIC
- If Support USSD = Yes
- Non Broadcast LAI = No
- Location number = 65535
- Cell group ID = 65535
- Cipher Mode Setting = NO
- Encryption Algorithm = <NULL>
- Classmark2 RFC = 111
- Cell Type = SAI
- Containing Classmark3 IE = YES
- Containing Chosen Encry Algorithm IE = NO
- Containing Imsi IE = NO
- Half rate channel is forbidden = PERMIT
- Containing DTX IE = NO
- Containing Integrity Protection IE = YES
- Containing OBssToNBss IE = YES
- Containing SRncToTRnc IE = YES
- BIEI_SERVICE_HANDOVER is not contained = NO
- Only Contain FR Speech Version 1 Flag = NO
- Contain Current Speech Version Flag = YES
- Support whole net configuration or not when SNA = NO
- Not Send Classmark Request = YES
- Inter MSC Handover/Relocation MAP Not Carry Codeclist = YES
- Not containing Alternative RAB Configuration = YES
- Inter MSC Handover Not Support Active Trace = YES
- Handover parameter Reserved Bit 24 = YES
- Inter MSC Handover Not Support HSCSD = YES
- Handover parameter Reserved Bit 26 = NO
- Not Support POS TRACK = YES
- Handover parameter Reserved Bit 28 = YES
- Handover parameter Reserved Bit 29-Reserved Bit 31 = 111
- Handover extra parameter 1 = NULL
- Hot LAI = NO
- VIP cell = NO
- Other Property Reserved Bit 2 = NO
- IN MM trigger = NO
- Specific cell = NO
- Not Support Pre_Paging LAI = NO
- Network Area ID = FFF
- Region Code = FF
- Other Property Reserved Bit 6-Reserved Bit 31 = 00000000000000000000000000
- Charge area code = FFFF
- Benchmark duration for cell paging no response(s) = 30
- Paging monitor = No
- E911 phase = INVALID
- EMA Parameter = 0
- Extended service list = NULL
- ICS call source name = NULL
- (Number of results = 1)
- "
- def parse_LAC(data)
- array = []
- lines = data.split("\n")
- p lines.length
- lines.each_with_index do |line,index|
- if index > 7 # first 8 lines are omitted
- if line.length > 0
- splitted = line.split("=")
- key = splitted[0].strip
- value = splitted[1].strip
- array.push({key=>value})
- end
- end
- end
- # array.each do |item|
- # p item
- # end
- array
- end
- z = parse_LAC(input)
- # "good bye"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement