Closed arlake228 closed 9 years ago
Comment #1 originally posted by arlake228 on 2008-10-21T14:53:17.000Z:
There's a Perl module available for generating UUIDs. I'm not sure how good it is.
Comment #2 originally posted by arlake228 on 2008-10-24T00:41:47.000Z:
That would be a good addition. The other issue is that netlogger needs a good tidy/critic to eliminate the possibility of the string cat issues.
Comment #3 originally posted by arlake228 on 2008-12-04T04:40:36.000Z:
made these changes, but still need to test
Original issue 76 created by arlake228 on 2008-10-21T14:36:51.000Z:
If uuidgen is not installed on target system, Netlogger.pm doesn't complain/warn of this effectively:
Can't exec "uuidgen": No such file or directory at lib/perfSONAR_PS/NetLogger.pm line 41. Use of uninitialized value $guid in scalar chomp at lib/perfSONAR_PS/NetLogger.pm line 41.
This causes other issues later:
Use of uninitialized value $GUID in concatenation (.) or string at lib/perfSONAR_PS/NetLogger.pm line 27, <DATA> line 345 (# 1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables.
Much like rrdtool/ping we need a good way to detect and use uuidgen and have some sort of fallback if not (see genuid() in Common.pm).