Reducing size of diagnostic data downloads
View Patent ↗Aspects are related to reducing size of diagnostic data downloads. To reduce the size, format and content are read from a diagnostic data file so that pre-defined priority rules may be applied to the diagnostic data file and/or a subset of the diagnostic data file utilizing the format or the content. Then, a priority level is assigned to the diagnostic data file or the subset based on an ability of that file or that subset to diagnose a failure as determined by the pre-defined priority rules. Next, an ordering of the diagnostic data file and/or the subset into a file stream occurs, followed by a streaming of the file stream to a remote diagnostic system. A notification can be received from the remote diagnostic system to stop the streaming if sufficient diagnostic data to diagnose the failure has been received by the remote diagnostic system.
1. A method for reducing size of diagnostic data downloads, comprising:
reading a format and a content of a diagnostic data file;
applying pre-defined priority rules to the diagnostic data file utilizing the format and the content;
assigning a priority level to the diagnostic data file based on an ability of the diagnostic data file to diagnose a failure as determined by the pre-defined priority rules;
wherein the assigning of the priority level to the diagnostic data file includes utilizing multiple levels of granularity based on one or more data elements, wherein the data elements include a structure of a file type, wherein at least a first failure data capture (FFDC) file has a higher priority level than a log file;
wherein the pre-defined priority rules prioritize the diagnostic data file by a file type, a format of the diagnostic data file, a content of the diagnostic data file, and a closeness of data elements in the diagnostic data file to a failure point with respect to a time, wherein data elements within 10 seconds of the failure point have a highest priority level;
wherein data elements of the diagnostic data file are prioritized by the closeness of data elements to a failure point and data elements further from a failure point are prioritized with decreasing priority levels;
ordering the diagnostic data file into a file stream, wherein the file stream is in a Tape Archive (TAR) format;
streaming the file stream to a remote diagnostic system, wherein the streaming of the file stream to the remote diagnostic system includes:
compiling a second diagnostic data file having a highest level of priority not yet sent to a stream file and obtaining a difference file of a difference between the second diagnostic data file and previous data of the second diagnostic data file with a higher level of priority; and
writing the difference file to a stream file, wherein the remote diagnostic system reconstructs an end file from the difference file;
receiving a notification from the remote diagnostic system to stop the streaming in response to sufficient diagnostic data to diagnose the failure being received by the remote diagnostic system; and
stopping the streaming in response to the notification, wherein at least a portion of the diagnostic data file is not streamed to the remote diagnostic system.