Forum Discussion
List single record from data-group on CLI
I'm trying to query the data of a particular record within a data-group via the command line. However when I pass in the record name it still returns all records.
user1@LTM1:Active:Changes Pending] ~ # tmsh list ltm data-group internal ants_test_dg records { record_one }
ltm data-group internal ants_test_dg {
records {
record_one {
data value_one
}
record_three {
data value_three
}
record_two {
data value_two
}
}
}
I'm sure there must be a simple thing I'm missing here, could someone please advise?
Many thanks
Ant
Hi Anthony,
I think, records command not use for listing.
https://clouddocs.f5.com/cli/tmsh-reference/latest/modules/ltm/ltm-data-group-internal.html
Hope this will work:
tmsh list ltm data-group internal ants_test_dg | grep -A 2 "record_one"
- AnthonyNimbostratus
Thanks for the quick response eaa, I should be able to work with that. I was working from that doc initially but hadn't twigged that list had such limited options.
Thanks again,
Ant
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