Forum Discussion

Tham_T__330907's avatar
Tham_T__330907
Icon for Nimbostratus rankNimbostratus
Jan 25, 2018

How 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...

2 Replies

  • 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

  • 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

    add {
    keyword.

    For instance if you have

    ltm virtual test profiles { tcp http }
    then you need to add the keyword
    add
    eg
    create ltm virtual test profiles add { tcp http }
    You can also use replace-all-with, delete, modify or none as keywords.