THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.

Revision history  [back]

"tshark: someipsd neither a field nor a protocol name"

Code:

def convert_pcap_to_csv_trace(path_to_pcap, tshark_path, output_dir_path=None):

    logger.info("***** Converting pcap trace to csv. Trace *****: {}".format(path_to_pcap))
    output_dir_path = os.path.dirname(path_to_pcap) if not output_dir_path else output_dir_path
    assert os.path.isdir(output_dir_path)
    output_file_name = Path(path_to_pcap).stem
    path_to_csv = os.path.join(output_dir_path, output_file_name) + '.csv'
    logger.info("This might take some time. You can track the progress watching the file size: {}"
                .format(path_to_csv))

    with open(path_to_csv, 'w') as csv_trace:
        cmd = [tshark_path, '-T', 'fields', '-E', 'separator=;',
               '-E', 'header=y', '-E', 'quote=d',
               '-R', '!someipsd && !icmp && someip.messageid && ((someip.serviceid != 0xffff) && '
                     '(someip.clientid != 0xdead)) && vlan.id == 0x49',
               '-e', 'frame.time_relative',
               '-e', 'ip.id',
               '-e', 'someip.messageid',
               '-e', 'someip.length',
               '-e', 'ip.src',
               '-e', 'udp.srcport',
               '-e', 'tcp.srcport',
               '-e', 'ip.dst',
               '-e', 'udp.dstport',
               '-e', 'tcp.dstport',
               '-n', '-r', path_to_pcap]

        logger.info("***** Running the following command in command line: *****")
        logger.info(cmd)

        subprocess.check_call(cmd, stdout=csv_trace)

Above function is working fine in windows 10 local machine. Same above code is not working in VDI windows 10 machine.

what went wrong in VDI (Virtual desktop infrastructure) windows 10 machine?. kindly help me here please.

"tshark: someipsd neither a field nor a protocol name"

Code:Lua code:

def convert_pcap_to_csv_trace(path_to_pcap, tshark_path, output_dir_path=None):

    logger.info("***** Converting pcap trace to csv. Trace *****: {}".format(path_to_pcap))
    output_dir_path = os.path.dirname(path_to_pcap) if not output_dir_path else output_dir_path
    assert os.path.isdir(output_dir_path)
    output_file_name = Path(path_to_pcap).stem
    path_to_csv = os.path.join(output_dir_path, output_file_name) + '.csv'
    logger.info("This might take some time. You can track the progress watching the file size: {}"
                .format(path_to_csv))

    with open(path_to_csv, 'w') as csv_trace:
        cmd = [tshark_path, '-T', 'fields', '-E', 'separator=;',
               '-E', 'header=y', '-E', 'quote=d',
               '-R', '!someipsd && !icmp && someip.messageid && ((someip.serviceid != 0xffff) && '
                     '(someip.clientid != 0xdead)) && vlan.id == 0x49',
               '-e', 'frame.time_relative',
               '-e', 'ip.id',
               '-e', 'someip.messageid',
               '-e', 'someip.length',
               '-e', 'ip.src',
               '-e', 'udp.srcport',
               '-e', 'tcp.srcport',
               '-e', 'ip.dst',
               '-e', 'udp.dstport',
               '-e', 'tcp.dstport',
               '-n', '-r', path_to_pcap]

        logger.info("***** Running the following command in command line: *****")
        logger.info(cmd)

        subprocess.check_call(cmd, stdout=csv_trace)

Above function is working fine in windows 10 local machine. Same above code is not working in VDI windows 10 machine.

what went wrong in VDI (Virtual desktop infrastructure) windows 10 machine?. kindly help me here please.

"tshark: someipsd neither a field nor a protocol name"

Lua code:

def convert_pcap_to_csv_trace(path_to_pcap, tshark_path, output_dir_path=None):

output_dir_path=None):

    logger.info("***** Converting pcap trace to csv. Trace *****: {}".format(path_to_pcap))
    output_dir_path = os.path.dirname(path_to_pcap) if not output_dir_path else output_dir_path
    assert os.path.isdir(output_dir_path)
    output_file_name = Path(path_to_pcap).stem
    path_to_csv = os.path.join(output_dir_path, output_file_name) + '.csv'
    logger.info("This might take some time. You can track the progress watching the file size: {}"
                .format(path_to_csv))

    with open(path_to_csv, 'w') as csv_trace:
        cmd = [tshark_path, '-T', 'fields', '-E', 'separator=;',
               '-E', 'header=y', '-E', 'quote=d',
               '-R', '!someipsd && !icmp && someip.messageid && ((someip.serviceid != 0xffff) && '
                     '(someip.clientid != 0xdead)) && vlan.id == 0x49',
               '-e', 'frame.time_relative',
               '-e', 'ip.id',
               '-e', 'someip.messageid',
               '-e', 'someip.length',
               '-e', 'ip.src',
               '-e', 'udp.srcport',
               '-e', 'tcp.srcport',
               '-e', 'ip.dst',
               '-e', 'udp.dstport',
               '-e', 'tcp.dstport',
               '-n', '-r', path_to_pcap]

        logger.info("***** Running the following command in command line: *****")
        logger.info(cmd)

        subprocess.check_call(cmd, stdout=csv_trace)

Above function is working fine in windows 10 local machine. Same above code is not working in VDI windows 10 machine.

what went wrong in VDI (Virtual desktop infrastructure) windows 10 machine?. kindly help me here please.

"tshark: someipsd neither a field nor a protocol name"

def convert_pcap_to_csv_trace(path_to_pcap, tshark_path, output_dir_path=None):

 logger.info("***** Converting pcap trace to csv. Trace *****: {}".format(path_to_pcap))
 output_dir_path = os.path.dirname(path_to_pcap) if not output_dir_path else output_dir_path
 assert os.path.isdir(output_dir_path)
 output_file_name = Path(path_to_pcap).stem
 path_to_csv = os.path.join(output_dir_path, output_file_name) + '.csv'
 logger.info("This might take some time. You can track the progress watching the file size: {}"
             .format(path_to_csv))

 with open(path_to_csv, 'w') as csv_trace:
     cmd = [tshark_path, '-T', 'fields', '-E', 'separator=;',
            '-E', 'header=y', '-E', 'quote=d',
            '-R', '!someipsd && !icmp && someip.messageid && ((someip.serviceid != 0xffff) && '
                  '(someip.clientid != 0xdead)) && vlan.id == 0x49',
            '-e', 'frame.time_relative',
            '-e', 'ip.id',
            '-e', 'someip.messageid',
            '-e', 'someip.length',
            '-e', 'ip.src',
            '-e', 'udp.srcport',
            '-e', 'tcp.srcport',
            '-e', 'ip.dst',
            '-e', 'udp.dstport',
            '-e', 'tcp.dstport',
            '-n', '-r', path_to_pcap]

     logger.info("***** Running the following command in command line: *****")
     logger.info(cmd)

     subprocess.check_call(cmd, stdout=csv_trace)

Above function is working fine in windows 10 local machine. Same above code is not working in VDI windows 10 machine.

what went wrong in VDI (Virtual desktop infrastructure) windows 10 machine?. kindly help me here please.