Open MPI logo

MTT Devel Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all MTT Users mailing list

Subject: Re: [MTT users] 'whatami' patch
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2008-01-29 13:32:46


Thanks!

I slightly modified your patch to just update the existing rhel regexp
and it seems to work for me (rhel4, rhel5); see attached if you care.
I'll commit this to both the mtt trunk and core branch, and will pass
it on to the whatami maintainers.

On Jan 29, 2008, at 12:56 PM, Tim Prins wrote:

> Hi,
>
> The 'whatami' script does not recognize our new cluster. Attached is
> a patch to make it work.
>
> For reference, the relevant line in /etc/issue is:
> Red Hat Enterprise Linux Server release 5 (Tikanga)
>
>
> Thanks,
>
> Tim
> Index: client/whatami/whatami
> ===================================================================
> --- client/whatami/whatami (revision 1142)
> +++ client/whatami/whatami (working copy)
> @@ -189,6 +189,10 @@
> #distro=${distro_brand}${distro_version}_$
> {sub_distro}
> distro=${distro_brand}${distro_version}
>
> + elif [ -n "`egrep 'Red Hat Enterprise Linux Server
> release [0-9]*' /etc/issue`" ]; then
> + distro_brand=rhel_server
> + distro_version=`grep 'Red Hat' /etc/issue |
> sed -e 's/Red Hat Enterprise Linux Server release \([0-9]*\).*/\1/' `
> + distro=${distro_brand}${distro_version}
> elif [ -n "`egrep 'Cray Rocks Linux release 1.3' /
> etc/issue`" ]; then
> distro=rh73
>
> _______________________________________________
> mtt-users mailing list
> mtt-users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users

-- 
Jeff Squyres
Cisco Systems