Allot Netenforcer
Moderators: Developers, Moderators
Allot Netenforcer
Hi all.
I'm trying to setup some traffic monitoring on an Allot NetEnforcer using Cacti.
To accomplish this, I was trying to follow the "Howto: from snmptable to XML Graphs (Data Query walkthrough)" ... but I've failed miserabily on the 1st step
Here's the snmtable command output:
$> snmptable -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
SNMP table: PIPE-MIB::pipeStatTable
pipePosition pipeInstancePosition pipeName pipeByteCountIn pipeByteCountOut pipeByteCountTotal pipeLiveConnections pipeNewConnections pipePacketsIn pipePacketsOut pipePacketsTotal
1 0 PIPNAME1 25938332888 7678099821 33616432709 20891 1662241 34496499 29072369 63571501
2 0 PIPENAME2 80461483612 25588656778 106050140391 66133 4831554 98258659 85408409 183667068
3 0 Fallback Pipe 1051706 5077003 6128709 13 5921 12876 22264 35140
And the snmpwalk output:
$> snmpwalk -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.2.0 = INTEGER: 2
.1.3.6.1.4.1.2603.1.2.1.1.1.1.3.0 = INTEGER: 3
.1.3.6.1.4.1.2603.1.2.1.1.1.2.1.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.2.2.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.2.3.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.3.1.0 = STRING: PIPENAME1
.1.3.6.1.4.1.2603.1.2.1.1.1.3.2.0 = STRING: PIPENAME2
.1.3.6.1.4.1.2603.1.2.1.1.1.3.3.0 = STRING: Fallback Pipe
.1.3.6.1.4.1.2603.1.2.1.1.1.4.1.0 = Counter64: 26783668350
.1.3.6.1.4.1.2603.1.2.1.1.1.4.2.0 = Counter64: 83313825514
.1.3.6.1.4.1.2603.1.2.1.1.1.4.3.0 = Counter64: 1073161
.1.3.6.1.4.1.2603.1.2.1.1.1.5.1.0 = Counter64: 7930753997
.1.3.6.1.4.1.2603.1.2.1.1.1.5.2.0 = Counter64: 26515688406
.1.3.6.1.4.1.2603.1.2.1.1.1.5.3.0 = Counter64: 5170836
.1.3.6.1.4.1.2603.1.2.1.1.1.6.1.0 = Counter64: 34717154487
.1.3.6.1.4.1.2603.1.2.1.1.1.6.2.0 = Counter64: 109839200694
.1.3.6.1.4.1.2603.1.2.1.1.1.6.3.0 = Counter64: 6244063
.1.3.6.1.4.1.2603.1.2.1.1.1.7.1.0 = Counter64: 20952
.1.3.6.1.4.1.2603.1.2.1.1.1.7.2.0 = Counter64: 66267
.1.3.6.1.4.1.2603.1.2.1.1.1.7.3.0 = Counter64: 24
.1.3.6.1.4.1.2603.1.2.1.1.1.8.1.0 = Counter64: 1695133
.1.3.6.1.4.1.2603.1.2.1.1.1.8.2.0 = Counter64: 4938721
.1.3.6.1.4.1.2603.1.2.1.1.1.8.3.0 = Counter64: 6162
.1.3.6.1.4.1.2603.1.2.1.1.1.9.1.0 = Counter64: 35627776
.1.3.6.1.4.1.2603.1.2.1.1.1.9.2.0 = Counter64: 101641327
.1.3.6.1.4.1.2603.1.2.1.1.1.9.3.0 = Counter64: 13126
.1.3.6.1.4.1.2603.1.2.1.1.1.10.1.0 = Counter64: 29968606
.1.3.6.1.4.1.2603.1.2.1.1.1.10.2.0 = Counter64: 88334597
.1.3.6.1.4.1.2603.1.2.1.1.1.10.3.0 = Counter64: 22760
.1.3.6.1.4.1.2603.1.2.1.1.1.11.1.0 = Counter64: 65596382
.1.3.6.1.4.1.2603.1.2.1.1.1.11.2.0 = Counter64: 189975924
.1.3.6.1.4.1.2603.1.2.1.1.1.11.3.0 = Counter64: 35886
My "basic" XML:
<interface>
<name>Get Allot Pipe information</name>
<description>Get SNMP based Pipe Information</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.2603.1.2.1.1.1.1</oid_index>
<fields>
<pipePosition>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2603.1.2.1.1.1.1</oid>
</pipePosition>
</fields>
</interface>
My "verbose query output":
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2603.1.2.1.1.1.1'
+ Located input field 'pipePosition' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2603.1.2.1.1.1.1'
+ Found item [pipePosition='1'] index: 0 [from value]
+ Found item [pipePosition='2'] index: 0 [from value]
+ Found item [pipePosition='3'] index: 0 [from value]
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
Now ... I guess those "index: 0 [from value]" aren't quite correct .. because I get "Success [1 Item, 1 Row]" and I guess I shoud be getting 3, right ?
I've tried changing the "<oid_index> and <oid> values to different ones ( basically "going up" on the MIB, removing "1"'s from the end) but no success...
Any hints ?
Regards,
Paulo Pinto
I'm trying to setup some traffic monitoring on an Allot NetEnforcer using Cacti.
To accomplish this, I was trying to follow the "Howto: from snmptable to XML Graphs (Data Query walkthrough)" ... but I've failed miserabily on the 1st step
Here's the snmtable command output:
$> snmptable -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
SNMP table: PIPE-MIB::pipeStatTable
pipePosition pipeInstancePosition pipeName pipeByteCountIn pipeByteCountOut pipeByteCountTotal pipeLiveConnections pipeNewConnections pipePacketsIn pipePacketsOut pipePacketsTotal
1 0 PIPNAME1 25938332888 7678099821 33616432709 20891 1662241 34496499 29072369 63571501
2 0 PIPENAME2 80461483612 25588656778 106050140391 66133 4831554 98258659 85408409 183667068
3 0 Fallback Pipe 1051706 5077003 6128709 13 5921 12876 22264 35140
And the snmpwalk output:
$> snmpwalk -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.2.0 = INTEGER: 2
.1.3.6.1.4.1.2603.1.2.1.1.1.1.3.0 = INTEGER: 3
.1.3.6.1.4.1.2603.1.2.1.1.1.2.1.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.2.2.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.2.3.0 = INTEGER: 0
.1.3.6.1.4.1.2603.1.2.1.1.1.3.1.0 = STRING: PIPENAME1
.1.3.6.1.4.1.2603.1.2.1.1.1.3.2.0 = STRING: PIPENAME2
.1.3.6.1.4.1.2603.1.2.1.1.1.3.3.0 = STRING: Fallback Pipe
.1.3.6.1.4.1.2603.1.2.1.1.1.4.1.0 = Counter64: 26783668350
.1.3.6.1.4.1.2603.1.2.1.1.1.4.2.0 = Counter64: 83313825514
.1.3.6.1.4.1.2603.1.2.1.1.1.4.3.0 = Counter64: 1073161
.1.3.6.1.4.1.2603.1.2.1.1.1.5.1.0 = Counter64: 7930753997
.1.3.6.1.4.1.2603.1.2.1.1.1.5.2.0 = Counter64: 26515688406
.1.3.6.1.4.1.2603.1.2.1.1.1.5.3.0 = Counter64: 5170836
.1.3.6.1.4.1.2603.1.2.1.1.1.6.1.0 = Counter64: 34717154487
.1.3.6.1.4.1.2603.1.2.1.1.1.6.2.0 = Counter64: 109839200694
.1.3.6.1.4.1.2603.1.2.1.1.1.6.3.0 = Counter64: 6244063
.1.3.6.1.4.1.2603.1.2.1.1.1.7.1.0 = Counter64: 20952
.1.3.6.1.4.1.2603.1.2.1.1.1.7.2.0 = Counter64: 66267
.1.3.6.1.4.1.2603.1.2.1.1.1.7.3.0 = Counter64: 24
.1.3.6.1.4.1.2603.1.2.1.1.1.8.1.0 = Counter64: 1695133
.1.3.6.1.4.1.2603.1.2.1.1.1.8.2.0 = Counter64: 4938721
.1.3.6.1.4.1.2603.1.2.1.1.1.8.3.0 = Counter64: 6162
.1.3.6.1.4.1.2603.1.2.1.1.1.9.1.0 = Counter64: 35627776
.1.3.6.1.4.1.2603.1.2.1.1.1.9.2.0 = Counter64: 101641327
.1.3.6.1.4.1.2603.1.2.1.1.1.9.3.0 = Counter64: 13126
.1.3.6.1.4.1.2603.1.2.1.1.1.10.1.0 = Counter64: 29968606
.1.3.6.1.4.1.2603.1.2.1.1.1.10.2.0 = Counter64: 88334597
.1.3.6.1.4.1.2603.1.2.1.1.1.10.3.0 = Counter64: 22760
.1.3.6.1.4.1.2603.1.2.1.1.1.11.1.0 = Counter64: 65596382
.1.3.6.1.4.1.2603.1.2.1.1.1.11.2.0 = Counter64: 189975924
.1.3.6.1.4.1.2603.1.2.1.1.1.11.3.0 = Counter64: 35886
My "basic" XML:
<interface>
<name>Get Allot Pipe information</name>
<description>Get SNMP based Pipe Information</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.2603.1.2.1.1.1.1</oid_index>
<fields>
<pipePosition>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2603.1.2.1.1.1.1</oid>
</pipePosition>
</fields>
</interface>
My "verbose query output":
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2603.1.2.1.1.1.1'
+ Located input field 'pipePosition' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2603.1.2.1.1.1.1'
+ Found item [pipePosition='1'] index: 0 [from value]
+ Found item [pipePosition='2'] index: 0 [from value]
+ Found item [pipePosition='3'] index: 0 [from value]
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
+ Found data query XML file at '/servers/cacti/resource/snmp_queries/allot-pipe.xml'
Now ... I guess those "index: 0 [from value]" aren't quite correct .. because I get "Success [1 Item, 1 Row]" and I guess I shoud be getting 3, right ?
I've tried changing the "<oid_index> and <oid> values to different ones ( basically "going up" on the MIB, removing "1"'s from the end) but no success...
Any hints ?
Regards,
Paulo Pinto
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Allot Netenforcer
Harm is done by the trailing .0 of each OID. I'm discussing this with the devsxeon wrote: And the snmpwalk output:
$> snmpwalk -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.2.0 = INTEGER: 2
.1.3.6.1.4.1.2603.1.2.1.1.1.1.3.0 = INTEGER: 3
Reinhard
Re: Allot Netenforcer
Hello !lvm wrote:Harm is done by the trailing .0 of each OID. I'm discussing this with the devsxeon wrote: And the snmpwalk output:
$> snmpwalk -c mypass -v 1 my.host.domain PIPE-MIB::pipeStatTable
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.2.0 = INTEGER: 2
.1.3.6.1.4.1.2603.1.2.1.1.1.1.3.0 = INTEGER: 3
Reinhard
So... have I stumble on a bug .. or there is any way around it ?
Regards,
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Please do an snmpget on the following OIDs:
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0
I want to see the results.
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1
.1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0
I want to see the results.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Here goes:
$> snmpget -c mycommunity -v 1 host.dom.dom .1.3.6.1.4.1.2603.1.2.1.1.1.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.2603.1.2.1.1.1.1.1
$> snmpget -c mycommunity -v 1 host.dom.dom .1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0
SNMPv2-SMI::enterprises.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
Regards,
$> snmpget -c mycommunity -v 1 host.dom.dom .1.3.6.1.4.1.2603.1.2.1.1.1.1.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.2603.1.2.1.1.1.1.1
$> snmpget -c mycommunity -v 1 host.dom.dom .1.3.6.1.4.1.2603.1.2.1.1.1.1.1.0
SNMPv2-SMI::enterprises.2603.1.2.1.1.1.1.1.0 = INTEGER: 1
Regards,
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Sorry, I was blind. Please refer to SNMP Query XML Syntax and search for <oid_index_parse>.
Please add to your XML file just after . This should result in indices like
1.0
2.0
3.0
These indices will now be appended to the OIDs given in the fields description. If in doubt, please post your XML file and a Verbose Query Output for more help
Reinhard
Please add
Code: Select all
<oid_index_parse>OID/REGEXP:.*\.2603\.1\.2\.1\.1\.1([0-9]*\.0)$</oid_index_parse>
Code: Select all
<oid_index>.1.3.6.1.4.1.2603.1.2.1.1.1</oid_index>
1.0
2.0
3.0
These indices will now be appended to the OIDs given in the fields description. If in doubt, please post your XML file and a Verbose Query Output for more help
Reinhard
Hello !lvm wrote:Sorry, I was blind. Please refer to SNMP Query XML Syntax and search for <oid_index_parse>.
Please addto your XML file just afterCode: Select all
<oid_index_parse>OID/REGEXP:.*\.2603\.1\.2\.1\.1\.1([0-9]*\.0)$</oid_index_parse>
. This should result in indices likeCode: Select all
<oid_index>.1.3.6.1.4.1.2603.1.2.1.1.1</oid_index>
1.0
2.0
3.0
These indices will now be appended to the OIDs given in the fields description. If in doubt, please post your XML file and a Verbose Query Output for more help
Reinhard
Now I'm getting somewhere
BTW, your regex isn't correct, as it returns the full OID as the index.
The correct one should be: <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
I'll get back here to post the results (as there seems to be other people trying to graph their Allots )
Thank you very much
Regards,
Well... I think I got it running.
Here are the 2 xml files I'm using for the allot.
Corrections/additions are welcome.
Regards,
Here are the 2 xml files I'm using for the allot.
Corrections/additions are welcome.
Regards,
- Attachments
-
- allot-pipe.xml
- Pipe data
- (3.69 KiB) Downloaded 2106 times
-
- allot-vc.xml
- VC data
- (1.67 KiB) Downloaded 2339 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Thank you for the correction. Would it be an option to post a screenshot of the graphs?xeon wrote:BTW, your regex isn't correct, as it returns the full OID as the index.
The correct one should be: <oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
Reinhard
btw
Moving this to Scripts and Templates
Installation Process
Thanks xeon for making allot working here. I am very new to cacti so can you help me on step by step installing and making xml work? Pleaaaeesssee?xeon wrote:Well... I think I got it running.
Here are the 2 xml files I'm using for the allot.
Corrections/additions are welcome.
Regards,
KeyBoarD Is MightieR ThaN ThE sWorD, iF onLy ConNecTed tO tHe InTernET..
Who is online
Users browsing this forum: No registered users and 1 guest