2013-04-05 08:26 AM
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!
2013-04-05 09:50 AM
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
2013-04-05 09:50 AM
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
2013-04-08 10:33 PM
You could just bookmark the decoders assuming you have the REST API enabled. Just type the following into any browser that can connect to decoder/concentrator. I've also include the REST queries for individual stats that may be useful below. http://netwitnessip:50104/sys/stats also gives good information you can monitor. Change port to 50105 for concentrator.
http://decoderipaddress:50104/database/stats/
Meta Bytes http://decoderipaddress:50104/database/stats/meta.bytes
Meta Oldest File Time http://decoderipaddress:50104/database/stats/meta.oldest.file.time
Meta Rate (current) http://decoderipaddress:50104/database/stats/meta.rate
Meta Rate (maximum) http://decoderipaddress:50104/database/stats/meta.rate.max
Meta Total http://decoderipaddress:50104/database/stats/meta.total
Packet Bytes http://decoderipaddress:50104/database/stats/packet.bytes
Packet Oldest File Time http://decoderipaddress:50104/database/stats/packet.oldest.file.time
Packet Rate (current) http://decoderipaddress:50104/database/stats/packet.rate
Packet Rate (maximum) http://decoderipaddress:50104/database/stats/packet.rate.max
Packet Total http://decoderipaddress:50104/database/stats/packet.total