[SSI-devel] [ ssic-linux-Bugs-923161 ] track and fix the usage of grep
Brought to you by:
brucewalker,
rogertsang
From: SourceForge.net <no...@so...> - 2004-04-05 23:06:23
|
Bugs item #923161, was opened at 2004-03-25 06:54 Message generated for change (Comment added) made by bjbrew You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=405834&aid=923161&group_id=32541 Category: Sysadmin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Aneesh Kumar K.V (kvaneesh) >Assigned to: Kishore Sampathkumar (kishoreks) Summary: track and fix the usage of grep Initial Comment: Some cases it doesn't work with different locales. We need to check our sysadmin utilties to make sure we don't make any assumption of default locale. ---------------------------------------------------------------------- >Comment By: Brian J. Watson (bjbrew) Date: 2004-04-05 16:06 Message: Logged In: YES user_id=16302 Kishore, The linuxrc problem has already been fixed, but we should check if there are any similar problems. Try installing a two or three node OpenSSI cluster on a non-English RH9 system. Test the openssi-tools commands, particularly those in the sysadmin directory, and see if anything breaks. If not, I think this bug can be closed. Thanks, Brian ---------------------------------------------------------------------- Comment By: Aneesh Kumar K.V (kvaneesh) Date: 2004-03-25 12:46 Message: Logged In: YES user_id=230991 Attaching the bug report ---- I suppose there is a problem in linuxrc. The output of my ifconfig command is in german. As a result the term HWaddr is not found. I corrected this allready in the Perl module Clustertab.pm (In the attachment) ------------ --- /cluster/lib/Clustertab.pm 2004-03-09 10:23:18.000000000 -0600 +++ Clustertab.pm 2004-03-25 08:43:31.000000000 -0600 @@ -385,16 +385,16 @@ # should be no need to normalize output from ifconfig command open IFCONFIG, "/sbin/ifconfig |" or die; while (<IFCONFIG>) { my %interface; - /^(\S+).*HWaddr (([0-9A-F]{2}:){5}[0-9A-F]{2})/ or next; + /^(\S+).*H.*dr.* (([0-9A-F]{2}:){5}[0-9A-F]{2})/ or next; $interface{NAME} = $1; $interface{HWADDR} = $2; $_ = <IFCONFIG>; - /inet addr:([\d\.]+)\s+Bcast:([\d\.]+)\s+Mask:([\d\.]+)\s+/ + /inet.*dr.*:([\d\.]+)\s+Bcast:([\d\.]+)\s+Mask.*:([\d\.]+)\s+/ or next; unless (validate_ipaddr($1)) { warn "configured IP address for " . "$interface{NAME} is invalid: $1\n"; /tmp> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=405834&aid=923161&group_id=32541 |