Forum Discussion

Rosieodonell_16's avatar
Mar 09, 2015
Solved

Cmd 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

  • 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
    }
    
    • Rosieodonell_16's avatar
      Rosieodonell_16
      Icon for Cirrus rankCirrus
      entered the first line and got the following error: -bash: modify: command not found
    • shaggy's avatar
      shaggy
      Icon for Nimbostratus rankNimbostratus
      if running from bash, precede tmsh command with "tmsh": tmsh modify ltm data-group internal auth_keys records add { user@domain.com { data GR45EDWOY76DD342 }}
  • 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's avatar
      shaggy
      Icon for Nimbostratus rankNimbostratus
      if running from bash, precede tmsh command with "tmsh": tmsh modify ltm data-group internal auth_keys records add { user@domain.com { data GR45EDWOY76DD342 }}