How bitB works?

Good question.  It's easy.  bitB works like you do.  bitB will make Telnet or SSH connections to network devices.  Once connected, bitB issues show commands and collects the results of the show commands.  The collected data is then parsed and validated and then added to database.  In addition to saving the data to a database, the results are the show commands are saved in text files to the local computer running bitB.