Does anyone have a script to share that pulls the date/timestamp from the oldest packetdb file on a Decoder or similarly the metadb file on a Concentrator? Thought is to have that script run on a website hosted elsewhere on the network so that other users / team members can have visibility into the current retention capability on any given Decoder / Concentrator (as there are many appliances).
Thanks!
You should be able to do it easily with
curl -u user:password http://<concentrator>:50105/database/stats?force-content-type=text/plain
curl -u user:password http://<decoder>:50104/database/stats?force-content-type=text/plain
The end point is /database/stats on both devices.
If you only want a specific value you can go further into the tree and pick that single value that you want.
Hope that helps!
Rui