Forum Discussion
iControl setup on Linux/unix platforms
Hi Pete,thanks for the reply.
We edited the command in the script with the one you posted.Please find the attached screenshot. Still,one error observed.
Also, I am posting the output
===================================================
[xxxx@xxx ~]$ ./script
Enter your options: disable or enable disable
Enter the pool name pool_xxxxxxxxxx
Enter the node name node_xxxxxxxxxx
Enter port xxxxx
./script: line 13: {"kind":"tm:ltm:pool:members:membersstate","name":"node_xxxxxx:xxxxx","partition":"Common","fullPath":"/Common/node_xxxxxxx:xxxx","generation":5440,"selfLink":";:{"autopopulate":"disabled"},"inheritProfile":"enabled","logging":"disabled","monitor":"default","priorityGroup":0,"rateLimit":"disabled","ratio":1,"session":"user-disabled","state":"user-down"}: No such file or directory
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
100 209 100 209 0 0 1953 0 --:--:-- --:--:-- --:--:- 34833
./script: line 15: {"code":400,"message":"Found: command not found
=======================================================================================
- PeteWhiteDec 23, 2016
Employee
Remove the backticks - ` from lines 13 and 15. You may also want to use curl -s to stop the download text. Not sure whether you know but you can use $select to select which data you want returned. ie rather than returning all state and statistics information, you can just return the single state field. You then want to consider outputting only the correct information. This is rather tricky in bash, you may find it simpler to port the script to Python or similar. I have a Python module that makes it pretty simple to do this in Python : iCR Python Module for iControl REST
 
- FTD_Routing_HydDec 23, 2016
Nimbostratus
Thanks a lot Pete!!!
We will work on it and get back to you.
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