RCS file: /srv/cvs/collectNWDataGUI/collectNWDataGUI.py,v
Working file: collectNWDataGUI.py
head: 1.98
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 98;    selected revisions: 98
description:
----------------------------
revision 1.98
date: 2014-05-07 22:55:33 +0200;  author: framp;  state: Exp;  lines: +15 -12;  
Streamlined version info
----------------------------
revision 1.97
date: 2014-05-04 15:53:14 +0200;  author: framp;  state: Exp;  lines: +6 -6;  
Updated copyright
----------------------------
revision 1.96
date: 2013-09-07 12:16:15 +0200;  author: framp;  state: Exp;  lines: +6 -6;  
Corrected -e parm error
----------------------------
revision 1.95
date: 2013-09-06 23:39:31 +0200;  author: framp;  state: Exp;  lines: +6 -6;  
Minor copyright format changes
----------------------------
revision 1.94
date: 2013-03-11 21:21:53 +0100;  author: framp;  state: Exp;  lines: +7 -6;  
Fixed issue with debug which didn't work. Now optional debug enablement is enabled all the time
----------------------------
revision 1.93
date: 2013-01-25 19:59:51 +0100;  author: framp;  state: Exp;  lines: +6 -6;  
Updated copyright
----------------------------
revision 1.92
date: 2012-11-04 13:32:09 +0100;  author: framp;  state: Exp;  lines: +54 -20;  
added checksum handling
----------------------------
revision 1.91
date: 2012-11-04 12:39:02 +0100;  author: framp;  state: Exp;  lines: +5 -5;  
improved help messages
----------------------------
revision 1.90
date: 2012-11-03 21:19:19 +0100;  author: framp;  state: Exp;  lines: +26 -23;  
clenaup version handling
----------------------------
revision 1.89
date: 2012-11-03 18:58:40 +0100;  author: framp;  state: Exp;  lines: +6 -6;  
First release
----------------------------
revision 1.88
date: 2012-11-03 13:28:42 +0100;  author: framp;  state: Exp;  lines: +19 -7;  
cleanup version output -v
----------------------------
revision 1.87
date: 2012-11-02 22:04:13 +0100;  author: framp;  state: Exp;  lines: +51 -44;  
changed logging file handling
----------------------------
revision 1.86
date: 2012-11-02 11:56:42 +0100;  author: framp;  state: Exp;  lines: +11 -7;  
updated copyright
----------------------------
revision 1.85
date: 2012-11-02 11:33:19 +0100;  author: framp;  state: Exp;  lines: +52 -6;  
comments added
----------------------------
revision 1.84
date: 2012-11-01 20:19:07 +0100;  author: framp;  state: Exp;  lines: +5 -5;  
*** empty log message ***
----------------------------
revision 1.83
date: 2012-11-01 20:15:22 +0100;  author: framp;  state: Exp;  lines: +6 -6;  
*** empty log message ***
----------------------------
revision 1.82
date: 2012-11-01 19:33:09 +0100;  author: framp;  state: Exp;  lines: +23 -26;  
Dev version becomming beta
----------------------------
revision 1.81
date: 2012-11-01 18:57:23 +0100;  author: framp;  state: Exp;  lines: +130 -109;  
mostly done
----------------------------
revision 1.80
date: 2012-11-01 11:22:01 +0100;  author: framp;  state: Exp;  lines: +46 -34;  
improved error handling of execution
----------------------------
revision 1.79
date: 2012-10-29 00:16:30 +0100;  author: framp;  state: Exp;  lines: +55 -29;  
*** empty log message ***
----------------------------
revision 1.78
date: 2012-10-28 19:03:53 +0100;  author: framp;  state: Exp;  lines: +53 -52;  
*** empty log message ***
----------------------------
revision 1.77
date: 2012-10-28 17:51:13 +0100;  author: framp;  state: Exp;  lines: +145 -67;  
root is back in
----------------------------
revision 1.76
date: 2012-10-28 16:16:57 +0100;  author: framp;  state: Exp;  lines: +25 -15;  
Fallback for desktop
----------------------------
revision 1.75
date: 2012-10-27 19:55:57 +0200;  author: framp;  state: Exp;  lines: +16 -12;  
Suppress uggly gtk messages
----------------------------
revision 1.74
date: 2012-10-27 19:04:48 +0200;  author: framp;  state: Exp;  lines: +41 -16;  
suppressing startup messages and write them to stderr which is a file
----------------------------
revision 1.73
date: 2012-10-25 19:45:41 +0200;  author: framp;  state: Exp;  lines: +5 -5;  
*** empty log message ***
----------------------------
revision 1.72
date: 2012-10-23 22:31:06 +0200;  author: framp;  state: Exp;  lines: +30 -14;  
*** empty log message ***
----------------------------
revision 1.71
date: 2012-10-23 22:05:05 +0200;  author: framp;  state: Exp;  lines: +31 -26;  
*** empty log message ***
----------------------------
revision 1.70
date: 2012-10-23 21:33:50 +0200;  author: framp;  state: Exp;  lines: +10 -15;  
*** empty log message ***
----------------------------
revision 1.69
date: 2012-10-23 21:22:00 +0200;  author: framp;  state: Exp;  lines: +198 -147;  
Installation localized and help wanted for i18n
----------------------------
revision 1.68
date: 2012-10-22 21:23:01 +0200;  author: framp;  state: Exp;  lines: +5 -5;  
*** empty log message ***
----------------------------
revision 1.67
date: 2012-10-22 21:20:23 +0200;  author: framp;  state: Exp;  lines: +8 -7;  
*** empty log message ***
----------------------------
revision 1.66
date: 2012-10-22 21:08:09 +0200;  author: framp;  state: Exp;  lines: +15 -13;  
desktop now I18N
----------------------------
revision 1.65
date: 2012-10-22 20:35:11 +0200;  author: framp;  state: Exp;  lines: +38 -18;  
now have fallback i18n
----------------------------
revision 1.64
date: 2012-10-21 22:45:15 +0200;  author: framp;  state: Exp;  lines: +158 -204;  
Now no root any more
----------------------------
revision 1.63
date: 2012-10-21 21:32:44 +0200;  author: framp;  state: Exp;  lines: +256 -321;  
With pexpect - doesn#t work on suse
----------------------------
revision 1.62
date: 2012-10-20 19:42:36 +0200;  author: framp;  state: Exp;  lines: +59 -52;  
OInthewayto pexpect
----------------------------
revision 1.61
date: 2012-10-20 13:25:11 +0200;  author: framp;  state: Exp;  lines: +32 -43;  
On the way with root with pexpect
----------------------------
revision 1.60
date: 2012-10-18 21:34:18 +0200;  author: framp;  state: Exp;  lines: +12 -6;  
still root issues - but errors logged
----------------------------
revision 1.59
date: 2012-10-16 20:52:08 +0200;  author: framp;  state: Exp;  lines: +14 -11;  
root checks
----------------------------
revision 1.58
date: 2012-10-15 20:33:18 +0200;  author: framp;  state: Exp;  lines: +33 -16;  
Addtl constants and traces
----------------------------
revision 1.57
date: 2012-10-15 00:03:49 +0200;  author: framp;  state: Exp;  lines: +9 -5;  
*** empty log message ***
----------------------------
revision 1.56
date: 2012-10-15 00:00:14 +0200;  author: framp;  state: Exp;  lines: +5 -5;  
*** empty log message ***
----------------------------
revision 1.55
date: 2012-10-14 23:48:23 +0200;  author: framp;  state: Exp;  lines: +42 -24;  
some code streamling
----------------------------
revision 1.54
date: 2012-10-14 21:35:10 +0200;  author: framp;  state: Exp;  lines: +14 -18;  
*** empty log message ***
----------------------------
revision 1.53
date: 2012-10-14 21:11:09 +0200;  author: framp;  state: Exp;  lines: +15 -5;  
*** empty log message ***
----------------------------
revision 1.52
date: 2012-10-14 19:55:13 +0200;  author: framp;  state: Exp;  lines: +11 -6;  
fixed cancel bug
----------------------------
revision 1.51
date: 2012-10-14 18:43:51 +0200;  author: framp;  state: Exp;  lines: +17 -18;  
iNSTALL i18n
----------------------------
revision 1.50
date: 2012-10-14 17:30:27 +0200;  author: framp;  state: Exp;  lines: +12 -11;  
adde ./ for script call
----------------------------
revision 1.49
date: 2012-10-14 17:15:15 +0200;  author: framp;  state: Exp;  lines: +118 -29;  
Bundling and installing in py
----------------------------
revision 1.48
date: 2012-10-13 22:38:44 +0200;  author: framp;  state: Exp;  lines: +26 -27;  
Cancel works for shell now
----------------------------
revision 1.47
date: 2012-10-13 19:40:35 +0200;  author: framp;  state: Exp;  lines: +107 -85;  
Version iwth cancle of script - but still incomplete and hangs if pwd is invalid
----------------------------
revision 1.46
date: 2012-10-08 21:10:50 +0200;  author: framp;  state: Exp;  lines: +20 -20;  
Added i18n for processing messages
----------------------------
revision 1.45
date: 2012-10-07 22:50:43 +0200;  author: framp;  state: Exp;  lines: +19 -20;  
progressing window destroy disabled
----------------------------
revision 1.44
date: 2012-10-07 22:13:39 +0200;  author: framp;  state: Exp;  lines: +6 -6;  
*** empty log message ***
----------------------------
revision 1.43
date: 2012-10-07 19:54:07 +0200;  author: framp;  state: Exp;  lines: +6 -14;  
*** empty log message ***
----------------------------
revision 1.42
date: 2012-10-07 19:19:02 +0200;  author: framp;  state: Exp;  lines: +21 -11;  
Addtl I18N
----------------------------
revision 1.41
date: 2012-10-07 13:48:05 +0200;  author: framp;  state: Exp;  lines: +5 -5;  
*** empty log message ***
----------------------------
revision 1.40
date: 2012-10-07 12:23:50 +0200;  author: framp;  state: Exp;  lines: +6 -6;  
*** empty log message ***
----------------------------
revision 1.39
date: 2012-10-07 12:09:59 +0200;  author: framp;  state: Exp;  lines: +12 -9;  
Script doesn't ask for root PWD if invoked as root
----------------------------
revision 1.38
date: 2012-10-06 19:49:45 +0200;  author: framp;  state: Exp;  lines: +16 -6;  
Tooltips added
----------------------------
revision 1.37
date: 2012-10-03 10:30:50 +0200;  author: framp;  state: Exp;  lines: +23 -10;  
addtl I18N
----------------------------
revision 1.36
date: 2012-10-01 22:39:51 +0200;  author: framp;  state: Exp;  lines: +5 -4;  
Next I18N part
----------------------------
revision 1.35
date: 2012-10-01 22:28:43 +0200;  author: framp;  state: Exp;  lines: +17 -11;  
Addtl I18N
----------------------------
revision 1.34
date: 2012-10-01 21:47:17 +0200;  author: framp;  state: Exp;  lines: +13 -5;  
Panel update
----------------------------
revision 1.33
date: 2012-10-01 20:07:39 +0200;  author: framp;  state: Exp;  lines: +87 -16;  
Initial incomplete I18N version
----------------------------
revision 1.32
date: 2012-09-29 16:43:14 +0200;  author: framp;  state: Exp;  lines: +8 -8;  
Installation path now collectNWData
----------------------------
revision 1.31
date: 2012-09-27 23:44:07 +0200;  author: framp;  state: Exp;  lines: +9 -8;  
cancel for running shell disabled
----------------------------
revision 1.30
date: 2012-09-27 23:33:26 +0200;  author: framp;  state: Exp;  lines: +11 -7;  
cancel for running shell disabled
----------------------------
revision 1.29
date: 2012-09-25 22:06:01 +0200;  author: framp;  state: Exp;  lines: +5 -6;  
Fixed execution of script twice for wired config because OK button had activate event registed
----------------------------
revision 1.28
date: 2012-09-25 19:04:38 +0200;  author: framp;  state: Exp;  lines: +8 -9;  
Fixed incorrect path in desktop file
----------------------------
revision 1.27
date: 2012-09-23 20:42:49 +0200;  author: framp;  state: Exp;  lines: +4 -6;  
Relocation of RT dir
----------------------------
revision 1.26
date: 2012-09-23 18:56:38 +0200;  author: framp;  state: Exp;  lines: +15 -7;  
Execution failed window added
----------------------------
revision 1.25
date: 2012-09-23 17:15:27 +0200;  author: framp;  state: Exp;  lines: +9 -8;  
Streamlined window titles
----------------------------
revision 1.24
date: 2012-09-23 16:56:56 +0200;  author: framp;  state: Exp;  lines: +14 -10;  
OK Button now default for pwd entry and ssid entry
----------------------------
revision 1.23
date: 2012-09-23 16:28:43 +0200;  author: framp;  state: Exp;  lines: +84 -66;  
Check for invalid root pwd
----------------------------
revision 1.22
date: 2012-09-23 11:53:36 +0200;  author: framp;  state: Exp;  lines: +8 -9;  
Added addtl processing messages and included comments from Josef-wien
----------------------------
revision 1.21
date: 2012-09-15 21:19:02 +0200;  author: framp;  state: Exp;  lines: +62 -47;  
Refactoring and addtl traces
----------------------------
revision 1.20
date: 2012-09-15 19:06:42 +0200;  author: framp;  state: Exp;  lines: +56 -47;  
Addtl know issues window
----------------------------
revision 1.19
date: 2012-09-14 22:14:40 +0200;  author: framp;  state: Exp;  lines: +36 -34;  
Initial root invocation with sudo
----------------------------
revision 1.18
date: 2012-09-09 20:25:59 +0200;  author: framp;  state: Exp;  lines: +23 -11;  
gksudo works now - kdesu still broken
----------------------------
revision 1.17
date: 2012-09-09 19:15:52 +0200;  author: framp;  state: Exp;  lines: +17 -19;  
temp save
----------------------------
revision 1.16
date: 2012-09-09 18:33:39 +0200;  author: framp;  state: Exp;  lines: +27 -9;  
Temp commit
----------------------------
revision 1.15
date: 2012-09-08 22:03:31 +0200;  author: framp;  state: Exp;  lines: +63 -35;  
First version with root support
----------------------------
revision 1.14
date: 2012-09-05 18:00:25 +0200;  author: framp;  state: Exp;  lines: +24 -15;  
Updated version and added new debug flag
----------------------------
revision 1.13
date: 2012-09-04 20:51:38 +0200;  author: framp;  state: Exp;  lines: +14 -7;  
Version and about enhanced
----------------------------
revision 1.12
date: 2012-09-04 19:57:40 +0200;  author: framp;  state: Exp;  lines: +9 -3;  
Installer
----------------------------
revision 1.11
date: 2012-09-03 23:28:59 +0200;  author: framp;  state: Exp;  lines: +48 -41;  
Minor improvements
----------------------------
revision 1.10
date: 2012-09-03 21:20:03 +0200;  author: framp;  state: Exp;  lines: +20 -12;  
Resize of window
----------------------------
revision 1.9
date: 2012-09-03 19:27:37 +0200;  author: framp;  state: Exp;  lines: +22 -14;  
debugging as option an about in help
----------------------------
revision 1.8
date: 2012-09-02 20:13:08 +0200;  author: framp;  state: Exp;  lines: +42 -29;  
Various minor enhancements
----------------------------
revision 1.7
date: 2012-09-02 18:06:03 +0200;  author: framp;  state: Exp;  lines: +16 -7;  
file quit works now
----------------------------
revision 1.6
date: 2012-09-02 13:09:21 +0200;  author: framp;  state: Exp;  lines: +40 -14;  
cancel and restart works now
----------------------------
revision 1.5
date: 2012-09-01 13:52:23 +0200;  author: framp;  state: Exp;  lines: +3 -4;  
Removed ttk dependency
----------------------------
revision 1.4
date: 2012-09-01 00:01:11 +0200;  author: framp;  state: Exp;  lines: +20 -13;  
Progress
----------------------------
revision 1.3
date: 2012-08-31 19:40:55 +0200;  author: framp;  state: Exp;  lines: +23 -12;  
Mit Progressbar
----------------------------
revision 1.2
date: 2012-08-26 22:07:19 +0200;  author: framp;  state: Exp;  lines: +11 -2;  
*** empty log message ***
----------------------------
revision 1.1
date: 2012-08-26 13:55:44 +0200;  author: framp;  state: Exp;  
*** empty log message ***
=============================================================================

