Forum Discussion
tmsh load sys config v11
I have been successful in creating new Pools and iRules with "tmsh load sys config file /my/config/file.txt". I am trying to do the same with Virtual, but I keep getting validation errors for elements which exist. Example:
tmsh load sys config file /home/aparfeno/vip_test.txt verify
Unexpected Error: 01070341:3: Virtual server /Development/myapp.domain.com.http references rule /Common/irule.any.any.http.to.https.redirect which does not exist.
In fact, the requested iRule does exist in /config/bigip.conf:
ltm rule /Common/irule.any.any.http.to.https.redirect {
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
But for some reason the "tmsh load sys config file ...." refuses to load my Virtual unless I comment out this iRule. After removing it from the merge file, the load works. And then I have to manually add the irule back. And after I add it, the resulting /config/partitions/Development/bigip.conf has the following entry:
..
rules {
/Common/irule.any.any.http.to.https.redirect
}
..
But if I try to take the contents as applied via the console and try to run "tmsh load sys config file ..." again, it fails again with same verification errors. And this same patter of behavior happens with other elements which all exist in the system. More examples:
Unexpected Error: 01020036:3: The requested profile (/Common/http.any.any.weblogic-ssl) was not found.
Unexpected Error: Validating configuration process failed.
Unexpected Error: 01020036:3: The requested profile (/Common/tcp.30.minutes) was not found.
Unexpected Error: Validating configuration process failed.
..etc.
Anybody has any ideas?
7 Replies
- Alexander_Parfe
Nimbostratus
Correction - when I said "refuses to load" I meant refuses to verify. Having experimented with it a bit further, it actually loads the contents of the merge file, even if verification step produces warnings. The resulting load produces correctly formatted Virtual entries.
So the main concern is, if I am to ignore the warnings, which could potentially be valid, I don't have a safe way to process merge files for new Virtual entries. - Mark_Crosland_2Historic F5 AccountDo you intend to replace the entire config of the system with what is in the file that you are loading?
Is the iRule in the file that you are loading?
If not, you probably want to use the merge option.
load sys config merge file - Alexander_Parfe
Nimbostratus
I am only adding several items to configuration - not replacing the entire contents. The full commands I am using include either verify or merge options. I get errors on verify step about missing dependencies. The following merge steps is successful in adding the items to configuration. Details:
To verify
tmsh load sys config file /home/user/file.txt verify
To merge
tmsh load sys config file /home/user/file.txt merge - Mark_Crosland_2Historic F5 AccountIn this case you will need to specify the merge option when verifying the config.
- Alexander_Parfe
Nimbostratus
That makes a difference! Thanks. I tried to look up the details with "tmsh help load", but didn't get much information back. Do you know of a better reference?
So, commands should be:
To verify
tmsh load sys config file /home/user/file.txt merge verify
To merge
tmsh load sys config file /home/user/file.txt merge - Mark_Crosland_2Historic F5 AccountThere are help pages for the action (load, save, create, modify, ...). The help is typically brief. tmsh help load, tmsh help create, ...
There are also help pages for the type of object/component that is being acted on. tmsh help sys config, tmsh help ltm pool, ... - Mark_Crosland_2Historic F5 AccountThere are help pages for the action (load, save, create, modify, ...). The help is typically brief. tmsh help load, tmsh help create, ...
There are also help pages for the type of object/component that is being acted on. tmsh help sys config, tmsh help ltm pool, ...
These will contain much more information.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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