# FIXME: Parse the /etc/elanhosts configuration file to
# convert ElanID to hostname
;;
- gm*) # Myrinet
- # FIXME: Use /usr/sbin/gmlndnid to find the hostname of
- # the specified GM Global node ID
- ;;
ptl*) # Portals
# FIXME: Convert portal ID to hostname
;;
- *) # tcp, o2ib, cib, openib, iib, vib, ra
+ *) # tcp, o2ib, ra
ip_addr=${addr}
# Is it IP address or hostname?
if [ -n "`echo ${ip_addr} | sed -e 's/\([0-9]\{1,3\}\.\)\{3,3\}[0-9]\{1,3\}//'`" ]
[ "${nid}" != "${nid#*@*}" ] && nettype=${nid#*@} || nettype=tcp
case "${nettype}" in
- lo* | elan* | gm* | ptl*) ;;
- *) # tcp, o2ib, cib, openib, iib, vib, ra
+ lo* | elan* | ptl*) ;;
+ *) # tcp, o2ib, ra
host_name=$(nid2hostname ${nid})
if [ ${PIPESTATUS[0]} -ne 0 ]; then
echo "${host_name}"
[ "${nid}" != "${nid#*@*}" ] && nettype=${nid#*@} || nettype=tcp
case "${nettype}" in
- lo* | elan* | gm* | ptl*) ;;
- *) # tcp, o2ib, cib, openib, iib, vib, ra
+ lo* | elan* | ptl*) ;;
+ *) # tcp, o2ib, ra
host_name=$(nid2hostname ${nid})
if [ ${PIPESTATUS[0]} -ne 0 ]; then
echo "${host_name}"