From: Alexander Reelsen <ar@rhwd.net>
Hi
On Wed, Jan 19, 2000 at 11:39:33AM -0500, James Moore wrote:
> Is there anyone out there that has a quick perl script to dump the
> contents of config.db? Is there a document out there that describes the
> structure of config.db?
nog:~ # file /opt/cricket/cricket-config/config.db
/opt/ncc/cricket/cricket-config/config.db: Berkeley DB Hash file (Version
2, Little Endian, Bucket Size 4096, Bucket Shift 12, Directory Size 256,
Segment Size 256, Segment Shift 8, Overflow Point 10, Last Freed 245, Max
Bucket 572, High Mask 0x3ff, Low Mask 0x1ff, Fill Factor 73, Number of
Keys 18779)
So what does this tell? It tells you only need to read the DB_File
manpage where there is an excellent copy&paste example how to perform that
step.
Hope that helped... (No time for a self hack ;))
MfG/Regards, Alexander
-- Alexander Reelsen http://joker.rhwd.owl.de "Bugs ? Features !", -- rrdtool(1), Section BUGS--------------------------- ONElist Sponsor ----------------------------
Independent contractors: Find your next project gig through JobSwarm! You can even make money by referring friends. <a href=" http://clickme.onelist.com/ad/jobswarm2 ">Click Here</a>
------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:11 PST