Forum Discussion
Tim_18689
Cirrus
Sorry, That was a mess, posting again in plain text:
I am trying to disable the first time setup utility remotely using REST.
When I make the rest request:
-- it looks like it works but the change does not seem to take place on the remote device
-- GET requests for the setting show it changed but checking locally show it has not changed
I am not understanding something here.
I am trying to run the command equivalent to "tmsh modify sys db setup.run value false"
-- Here is the value locally on the LTM:
tmsh list sys db setup.run
sys db setup.run {
value "true"
}
-- Here I make the rest request to change from "true" to "false":
curl -ks -H "Content-Type: application/json" -u admin:admin [https://10.3.214.110/mgmt/tm/sys/db/setup.run](https://10.3.214.110/mgmt/tm/sys/db/setup.run) -X PUT -d '{"value": "false"}' |json-format |grep -v warning {
"kind": "tm:sys:db:dbstate",
"name": "setup.run",
"fullPath": "setup.run",
"generation": 137,
"selfLink": "[https://localhost/mgmt/tm/sys/db/setup.run?ver](https://localhost/mgmt/tm/sys/db/setup.run?ver)\u003d11.5.0",
"defaultValue": "true",
"scfConfig": "false",
"value": "false",
"valueRange": "false true"
}
Here I check value with a GET request (shows "false":
curl -ks -H "Content-Type: application/json" -u admin:admin [https://10.3.214.110/mgmt/tm/sys/db/setup.run](https://10.3.214.110/mgmt/tm/sys/db/setup.run) |json-format |grep -v warning
{
"kind": "tm:sys:db:dbstate",
"name": "setup.run",
"fullPath": "setup.run",
"generation": 137,
"selfLink": "[https://localhost/mgmt/tm/sys/db/setup.run?ver](https://localhost/mgmt/tm/sys/db/setup.run?ver)\u003d11.5.0",
"defaultValue": "true",
"scfConfig": "false",
"value": "false",
"valueRange": "false true"
}
-- Here I check locally on LTM and it shows true:
tmsh list sys db setup.run
sys db setup.run {
value "true"
}
Any help understanding will be appreciated.
* Tim
lostpacket_5555
Apr 15, 2019Historic F5 Account
PUT https:///mgmt/tm/sys/global-settings -d '{"guiSetup":"disabled"}'
Doing this alone will still drop you into the network setup utility when you login to the Configuration utility. So far the only way around this that seems to work is to configure a network object using REST such as a vlan prior to logging on to the CU.
To configure vlans see K13225405: Common iControl REST API command examples. https://support.f5.com/csp/article/K13225405