alexan...@nautae.eti.br napsal(a): > Hi. > > I have to integrate Bacula with GLPI inventory system. > > So, I have to read jobs info like Name, FileSet, Pool, Level, > Schedule, etc, from each job, > > and put it in a data structure to export to GLPI. > > So, I'm about to write a Perl script and some regular expressions to > read conf job file. > > But... is there any way that Bacula could give those information? > > Thanks for any help! > > []s > Alexander > Brazil > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users
There are thre possible ways: You could either dig these dat from database (the structure is simple), but some data are hard to assemble from database only. Or you can parse the config files, but there is posibility, that the config in files are changed since bacula was reloaded. Third possibility is to connect to director via bconsole and call commands like show, list and llist, or to write an aplication, which will act as the concsole and will use the protocol. MArek ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users