OpenSUSE 13.1 now uses the Predictable Network interface Support for it's interface names. See

http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c#n20

Unfortunately this caused collectNWData.sh to work not correctly any more. It's now fixed. Thank you very much to everybody who helped to test the new version, which got some serious code changes.

 

collectNWData.sh collects a lot of network configuration data. They are passed to NWEliza and are analyzed for common errors. There are no system modifications done. Proposals for tests wer also provided by following people from the community. See the list below for the tests executed by NWEliza:

Nobody is perfect - in particular because I don't have all the possible hardware for tests  - and that's why there may be bugs in the script. Everybody who detects any kind of bug should send a bug report to me so I can fix the bug asap. Please send the report to

cndbugreport at linux dash tips dash and dash tricks dot de (Substitute the underlined words by the corresponding characters on your keyboard)
The /tmp directory contains files starting with collectNWData. These are important for problem determination and should be attached in the problem report eMail. If the script hangs please invove it again with parameter -da and attach the screen output in the problem report.
 
collectNWData became opensource. Please report any bugs on github

Starting with version 0.6.2 collectNWData.sh now supports not only openSuSE but also the other major Linux distributions based on RedHat, Debian Slackware and Arch. Many thanks to  Rain_Maker, Grothesk and glako for their WLAN Beta tests to get this major change out of the door.

 
On all distributions in the table below collectNWData.sh was tested. All other Linux distros based on  Redhat, Debian and Slackware should work also. For everybody with a Linux distro other than the ones in the table it's worth to give it a try and call the script and check the results.
 
