Guillaume PROTET
2010-05-06 19:29:42 UTC
Hi all,
As planned in the OCS Inventory roadmap, we started to integrate SNMP to enhance Ipdiscover datas. SNMP scans will be made by agent using adresses found by IPDISCOVER.
So, we will be able to have more informations than IPDISCOVER using SNMP communities.
This how we plan to make it work using agents and server:
1) OCS server uses IPDISCOVER datas to determine which IP need to be enhanced using SNMP.
2) OCS server give the IP range to scan directly to the OCS agent using the prolog response (like we already do for package deployment).
3)OCS agent receive the order and start its process for scanning IP with SNMP. Agent will load several SNMP OID and SNMP communities that it knows to remeber it for the next steps.
4)OCS agent try to determine what is the community that use an IP by searching in every communities that it knows.
5)When the SNMP community found, Ocs agent run a standard subroutine (ip_run() for example) to find the OID of the peripheral associated to the IP.
6) If the OID found is specific, the OCS agent run a specific subroutine for this kind of peripheals (for example a specific subroutine for Cisco devices)
7)OCS agent feed the inventory XML by adding new informations about the scanned IP
...h(repeat point 4) to 7) for every IP specified by OCS server)
8)OCS agent send the feeded inventory XML to the server that will store new data in the MySQL database.
For the moment, we plan to integrate it in the Unix unified agent using the new hooks system which permit at the start of the agent run, at PROLOG time, at the PROLOG response time, at the inventory time and at the the end of the agent run.
What are your opinions about it ? All your ideas are welcome :) :).
Kind regards,
--
Guillaume
As planned in the OCS Inventory roadmap, we started to integrate SNMP to enhance Ipdiscover datas. SNMP scans will be made by agent using adresses found by IPDISCOVER.
So, we will be able to have more informations than IPDISCOVER using SNMP communities.
This how we plan to make it work using agents and server:
1) OCS server uses IPDISCOVER datas to determine which IP need to be enhanced using SNMP.
2) OCS server give the IP range to scan directly to the OCS agent using the prolog response (like we already do for package deployment).
3)OCS agent receive the order and start its process for scanning IP with SNMP. Agent will load several SNMP OID and SNMP communities that it knows to remeber it for the next steps.
4)OCS agent try to determine what is the community that use an IP by searching in every communities that it knows.
5)When the SNMP community found, Ocs agent run a standard subroutine (ip_run() for example) to find the OID of the peripheral associated to the IP.
6) If the OID found is specific, the OCS agent run a specific subroutine for this kind of peripheals (for example a specific subroutine for Cisco devices)
7)OCS agent feed the inventory XML by adding new informations about the scanned IP
...h(repeat point 4) to 7) for every IP specified by OCS server)
8)OCS agent send the feeded inventory XML to the server that will store new data in the MySQL database.
For the moment, we plan to integrate it in the Unix unified agent using the new hooks system which permit at the start of the agent run, at PROLOG time, at the PROLOG response time, at the inventory time and at the the end of the agent run.
What are your opinions about it ? All your ideas are welcome :) :).
Kind regards,
--
Guillaume