Forum Discussion
raZorTT
Cirrostratus
Mar 13, 2019tmsh: making a variable-assign item secure
Hi,
Just wondering if it's possible on 12.1.3 to set a variable assign to secure via tmsh? I can't see any reference to it in the tmsh reference guide. Below is what i'm trying to achieve, which wa...
Kai_Wilke
MVP
Mar 15, 2019Hi Simon,
you can change the variable assign action via the TMSH
load sys config merge from-terminal
command. See below for a complete conversation how to add and to remove the secure flag...
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) list apm policy agent variable-assign test
apm policy agent variable-assign test {
variables {
{
expression "return {MalformedCredentials}"
varname session.logon.last.error
}
}
}
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) load sys config merge from-terminal
Enter configuration. Press CTRL-D to submit or CTRL-C to cancel.
apm policy agent variable-assign test {
variables {
{
expression "return {MalformedCredentials}"
varname session.logon.last.error
secure true
}
}
}
Loading configuration...
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) list apm policy agent variable-assign test
apm policy agent variable-assign test {
variables {
{
expression "return {MalformedCredentials}"
secure true
varname session.logon.last.error
}
}
}
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) load sys config merge from-terminal
Enter configuration. Press CTRL-D to submit or CTRL-C to cancel.
apm policy agent variable-assign test {
variables {
{
expression "return {MalformedCredentials}"
varname session.logon.last.error
}
}
}
Loading configuration...
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos) list apm policy agent variable-assign test
apm policy agent variable-assign test {
variables {
{
expression "return {MalformedCredentials}"
varname session.logon.last.error
}
}
}
root@(f501)(cfg-sync Standalone)(Active)(/Common)(tmos)
Cheers, Kai
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