XML files
Ian Bennett <[email protected]> Fri, 28 Feb 2014 21:46:08 +1100
| Newsgroups | gmane.network.cacti.user |
|---|---|
| Message-ID | <[email protected]> |
Evening all, I've been tinkering with snmp queries, writing XML files but have struck a snag. All of what I've done so far has used a single index to gather data from multiple instances, but what if I need to gather data using different indexes?? Here is what I'm trying to do. We have a number of Cisco 6500 switches in our network and I want to collect CPU data for graphing. Depending on the types of modules installed in the slots, will depend on how many CPUs are available to be interrogated. All the CPU info is under the base OID of .1.3.6.1.4.1.9.9.109.1.1.1.1 The following is a walk of that OID from one of our switches: .1.3.6.1.4.1.9.9.109.1.1.1.1.2.1 = 2017 #cpmCPUTotalPhysicalIndex .1.3.6.1.4.1.9.9.109.1.1.1.1.2.2 = 2001 .1.3.6.1.4.1.9.9.109.1.1.1.1.2.3 = 5001 .1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 = 10 #cpmCPUTotal5sec .1.3.6.1.4.1.9.9.109.1.1.1.1.3.2 = 55 .1.3.6.1.4.1.9.9.109.1.1.1.1.3.3 = 0 .1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 = 5 #cpmCPUTotal1min .1.3.6.1.4.1.9.9.109.1.1.1.1.4.2 = 30 .1.3.6.1.4.1.9.9.109.1.1.1.1.4.3 = 0 .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 = 2 #cpmCPUTotal5min .1.3.6.1.4.1.9.9.109.1.1.1.1.5.2 = 17 .1.3.6.1.4.1.9.9.109.1.1.1.1.5.3 = 0 I've trimmed down the output for clarity. I can derive the index by REGEXing the OID .1.3.6.1.4.1.9.9.109.1.1.1.1.2, which allows me to gather the 5 sec, 1 min and 5 min loads for each of the CPUs (three in this case). My problem is I also want to gather the "entPhysicalName" from a different OID (.1.3.6.1.2.1.47.1.1.1.1.7) using the "cpmCPUTotalPhysicalIndex" reported by the first OIDs as an index. A walk of them reveals: .1.3.6.1.2.1.47.1.1.1.1.7.2017 = "CPU of Routing Processor" .1.3.6.1.2.1.47.1.1.1.1.7.2001 = "CPU of Switching Processor" .1.3.6.1.2.1.47.1.1.1.1.7.5001 = "CPU of Module 9" I want to use these values as inputs to describe to a user what the CPUs are. Thoughts?? I've read all the doco I can find and can't see anything close to what I want to do. Any guidance or hints would be much appreciated. Ian ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk