# Pool member status iRule version 11 node name

**URL:** <https://community.f5.com/t/pool-member-status-irule-version-11-node-name/49158>\
**Category:** Technical Forums\
**Tags:** irules, devops, application-delivery\
**Created:** [April 1, 2015, 6:34pm UTC](https://community.f5.com/t/pool-member-status-irule-version-11-node-name/49158 "2015-04-01T18:34:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Moore](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jim\_Moore](https://community.f5.com/u/Jim_Moore)\
**Post date:** [April 1, 2015, 6:34pm UTC](https://community.f5.com/t/pool-member-status-irule-version-11-node-name/49158/1 "2015-04-01T18:34:19Z")

</div>

Running into another issue. In version 11 there is a name field for nodes. If the name field is populated it is displayed as the pool member. The bash script will put name:port in the class file.

example:

“poolname/nodename:port” (This returns invalid i’m guessing due to LB::status looking for addr not name) “poolname/IP:port” (This works)

The iRule will then run LB::status pool $poolname member $addr $port.

For any pool member that is listed by name it will return INVALID. If I manually change the class file to the IP it returns the correct state?

Has anyone found a workaround for this other than putting the IP in the name field?

---

<div class="post-metadata">

**Author:** ![cjunior](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@cjunior](https://community.f5.com/u/cjunior)\
**Post date:** [April 16, 2015, 10:14pm UTC](https://community.f5.com/t/pool-member-status-irule-version-11-node-name/49158/2 "2015-04-16T22:14:35Z")

</div>

Hi,

I needed to see the previous case to understand what you wanted.

If I got it, you want to store member’s IP instead of member’s name, right?

see if it works to you:

```tcl
!/bin/bash
tmsh modify sys db bigpipe.displayservicenames value false
rm -f /var/class/pool_member_status_list.class

for POOLNAME in `tmsh list ltm pool | grep -i "ltm pool" | sort | awk '{print $3}'`; do
    for POOLMEMBER in `tmsh list ltm pool $POOLNAME | grep : -A 1 | sed -e 's/address//' | awk -F" " 'BEGIN {i=0} { if ($1=="--") { i=0; next; } else if (i==0) { a=$1; } else if (i==1) { print $1":"a; } else { i=0; next;}; i++; }' | awk -F":" '{print $1":"$3}'`; do
      echo \"$POOLNAME/$POOLMEMBER\", >> /var/class/pool_member_status_list.class
    done
done

if ["`cat /var/prompt/ps1`" == "Active"]; then
    tmsh load sys config
fi

exit 0

```

Best regards!
