David_Patino_20
May 30, 2018Nimbostratus
Find actual filename of external data-group file from output of list sys file data-group
Howdy!
Does anyone know a way to map the output of either a
list ltm data-group external
command, or list sys file data-group
to the actual file located on the disk?
For example, list
ltm data-group external
returns:
ltm data-group external CLASS-Redirects {
external-file-name CLASS-Redirects-norm
type string
}
and
list sys file data-group
returns:
sys file data-group CLASS-Redirects-norm {
...
source-path file:///shared/tmp/clas/dg.norm
...
}
However the actual file is:
/config/filestore/files_d/Common_d/data_group_d/:Common:CLASS-Redirects-norm_40227_3
I'm not sure where the number that's appended comes from. Any ideas?
Basically, given the output of one of the commands above I need to be able to view the contents of that file. I was going to do a bash cat command like so:
run util bash -c "cat but I obviously need to build the filename first.
Thanks for any tips.
-David