Le 2014-08-04 18:50, Mathieu MILLET a écrit :
Hi,
I would like to give a try to code some PHP Patchs, so that Observium can discover VRF, OSPF, BGP and so on Nexus 7K platform (our reference will be Nexus 7700 with NX-OS 6.2).
We are implementing "VRF-Lite" style (no MPLS), so according to Cisco documentation, it is mandatory to map in NX-OS configuration, a SNMP Context (v3) to each instance of VRF, OSPF, BGP, whatever ....
My try will be to first discover the context mapping with this Cisco MIB : CISCO-CONTEXT-MAPPING-MIB.my
and then to iterate on these mappings using an additional function like "get snmp walk/bulk with context" on these contexts.
Do you have any advice how I could do that ? Which files should I implement / pacth ? Which files could I use as examples and inspiration ?
Also, I plan to make patch against the last open release (SVN revision 5229). Is that a problem ?
Thank you in advance for your help, Sincerely yours, Mathieu.
To add to the discussion, all IP-related informations (ARP, Routes, OSPF, ...) are context-dependant and SNMP Context (or v2 community) must be pass to NX-OS to be able to get these informations.
In our case, the "default" vrf is empty, so all informations like ipNetToPhysicalTable are empty without any context.
Sincerely yours, Mathieu.