Forum Discussion
Rosieodonell_16
Cirrus
Mar 09, 2015Cmd Line needed to update datagroup list
I have a datagroup list called "auth_keys" and i was wondering if anyone knows a command line to add info to it. Here is the kind of info i need to add to the datagroup
string: user@domain.com value: GR45EDWOY76DD342
So far i only know how to do this from the gui and if i had the command lines i could make a scipt to update this datagroup.
e.g.
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) modify ltm data-group internal auth_keys records add { user@domain.com { data GR45EDWOY76DD342 }} root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm data-group internal auth_keys ltm data-group internal auth_keys { records { user@domain.com { data GR45EDWOY76DD342 } } type string }
8 Replies
- nitass_89166
Noctilucent
e.g.
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) modify ltm data-group internal auth_keys records add { user@domain.com { data GR45EDWOY76DD342 }} root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm data-group internal auth_keys ltm data-group internal auth_keys { records { user@domain.com { data GR45EDWOY76DD342 } } type string }- entered the first line and got the following error: -bash: modify: command not found
- shaggy
Nimbostratus
if running from bash, precede tmsh command with "tmsh": tmsh modify ltm data-group internal auth_keys records add { user@domain.com { data GR45EDWOY76DD342 }} - This fixed my needs, thank you very much!!!
- nitass
Employee
e.g.
root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) modify ltm data-group internal auth_keys records add { user@domain.com { data GR45EDWOY76DD342 }} root@(ve11c)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm data-group internal auth_keys ltm data-group internal auth_keys { records { user@domain.com { data GR45EDWOY76DD342 } } type string }- entered the first line and got the following error: -bash: modify: command not found
- shaggy
Nimbostratus
if running from bash, precede tmsh command with "tmsh": tmsh modify ltm data-group internal auth_keys records add { user@domain.com { data GR45EDWOY76DD342 }} - This fixed my needs, thank you very much!!!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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