Regressiontest support for newer distribusion releases was provided by spoensche und tomm.fa.

collectNWDataGUI.sh is a Python script, which allows to call collectNWData.sh convenient via a graphical interface. It's a shell script and contains the Python script, collectNWData.sh together with all other required files.

 
Details for the script collectNWData.sh can be found here .

collectNWData.sh collects a lot of data and NWEliza analyzes them for configurationproblems. In parallel all collected data is written in an output file called collectNWData.txt, so they can be passed to people for further problem analysis. Some data is sensitive which shouldn't be published. The most sensitive data, the WLAN keys and external IP addresses and of special request MAC addresses are masqueraded by the script automatically.

 
Anyhow should everybody review the output file and look for any other sensitive information and masquerade this.

The resultfile of collectNWData either can be posted directly in a forum or they can be uploaded to websites and the links can be posted in foren.

Foren don't have to spend space to keep the results.
 
Following websites can be used to upload text for free:
 

 

 

  1. Where do I find instructions how to invoke the script?
  2. Why should I use the script?
  3. It's analyzing your system for network configuration problems and creates error messages which have links to websites, which explain how to get rid of the problem. That's how you can fix the problems on your own. If you can't fix the problem these information can be posted in a forum such that people get the most important network configuration information. Either they can give an answer immediately or they can ask for more specific information.

  4. Why should I call the script as root?
  5. There exist a lot of commands which collect important networking information but have to be executes as root. When the script is invoked it asks whether it should be run as root. If this is answered with no various error analysis is skipped and various helpful networking information cannot be collected. More details see here.

  6. I don't get my problems fixed with these error messages. What should I do?
  7. All network informations are combined in one output file. The information of this file will enable network gurus to quickly identify the source of your network problem so they are able to tell you what to do in order to get your network problem fixed.

  8. What about sensitive data?
  9. How should I post the results and where?
  10. There are two possibilities: Either you post the contents of collectNWData.out on public websites in the internet and then post the link in ony of your favorite Linux foren. Or you post the contents of the file directly in your favorite Linux forum. Pls check the forum rules for this.

  11. What's the script doing on my system?
  12. A lot of commands are executed to query network informations. No changes are done on your system.

  13. Is there any way to get a corrupted system by the script?
  14. No - never. Even if there is a programming error in the script. There are no commands used which modify the system in any way.

  15. Which distributions are supported by the script?
  16. It's initial target distribution was openSuSE. But now it also runs on most other Linux distributions like Ubuntu, Knoppix, Mint, Fedora, Slackware, Arch, CentOS .... For details see here

  17. How do I get new features included in the script?
  18. You have multiple choices: Either contact the author (See header of script for the eMail address) and explain which network information you're missing or how additional common network  configuration probelms can be detected by the script. Or change the script and send it to the author. But get in contact with the author before to discuss your changes.

  19. What should I do in order to get bugs of the script fixed?

 

Starting with version 0.6.3.0 it's possible to call the script as normal user and it's not required to execute the script as root. Some analysis and data collection capabilities of the script which require root rights are skipped in this mode.

collectNWData needs root access in order to collect all necessary information. That's an important security issue and a lot of people don't trust scripts which are executed as root. That's why the script asks whether it should be executed as root. A negative response will cause the script to skip various analysis check.
 
Everybody feels uncomfortable when a script is executed as root which was created by a stranger. I also would feel very uncomfortable. You can trust me: The only purpose of this script is to collect network information, which unfortunately requires root authorization. There are no modifications done on your system. 
 
If you still have concerns just use Google and search for collectnwdata and you will find a lot of entries of people who sucessfully invoked the script and they got help.  No system was damaged.
 
Handling of sensitive data is described here in detail.
 
Starting with version 0.6.3.0 it's possible to call the script as a normal user also .