# Syntax for creating Persistence in F5 CLI

**URL:** <https://community.f5.com/t/syntax-for-creating-persistence-in-f5-cli/29906>\
**Category:** Technical Forums\
**Tags:** tmos, application-delivery, ltm\
**Created:** [July 27, 2018, 1:57pm UTC](https://community.f5.com/t/syntax-for-creating-persistence-in-f5-cli/29906 "2018-07-27T13:57:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnaveenkumar\_36](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dnaveenkumar\_36](https://community.f5.com/u/dnaveenkumar_36)\
**Post date:** [July 27, 2018, 1:57pm UTC](https://community.f5.com/t/syntax-for-creating-persistence-in-f5-cli/29906/1 "2018-07-27T13:57:00Z")

</div>

Hi everyone.

```tcl
create ltm virtual VS12345_64 {description xyz.NET destination 10.10.10.53:443 ip-protocol tcp mask 255.255.255.255 mirror enabled persist replace-all-with {PERSISTENCE_AGE_5 {default yes}} pool POOL_VS888888_80 source 0.0.0.0/0 source-address-translation {pool /Common/SNAT_POOL_INT1 type snat}}

```

I am creating virtual server with above syntax but can any one help in syntax for creating presistence. I just wanted to know whats the syntax for creating persistence in F5 CLI.

“PERSISTENCE\_AGE\_5”

---

<div class="post-metadata">

**Author:** ![dnaveenkumar\_36](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dnaveenkumar\_36](https://community.f5.com/u/dnaveenkumar_36)\
**Post date:** [July 27, 2018, 2:21pm UTC](https://community.f5.com/t/syntax-for-creating-persistence-in-f5-cli/29906/2 "2018-07-27T14:21:54Z")

</div>

Thanks everyone.!! some how found it. i am posting it so that it will be useful for someone else

The Syntax for creating persistence is

create ltm persistence source-addr PERSISTENCE\_AGE\_2 app-service none defaults-from source\_addr timeout 300
