# Hi - Need to export VIP name, IP, status (offline/available/unknown), pool and Poolmembers

**URL:** <https://community.f5.com/t/hi-need-to-export-vip-name-ip-status-offline-available-unknown-pool-and-poolmembers/74085>\
**Category:** Technical Forums\
**Tags:** big-ip, report, ltm, application-delivery, script\
**Created:** [February 27, 2024, 2:23pm UTC](https://community.f5.com/t/hi-need-to-export-vip-name-ip-status-offline-available-unknown-pool-and-poolmembers/74085 "2024-02-27T14:23:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravikumar24](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@ravikumar24](https://community.f5.com/u/ravikumar24)\
**Post date:** [February 27, 2024, 2:23pm UTC](https://community.f5.com/t/hi-need-to-export-vip-name-ip-status-offline-available-unknown-pool-and-poolmembers/74085/1 "2024-02-27T14:23:39Z")

</div>

Hi,

I went through many articles but couldn’t find any script for a consolidated report that would have these details:

- VIP name
- VIP IP
- VIP Status (offline/available/unknown)
- pool
- poolmembers

I did find separate articles though but not a consolidated one. I am new and not verse with scripting.

> **[myF5](https://my.f5.com/manage/s/article/K72255145)**

> **[myF5](https://my.f5.com/manage/s/article/K000135606)**

If anyone can please help with this required script it would be of great help.

Thanks in advance.

Regards,

Ravi

---

<div class="post-metadata">

**Author:** ![ravikumar24](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@ravikumar24](https://community.f5.com/u/ravikumar24)\
**Post date:** [February 27, 2024, 3:35pm UTC](https://community.f5.com/t/hi-need-to-export-vip-name-ip-status-offline-available-unknown-pool-and-poolmembers/74085/2 "2024-02-27T15:35:39Z")

</div>

looks like below one did the job.

==========================

echo vs name, destination, state, pool, pool members  
VIRTUALS=$(tmsh list ltm virtual | grep “ltm virtual” | cut -d" " -f3)  
for VS in $VIRTUALS;  
do  
&nbsp; echo -n $VS,  
&nbsp; DEST=$(tmsh list ltm virtual $VS | grep destination | cut -d" " -f6)  
&nbsp; echo -n $DEST,  
&nbsp; AVAIL=$(tmsh show ltm virtual $VS | grep Availability | cut -d: -f2)  
&nbsp; echo -n \“$AVAIL\”,  
&nbsp; POOL=$(tmsh list ltm virtual $VS | grep pool | cut -d" " -f6)  
&nbsp; echo -n $POOL,  
&nbsp; if [-n “$POOL”];  
&nbsp; then  
&nbsp; &nbsp; MBRS=$(tmsh list ltm pool “$POOL” | grep address | cut -d" " -f14)  
&nbsp; &nbsp; echo -n $MBRS  
&nbsp; fi  
&nbsp; echo  
done
