os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates',
                     'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"

    ssh_client = su.sshConnect(mmeIP,
                               mme_username,
                               mme_password,
                               "ssh-password",
                               timeout=10,
                               port=None)
    proc_stat = su.executeCommand(command, ssh_client)

    ue_count_before_attach = int(
        do.splitProcStats(proc_stat, stats_type["subs_attached"]))
    num_of_processed_ho_cancel = int(
        do.splitProcStats(proc_stat, stats_type["ho_cancel"]))

    print(
        "\n-------------------------------------\nIMSI Attach,HO Cancel Detach Execution Started\n---------------------------------------"
    )

    igniteLogger.logger.info(
        "\n---------------------------------------\nSend Attach Request to MME\n---------------------------------------"
    )
    s1.sendS1ap('attach_request', initial_ue, enbues1ap_id, nas_attach_request,
                imsi)

    igniteLogger.logger.info(
        "\n---------------------------------------\nHSS receives AIR from MME\n---------------------------------------"
        os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates',
                     'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"

    ssh_client = su.sshConnect(mmeIP,
                               mme_username,
                               mme_password,
                               "ssh-password",
                               timeout=10,
                               port=None)
    proc_stat = su.executeCommand(command, ssh_client)

    ue_count_before_attach = int(
        do.splitProcStats(proc_stat, stats_type["subs_attached"]))
    num_of_processed_aia = int(
        do.splitProcStats(proc_stat, stats_type["processed_aia"]))
    num_of_processed_ula = int(
        do.splitProcStats(proc_stat, stats_type["processed_ula"]))
    num_of_del_session_resp = int(
        do.splitProcStats(proc_stat, stats_type["del_session_resp"]))
    num_of_handled_esm_info_resp = int(
        do.splitProcStats(proc_stat, stats_type["esm_info_resp"]))
    num_of_processed_sec_mode_resp = int(
        do.splitProcStats(proc_stat, stats_type["processed_sec_mode"]))
    num_of_processed_init_ctxt_resp = int(
        do.splitProcStats(proc_stat, stats_type["init_ctxt_resp"]))
    num_of_processed_purge_resp = int(
        do.splitProcStats(proc_stat, stats_type["purge_resp"]))
sys.path.append(os.path.join(os.path.dirname(__file__), '..','ROBOTCs','keywords','systemkeywords'))
import dictOperations as do

clr_flag=False
ssh_client = None

try:
    sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates', 'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"

    ssh_client = su.sshConnect(mmeIP, mme_username, mme_password, "ssh-password", timeout=10, port=None)
    proc_stat = su.executeCommand(command,ssh_client)

    ue_count_before_attach = int(do.splitProcStats(proc_stat, stats_type["subs_attached"]))
    num_of_erab_mod_indication = int(do.splitProcStats(proc_stat, stats_type["erab_mod_ind"]))
    num_of_erab_mod_confirmation = int(do.splitProcStats(proc_stat, stats_type["erab_mod_conf"]))
    

    print ("\n-------------------------------------\nIMSI Attach eRAB Mod Ind Execution Started\n---------------------------------------")

    igniteLogger.logger.info("\n---------------------------------------\nSend Attach Request to MME\n---------------------------------------")
    s1.sendS1ap('attach_request',initial_ue,enbues1ap_id,nas_attach_request,imsi)


    igniteLogger.logger.info("\n---------------------------------------\nHSS receives AIR from MME\n---------------------------------------")
    air=ds.receiveS6aMsg()
    icu.validateProtocolIE(air,'visited-plmn-id','02f829')

    igniteLogger.logger.info("\n---------------------------------------\nHSS sends AIA to MME\n---------------------------------------")
Beispiel #4
0
sys.path.append(os.path.join(os.path.dirname(__file__), '..','ROBOTCs','keywords','systemkeywords'))
import dictOperations as do

clr_flag=False
ssh_client = None

try:
    sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates', 'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"

    ssh_client = su.sshConnect(mmeIP, mme_username, mme_password, "ssh-password", timeout=10, port=None)
    proc_stat = su.executeCommand(command,ssh_client)

    ue_count_before_attach = int(do.splitProcStats(proc_stat, stats_type["subs_attached"]))
    num_of_processed_aia = int(do.splitProcStats(proc_stat, stats_type["processed_aia"]))
    num_of_processed_ula = int(do.splitProcStats(proc_stat, stats_type["processed_ula"]))
    num_of_del_session_resp = int(do.splitProcStats(proc_stat, stats_type["del_session_resp"]))
    num_of_handled_esm_info_resp = int(do.splitProcStats(proc_stat, stats_type["esm_info_resp"]))
    num_of_processed_sec_mode_resp = int(do.splitProcStats(proc_stat, stats_type["processed_sec_mode"]))
    num_of_processed_init_ctxt_resp = int(do.splitProcStats(proc_stat, stats_type["init_ctxt_resp"]))
    num_of_processed_purge_resp = int(do.splitProcStats(proc_stat, stats_type["purge_resp"]))

    #required message templates
    initial_ue_guti = json.loads(open('../MessageTemplates/S1AP/initial_uemessage_guti.json').read())
    nas_attach_request_guti = json.loads(open('../MessageTemplates/NAS/attach_request_guti.json').read())

    print ("\n-------------------------------------\nIMSI Attach Detach and GUTI Attach Detach Execution Started\n---------------------------------------")

    igniteLogger.logger.info("\n---------------------------------------\nSend Attach Request to MME\n---------------------------------------")
Beispiel #5
0
import dictOperations as do

clr_flag=False
ssh_client = None

try:

    sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates', 'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"
    ssh_client = su.sshConnect(mmeIP, mme_username, mme_password, "ssh-password", timeout=10, port=None)

    proc_stat = su.executeCommand(command,ssh_client)

    ue_count_before_attach = int(do.splitProcStats(proc_stat, stats_type["subs_attached"]))

    #required message templates
    uplinknastransport_detach_accept = json.loads(open('../MessageTemplates/S1AP/uplinknastransport_detachaccept.json').read())
    nas_detach_accept = json.loads(open('../MessageTemplates/NAS/detach_accept.json').read())
    initial_ue_guti = json.loads(open('../MessageTemplates/S1AP/initial_uemessage_guti.json').read())
    nas_attach_request_guti = json.loads(open('../MessageTemplates/NAS/attach_request_guti.json').read())

    print ("\n-------------------------------------\nInitial Context Setup Response Timeout Execution Started\n---------------------------------------")

    igniteLogger.logger.info("\n---------------------------------------\nSend Attach Request to MME\n---------------------------------------")
    s1.sendS1ap('attach_request',initial_ue,enbues1ap_id,nas_attach_request,imsi)


    igniteLogger.logger.info("\n---------------------------------------\nHSS receives AIR from MME\n---------------------------------------")
    ds.receiveS6aMsg()
        os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates',
                     'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"

    ssh_client = su.sshConnect(mmeIP,
                               mme_username,
                               mme_password,
                               "ssh-password",
                               timeout=10,
                               port=None)
    proc_stat = su.executeCommand(command, ssh_client)

    ue_count_before_attach = int(
        do.splitProcStats(proc_stat, stats_type["subs_attached"]))
    num_of_erab_mod_ind_timeout = int(
        do.splitProcStats(proc_stat, stats_type["erab_mod_ind_timeout"]))
    num_of_abort_erab_mod_ind = int(
        do.splitProcStats(proc_stat, stats_type["abort_erab_mod_ind"]))

    #required message templates
    uplinknastransport_detach_accept = json.loads(
        open('../MessageTemplates/S1AP/uplinknastransport_detachaccept.json').
        read())
    nas_detach_accept = json.loads(
        open('../MessageTemplates/NAS/detach_accept.json').read())
    initial_ue_guti = json.loads(
        open('../MessageTemplates/S1AP/initial_uemessage_guti.json').read())
    nas_attach_request_guti = json.loads(
        open('../MessageTemplates/NAS/attach_request_guti.json').read())
sys.path.append(os.path.join(os.path.dirname(__file__), '..','ROBOTCs','keywords','systemkeywords'))
import dictOperations as do

clr_flag=False
ssh_client = None

try:
    sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates', 'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"

    ssh_client = su.sshConnect(mmeIP, mme_username, mme_password, "ssh-password", timeout=10, port=None)
    proc_stat = su.executeCommand(command,ssh_client)

    ue_count_before_attach = int(do.splitProcStats(proc_stat, stats_type["subs_attached"]))
    num_of_processed_ho_failure = int(do.splitProcStats(proc_stat, stats_type["ho_failure"]))
    num_of_processed_ho_prep_failure = int(do.splitProcStats(proc_stat, stats_type["ho_prep_failure"]))

    print ("\n-------------------------------------\nIMSI Attach,HO Failure Detach Execution Started\n---------------------------------------")

    igniteLogger.logger.info("\n---------------------------------------\nSend Attach Request to MME\n---------------------------------------")
    s1.sendS1ap('attach_request',initial_ue,enbues1ap_id,nas_attach_request,imsi)


    igniteLogger.logger.info("\n---------------------------------------\nHSS receives AIR from MME\n---------------------------------------")
    air=ds.receiveS6aMsg()
    icu.validateProtocolIE(air,'visited-plmn-id','02f829')

    igniteLogger.logger.info("\n---------------------------------------\nHSS sends AIA to MME\n---------------------------------------")
    ds.sendS6aMsg('authentication_info_response', msg_data_aia, imsi)
Beispiel #8
0
        os.path.join(os.path.dirname(__file__), '..', 'MessageTemplates',
                     'Util'))
    from loadMessage import *

    command = "export LD_LIBRARY_PATH=" + mme_lib_path + " && " + mme_grpc_client_path + "/mme-grpc-client mme-app show procedure-stats"

    ssh_client = su.sshConnect(mmeIP,
                               mme_username,
                               mme_password,
                               "ssh-password",
                               timeout=10,
                               port=None)
    proc_stat = su.executeCommand(command, ssh_client)

    ue_count_before_attach = int(
        do.splitProcStats(proc_stat, stats_type["subs_attached"]))
    num_of_erab_mod_indication = int(
        do.splitProcStats(proc_stat, stats_type["erab_mod_ind"]))
    num_of_erab_mod_confirmation = int(
        do.splitProcStats(proc_stat, stats_type["erab_mod_conf"]))

    #required message templates
    uplinknastransport_detach_accept = json.loads(
        open('../MessageTemplates/S1AP/uplinknastransport_detachaccept.json').
        read())
    nas_detach_accept = json.loads(
        open('../MessageTemplates/NAS/detach_accept.json').read())

    print(
        "\n-------------------------------------\nIMSI Attach eRAB Mod Ind MB Resp Failure Execution Started\n---------------------------------------"
    )