Forum Discussion
Tham_T__330907
Nimbostratus
Jan 25, 2018How to create virtual_server by converting from list ... one-line?
I would like to convert the virtual server configuration using command
list ltm virtual all-properties one-line | grep "destination x.x.x.x"
and also
show running-config /ltm virtual x one-line
The BIG-IP will return the config, but when I add
create
then follow by config it's return
Syntax Error: "partition" is a read-only property
That I solve by changing from common partition to the same partition as the config, but it's still not work...- PeteWhite
Employee
There are a couple of things - remove the read-only attributes such as partition and vs-index and in some places you also have to add the
keyword.add {
For instance if you have
then you need to add the keywordltm virtual test profiles { tcp http }
egadd
You can also use replace-all-with, delete, modify or none as keywords.create ltm virtual test profiles add { tcp http }
- Stanislas_Piro2
Cumulonimbus
After list command, copy it and edit it in your favorite text editor keep the same format (one line or multiline, doesn't matter). then use following command:
load sys config merge from-terminal
paste the edited text, then enter CTRL-D
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects