HP Networking device statistics
Moderators: Developers, Moderators
HP Networking device statistics
Hey all cacti and HPN users,
I´ve seen couple of posts regarding HP Networking device templates:
http://forums.cacti.net/viewtopic.php?f=12&t=43632
http://forums.cacti.net/viewtopic.php?f=12&t=50586
And proposed template is not very scalable, since the fact is that f.ex. OID for CPU usage is not the same for A5500 and A5120 switches.
I have created new data query that is using indexed snmp data. This has been tested against following models:
Switches:
A5500-EI
A5120-EI
A7502
A5900AF
Routers:
A-MSR50-40
A-MSR30-10
A-MSR20-21
A6604
Keypoint here is that "DeviceID" is changing between the models. I have used OID .1.3.6.1.4.1.25506.2.3.1.3.3.1.2 (hh3cSysReloadEntity) to identify the DeviceID and then fetching OID .1.3.6.1.2.1.47.1.1.1.1.7 (entPhysicalName) to get a name for it. When query has been made CPU, Memory and Temperature graphs can be created by enabling the graph for the matching number of DeviceID (hh3cSysReloadEntity).
For above mentioned HW models here are DeviceID´s and matching name for them:
Switches:
A5500-EI DeviceID "65" entPhysicalName "Board"
A5120-EI DeviceID "30" entPhysicalName "Board"
A7502 DeviceID "42" entPhysicalName "Master Board 0"
A5900AF:
IRF stack with 4 switches:
IRF member 1 DeviceID "112" entPhysicalName "Board"
IRF member 2 DeviceID "122" entPhysicalName "Board"
IRF member 3 DeviceID "132" entPhysicalName "Board"
IRF member 4 DeviceID "142" entPhysicalName "Board"
Routers:
A-MSR50-40 DeviceID "3" entPhysicalName "Module Level1"
A-MSR30-10 DeviceID "3" entPhysicalName "Module Level1"
A-MSR20-21 DeviceID "3" entPhysicalName "Module Level1"
A6604 DeviceID "18" entPhysicalName "Level1 Module 0"
OIDs that have been used in that query file are:
hh3cSysReloadEntity = .1.3.6.1.4.1.25506.2.3.1.3.3.1.2
entPhysicalChildIndex = .1.3.6.1.2.1.47.1.3.3.1.1
entPhysicalName = .1.3.6.1.2.1.47.1.1.1.1.7
hh3cEntityExtCpuUsage = .1.3.6.1.4.1.25506.2.6.1.1.1.1.6
hh3cEntityExtMemUsage = .1.3.6.1.4.1.25506.2.6.1.1.1.1.8
hh3cEntityExtMemSize = .1.3.6.1.4.1.25506.2.6.1.1.1.1.10
hh3cEntityExtTemperature = .1.3.6.1.4.1.25506.2.6.1.1.1.1.12
For other models, simply snmpwalk the device with OID hh3cSysReloadEntity and check the name for it with entPhysicalName. As can be seen above, even the name is changing between models quite a lot.
I know this is not the ideal way to do this, but this is doing the needed work.
Attached is the data query and host template xml files. Host template doesn´t include interface statistics, so this needs to be added after importing.
Cheers,
Jamo
I´ve seen couple of posts regarding HP Networking device templates:
http://forums.cacti.net/viewtopic.php?f=12&t=43632
http://forums.cacti.net/viewtopic.php?f=12&t=50586
And proposed template is not very scalable, since the fact is that f.ex. OID for CPU usage is not the same for A5500 and A5120 switches.
I have created new data query that is using indexed snmp data. This has been tested against following models:
Switches:
A5500-EI
A5120-EI
A7502
A5900AF
Routers:
A-MSR50-40
A-MSR30-10
A-MSR20-21
A6604
Keypoint here is that "DeviceID" is changing between the models. I have used OID .1.3.6.1.4.1.25506.2.3.1.3.3.1.2 (hh3cSysReloadEntity) to identify the DeviceID and then fetching OID .1.3.6.1.2.1.47.1.1.1.1.7 (entPhysicalName) to get a name for it. When query has been made CPU, Memory and Temperature graphs can be created by enabling the graph for the matching number of DeviceID (hh3cSysReloadEntity).
For above mentioned HW models here are DeviceID´s and matching name for them:
Switches:
A5500-EI DeviceID "65" entPhysicalName "Board"
A5120-EI DeviceID "30" entPhysicalName "Board"
A7502 DeviceID "42" entPhysicalName "Master Board 0"
A5900AF:
IRF stack with 4 switches:
IRF member 1 DeviceID "112" entPhysicalName "Board"
IRF member 2 DeviceID "122" entPhysicalName "Board"
IRF member 3 DeviceID "132" entPhysicalName "Board"
IRF member 4 DeviceID "142" entPhysicalName "Board"
Routers:
A-MSR50-40 DeviceID "3" entPhysicalName "Module Level1"
A-MSR30-10 DeviceID "3" entPhysicalName "Module Level1"
A-MSR20-21 DeviceID "3" entPhysicalName "Module Level1"
A6604 DeviceID "18" entPhysicalName "Level1 Module 0"
OIDs that have been used in that query file are:
hh3cSysReloadEntity = .1.3.6.1.4.1.25506.2.3.1.3.3.1.2
entPhysicalChildIndex = .1.3.6.1.2.1.47.1.3.3.1.1
entPhysicalName = .1.3.6.1.2.1.47.1.1.1.1.7
hh3cEntityExtCpuUsage = .1.3.6.1.4.1.25506.2.6.1.1.1.1.6
hh3cEntityExtMemUsage = .1.3.6.1.4.1.25506.2.6.1.1.1.1.8
hh3cEntityExtMemSize = .1.3.6.1.4.1.25506.2.6.1.1.1.1.10
hh3cEntityExtTemperature = .1.3.6.1.4.1.25506.2.6.1.1.1.1.12
For other models, simply snmpwalk the device with OID hh3cSysReloadEntity and check the name for it with entPhysicalName. As can be seen above, even the name is changing between models quite a lot.
I know this is not the ideal way to do this, but this is doing the needed work.
Attached is the data query and host template xml files. Host template doesn´t include interface statistics, so this needs to be added after importing.
Cheers,
Jamo
- Attachments
-
- hpn_switch_system_stats.xml
- Data query
- (2.29 KiB) Downloaded 1669 times
-
- cacti_host_template_hp_networking.xml
- Host template
- (28.36 KiB) Downloaded 1636 times
Last edited by JamoSS on Wed Jan 15, 2014 3:26 am, edited 1 time in total.
-
- Posts: 1
- Joined: Fri Jan 03, 2014 3:07 am
Re: HP Networking device statistics
Hi Jamo,
Thanks for this work!
I have some issue when i try to include this template.
I'm using version 0.8.7c of Cacti (in CactiEZ bundle version).
I have modified the hash of the host template file to match the good version.
I successfully imported the host template.
The problem is that when i try to use this template on a device, i have an error in data query.
Data Query [HPN - System Statistics]
Error in data query.
Have you heard about something like this?
Tanks a lot
Thanks for this work!
I have some issue when i try to include this template.
I'm using version 0.8.7c of Cacti (in CactiEZ bundle version).
I have modified the hash of the host template file to match the good version.
I successfully imported the host template.
The problem is that when i try to use this template on a device, i have an error in data query.
Data Query [HPN - System Statistics]
Error in data query.
Have you heard about something like this?
Tanks a lot
Re: HP Networking device statistics
Hi remyronsse,
At least I found one mistake in my host template. It is pointing to Data Query called "hpn_switch_system_stats.xml". And the file I have attached here is called "hpn_system_stats.xml". Can you check if renaming this data query file will fix the issue?
I will also double check attached files and get them fixed. Problem most likely was caused because I was playing around between our lab and production Cacti setups, and this file is named differently between those.
Cheers,
Jamo
At least I found one mistake in my host template. It is pointing to Data Query called "hpn_switch_system_stats.xml". And the file I have attached here is called "hpn_system_stats.xml". Can you check if renaming this data query file will fix the issue?
I will also double check attached files and get them fixed. Problem most likely was caused because I was playing around between our lab and production Cacti setups, and this file is named differently between those.
Cheers,
Jamo
Re: HP Networking device statistics
Data query file is now renamed and should be working.JamoSS wrote:Hi remyronsse,
At least I found one mistake in my host template. It is pointing to Data Query called "hpn_switch_system_stats.xml". And the file I have attached here is called "hpn_system_stats.xml". Can you check if renaming this data query file will fix the issue?
I will also double check attached files and get them fixed. Problem most likely was caused because I was playing around between our lab and production Cacti setups, and this file is named differently between those.
Cheers,
Jamo
Re: HP Networking device statistics
Hello, ( i'm french so my english is poor !!)
I've correctly installed the templates, and i can create without eror in data source the CPU usage ans Temp.
The probleme is that the CPU usage is always at 0 ( in reality 4% )
The temp is always full 16bit var : 65535 °
I think it's probably that i'm on version 7.1.045P11 for the OS of swith.
My model of switch in my IRF of 6 switch are :
- 3 HP 5900AF-48XG-4QSFP+ Switch with 2 Processors
and
- 3 HP 5900AF-48XGT-4QSFP+ Switch with 2 Processors
For the moment i browse the OIDS to find what's wrong ....
If you are encontred this problem and solved it, you're welcome to help me.
If i found the probleme i will make a new post ...
Thanks to all ...
I've correctly installed the templates, and i can create without eror in data source the CPU usage ans Temp.
The probleme is that the CPU usage is always at 0 ( in reality 4% )
The temp is always full 16bit var : 65535 °
I think it's probably that i'm on version 7.1.045P11 for the OS of swith.
My model of switch in my IRF of 6 switch are :
- 3 HP 5900AF-48XG-4QSFP+ Switch with 2 Processors
and
- 3 HP 5900AF-48XGT-4QSFP+ Switch with 2 Processors
For the moment i browse the OIDS to find what's wrong ....
If you are encontred this problem and solved it, you're welcome to help me.
If i found the probleme i will make a new post ...
Thanks to all ...
Re: HP Networking device statistics
Hi Protor,
As I posted in my first message that 5900AF switch should work if you select the graph to be created for "Board" which is the index numbers 112, 122, 132 and 142 for 4 switch IRF stack. Are you saying using "Board" as physical name is not working for you?
On the other hand, I have noticed that HP 5830AF-96G Switch (JC694A) with 4 switch IRF stack behaves a bit differently. For this model, CPU and Memory graphs can be created by selecting "Level 1 Module 1" as physical name. But this does not work for temperature graph, because it seems this does not provide the temperature value. Instead, to get temperature graphed one or all of the "Sensor1" through "Sensor4" needs to be selected as physical name. I have not searched though on which location or side each sensor is located on the switch motherboard.
Cheers,
Jamo
As I posted in my first message that 5900AF switch should work if you select the graph to be created for "Board" which is the index numbers 112, 122, 132 and 142 for 4 switch IRF stack. Are you saying using "Board" as physical name is not working for you?
On the other hand, I have noticed that HP 5830AF-96G Switch (JC694A) with 4 switch IRF stack behaves a bit differently. For this model, CPU and Memory graphs can be created by selecting "Level 1 Module 1" as physical name. But this does not work for temperature graph, because it seems this does not provide the temperature value. Instead, to get temperature graphed one or all of the "Sensor1" through "Sensor4" needs to be selected as physical name. I have not searched though on which location or side each sensor is located on the switch motherboard.
Cheers,
Jamo
Re: HP Networking device statistics
Hi Jamo,
I was on hollydays the 2 last week
Thank you for your reply.
Yes, i found how to graph the temp via the SENSOR. ( 3 Sensor on 5900 XGT and 2 for 5900 XG )
Yes i graph the 112 for board temp : 118 and 119 for CPU temp on 5900 XG
I try to found how to graph CPU utilisation and Memory.
I see PSU but don't graph anything good
I'm going to try graph "SubCard" --> i tell you after --> file system probably ( i hope that is memory )
I see the Fan but we aven't the graph template for --> i think is for speed of FAN
There is lot of OID, so I try each one to find the good ONE.
best regards
Protor
I was on hollydays the 2 last week
Thank you for your reply.
Yes, i found how to graph the temp via the SENSOR. ( 3 Sensor on 5900 XGT and 2 for 5900 XG )
Yes i graph the 112 for board temp : 118 and 119 for CPU temp on 5900 XG
I try to found how to graph CPU utilisation and Memory.
I see PSU but don't graph anything good
I'm going to try graph "SubCard" --> i tell you after --> file system probably ( i hope that is memory )
I see the Fan but we aven't the graph template for --> i think is for speed of FAN
There is lot of OID, so I try each one to find the good ONE.
best regards
Protor
Re: HP Networking device statistics
Hi there,
I just installed a HP 5500El and i would like to have CPU usage and Memory usage. So i'm in the right thread i think
Problem that for me it's doens't work. I imported template, but it dont showing anything. What i missed ? Can you explain in detail the process to have it ?
Thanks a lot !
I just installed a HP 5500El and i would like to have CPU usage and Memory usage. So i'm in the right thread i think
Problem that for me it's doens't work. I imported template, but it dont showing anything. What i missed ? Can you explain in detail the process to have it ?
Thanks a lot !
Re: HP Networking device statistics
This template looks a bit more sophisticated but here's also my simple try of the same thing http://forums.cacti.net/viewtopic.php?f=12&t=52067
Re: HP Networking device statistics
Hello,
This template works great for HP 5900, thanks a lot.
But, when i try to do the same operations in my HP 5700, i have no 0 items.
You can see it on screenshots.
Data Query Debug Information
+ Running data query [27].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/snmp_queries/hpn_switch_system_stats.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.25506.2.3.1.3.3.1.2' Index Count: 6
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.7340032' value: '112'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.7995392' value: '122'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.8650752' value: '132'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.9306112' value: '142'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.9961472' value: '152'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.10616832' value: '162'
+ Located input field 'entPhysicalChildIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.47.1.3.3.1.1'
+ Located input field 'entPhysicalName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.47.1.1.1.1.7'
This template works great for HP 5900, thanks a lot.
But, when i try to do the same operations in my HP 5700, i have no 0 items.
You can see it on screenshots.
Data Query Debug Information
+ Running data query [27].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/snmp_queries/hpn_switch_system_stats.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.25506.2.3.1.3.3.1.2' Index Count: 6
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.7340032' value: '112'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.7995392' value: '122'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.8650752' value: '132'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.9306112' value: '142'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.9961472' value: '152'
+ Index found at OID: 'enterprises.25506.2.3.1.3.3.1.2.10616832' value: '162'
+ Located input field 'entPhysicalChildIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.47.1.3.3.1.1'
+ Located input field 'entPhysicalName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.47.1.1.1.1.7'
- Attachments
-
- 0 items
- HP 5700 system.jpg (179.12 KiB) Viewed 10685 times
Re: HP Networking device statistics
The SNMP walk on OID .1.3.6.1.2.1.47.1.3.3.1.1 and .1.3.6.1.2.1.47.1.1.1.1.7 return 0 results.
This OID is maybe different on HP 5700 ?
edit : It's same OID on HP 5900 and HP 5700
This OID is maybe different on HP 5700 ?
edit : It's same OID on HP 5900 and HP 5700
Re: HP Networking device statistics
Forget my questions, items finally appear
Who is online
Users browsing this forum: No registered users and 1 guest