RE: if-mib

2010-02-09 Thread Mike Ayers
> From: "Luis Alexandre D. Brandão"
> [mailto:alexandre.bran...@webers.com.br]
> Sent: Friday, February 05, 2010 5:40 AM

> Someone has already found a solution to the problem of when the
> interfaces go up and down?

Nope.  Mine go up and down all the time, especially when I reboot.

> Each time a tun falls and rises again, a new entry appears in the
> if-MIB, and it even has the same description!

OK, that sounds *good* to me...

> I'm trying to use cacti to monitor traffic from multiple servers, but
> still could not figure out how to circumvent this problem and prevent
> it
> to always make wrong / empty graphs.

Not sure what the problem is.  PLease clarify.


Thanks,

Mike

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: if-mib

2010-02-10 Thread Dave Shield
2010/2/9 Mike Ayers :
>> Each time a tun falls and rises again, a new entry appears in the
>> if-MIB, and it even has the same description!
>
>        OK, that sounds *good* to me...

>        Not sure what the problem is.  PLease clarify.

What this sounds like to me, is a situation where the index
of the interface keeps changing, whenever the interface is
taken down and brought back up again.

Something like as follows:

   $ snmpwalk   ifName
   ifName.27 = "if0"
   # ifconfig if0 down
   # ifconfig if1 up
   $ snmpwalk  ifName
   ifName.39 = "if0"


In general, this has tended to occur with dial-up connections or tunnels,
where it's not always clear what constitutes a "different interface" (and
hence should have a different index), and when this is the continuation
of an existing interface (and hence the index should remain the same).

I've got a vague recollection of a suggestion that this behaviour should
be controlled by a configure option, but it's not immediately apparent
whether this was ever done.

The one thing that confuses me is that Luis seems to be seeing *both*
the old and new indexes.

Dave

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: if-mib

2010-02-10 Thread Thomas Anders
Dave Shield wrote:
> I've got a vague recollection of a suggestion that this behaviour should
> be controlled by a configure option, but it's not immediately apparent
> whether this was ever done.

It has been discussed, but has *not* been implemented, IIRC.

> The one thing that confuses me is that Luis seems to be seeing *both*
> the old and new indexes.

I think it's expected behaviour that the interface with the "old" index will 
not just disappear. It's supposed to have a status (down) associated with it, 
as well as counters etc.


+Thomas

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: if-mib

2010-02-10 Thread Luis Alexandre D. Brandão




2010/2/9 Mike Ayers :

  

  Each time a tun falls and rises again, a new entry appears in the
if-MIB, and it even has the same description!
  

       OK, that sounds *good* to me...

  
  
  
  
       Not sure what the problem is.  PLease clarify.

  
  
What this sounds like to me, is a situation where the index
of the interface keeps changing, whenever the interface is
taken down and brought back up again.

Something like as follows:

   $ snmpwalk   ifName
   ifName.27 = "if0"
   # ifconfig if0 down
   # ifconfig if1 up
   $ snmpwalk  ifName
   ifName.39 = "if0"
  

This
is exactly my problem, and my case is same with interfaces "tun"
There is no
workaround for this?

look that:

snmpwalk
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: sit0
IF-MIB::ifDescr.13499 = STRING: tun1
IF-MIB::ifDescr.13502 = STRING: tun0
IF-MIB::ifDescr.13503 = STRING: tun0
IF-MIB::ifDescr.13504 = STRING: tun0
IF-MIB::ifDescr.13505 = STRING: tun0
(...)
IF-MIB::ifDescr.13542 = STRING: tun0
IF-MIB::ifDescr.13543 = STRING: tun0
IF-MIB::ifDescr.13544 = STRING: tun0


There are something around 44 tuns in IF-MIB, but this server just uses
2.

Luis



--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: if-mib

2010-02-10 Thread Mike Ayers
> From: "Luis Alexandre D. Brandão"
> [mailto:alexandre.bran...@webers.com.br]
> Sent: Wednesday, February 10, 2010 2:58 AM

>   Each time a tun falls and rises again, a new entry
> appears in the
>   if-MIB, and it even has the same description!
> 
>  OK, that sounds *good* to me... 
>  Not sure what the problem is.  PLease clarify. 

[SNIP/]

>   What this sounds like to me, is a situation where the index
>   of the interface keeps changing, whenever the interface is
>   taken down and brought back up again.

[SNIP/]

> This is exactly my problem, and my case is same with interfaces "tun"
> There is no workaround for this?

[SNIP/]

> There are something around 44 tuns in IF-MIB, but this server just uses
> 2.

Ah!  So the problem is not that the new entry appears - it is that the 
old entry is not deleted when the interface goes down, yes?


Thanks,

Mike

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: if-mib

2010-02-11 Thread Luis Alexandre D. Brandão



Ah!  So the problem is not that the new entry appears - it is that the 
old entry is not deleted when the interface goes down, yes?


Thanks,

Mike

  


Yes, deleting the old one when one tun go down could fix my problem, but 
it would be even better if when the interface come back up,  it stays 
with the same index number than before.


Luis
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: If-Mib modification

2009-11-18 Thread Wes Hardaker
> On Mon, 16 Nov 2009 20:17:09 +0530, sanjaykumar 
>  said:

s> I need to modify the if-mib the way it is implemented.

You could do that if you like, and the code you'd need to modify would
be in agent/mibgroup/if-mib
-- 
Wes Hardaker
Cobham Analytic Solutions

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: IF-MIB population

2008-04-25 Thread Ron Rader
> From: Ron Rader

>   How does the agent determine the state of ifAdminStatus and
> ifOperStatus?  Is there another /proc file that reflects the state of
> these interfaces, not simply their existence?

  I wanted to update the list with my progress (answering my own
questions!) and hopefully close this thread for anybody Googling similar
issues.

  Quick recap:  my embedded Linux appliance has Ethernet IPSec
interfaces which use our proprietary dataplane IP stack, not the Linux
network drivers.  Yet I need to generate linkUp and linkDown traps for
these interfaces using our business logic.

  We have extended "ethtool" to include hooks into our dataplane, so
that it properly reports link status on the IPSec interfaces.  I
periodically sample ethtool link status and use the "ip link" command to
propagate that status through the Linux platform (and subsequently
within snmpd's IF-MIB).

  This allows a properly configured snmpd to generate linkUp/linkDown,
as expected.  It was a lot easier than I feared.

  Ron



The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by replying to the message and deleting all copies. Thank you.

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB question

2011-08-12 Thread Dave Shield
On 9 August 2011 14:17, Johan Huysmans  wrote:
> It seems that the information of the vlan interfaces (4-5-6) are
> included in the main interface (2).
> Is this correct?


The information provided by the Net-SNMP agent is essentially
whatever is reported by the underlying operating system.
   If you have any questions about how this data is organised,
then you'd probably have to direct them to the relevant O/S kernel
team.  They will know how the data is gathered, much better than
we do.

Dave

--
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB under netsnmp-5.4.2.1

2009-04-22 Thread Dave Shield
2009/4/22 sanjaykumar :
>     I am going through the IF-MIB implementation under netsnmp-5.4.2.1
> I find it read the /proc/net/dev file
> What will happen on the embedded device ?
> Does it list out all the interface present on the device ?
> Or it will read only the interface under the ethernet card ?

It will list whatever information is given in that /proc file.
Presumably all interfaces visible on the system where
the agent is running.

Unless you've done some very clever low-level programming,
I'd expect the agent to be running on the main device, rather
than on an individual ethernet card.

But embedded systems are really outside the scope of the
core development team.  We're more concerned with providing
the basic Net-SNMP toolkit and agent framework.   If you want
to know the details of how this might have be adapted for a
particular embedded system, you would be better off asking
the developers of that system, rather than here.

Dave

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB Solaris 9/SPARC

2007-07-31 Thread Dave Shield
On 30/07/07, Joe Gainey <[EMAIL PROTECTED]> wrote:
>   I have compiled and
> installed version 5.4 of the net-snmp package on a Solaris 9/SPARC system.

> --with-mib-modules="if-mib agentx ucd_snmp mibII"


> ... an snmpwalk of the interfaces oid only returns information about the 
> loopback
> interface.  I have boxes with three types of interfaces:  bge, eri, and dmfe
>
> None of these are reporting under net-snmp.  Does anyone know what I am
> doing incorrectly?

The thing that spring out is that you are using the new 'if-mib' module rewrite,
rather than the earlier 'mibgroup/interfaces' code.  It's possible
that this newer
module isn't picking up the Solaris interfaces properly.

One option would be to run configure using

--with-mib-modules="agentx ucd_snmp mibII"

or even

--with-mib-modules="agentx ucd_snmp mibII"
--with-out-mib-modules="if-mib"

and see if that works better,


A better option would be to look at the code for the 'if-mib' module, and work
out *why* your interfaces aren't being detected.  If you can provide a fix,
then this could be included in future releases of the software, and
untold multitudes would proclaim your name in thankful adoration.


It's probably also worth trying with the newly release 5.4.1 first, just to
check whether this problem has already been addressed.


Dave

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB Solaris 9/SPARC

2007-08-10 Thread Anders Persson
Hi Joe,

I just tested net-snmp 5.4.1 on a sun4u system running Solaris 9 and it 
worked for me (I used --with-mib-modules="if-mib" 
--enable-mfd-rewrites). Could you run the agent with '-D 
access:interface' and email me whatever the output is?

Thanks,
Anders

Joe Gainey wrote:
> I've seen one other post on here regarding this.  I have compiled and 
> installed version 5.4 of the net-snmp package on a Solaris 9/SPARC 
> system.  Here are the options used to when running the configure script:
>
> --with-perl-modules=no \
> --disable-embedded-perl \
> --disable-shared \
> --enable-mfd-rewrites \
> --with-default-snmp-version=2 \
> --with-sys-contact="Unknown" \
> --with-sys-location="Undefined" \
> --with-logfile=/var/snmp/log/snmpd.log \
> --with-persistent-directory=/var/snmp/private \
> --with-mib-modules="if-mib agentx ucd_snmp mibII" 
> --with-ldflags="-Bstatic"
>
> What I have been bumping my head against for too long now is that an 
> snmpwalk of the interfaces oid only returns information about the 
> loopback interface.  I have boxes with three types of interfaces:  
> bge, eri, and dmfe
>
> None of these are reporting under net-snmp.  Does anyone know what I 
> am doing incorrectly?  I would really like net-snmp to be able to 
> discover the interfaces like it has in the past.  Having to hand 
> configure the interface name type speed etc. on literally hundreds of 
> boxes is not my idea of a good time.
>
>
> Thanks in advance,
>
> Joe
>
> 
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
> Play Sims Stories at Yahoo! Games. 
> 
> 
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>   
> 
>
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>   


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB::ifInOctets does not increment

2006-08-23 Thread Dave Shield
On 23/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On a RHEL3 64-Bit box (2.4.21-40.ELsmp), IF-MIB::ifInOctets.X always returns 
> 2, and IF-MIB::ifOutOctets.X always 0.
>
> Since this works fine on another 64-Bit machine with RHEL4 
> (2.6.9-34.0.2.ELsmp) and net-snmp-5.1.2-11.EL4.6, I upgraded the RHEL3 box to 
> that net-snmp version too.

Version 5.1.2 is fairly old by now (and support for that line has
actually been closed down).
Try installing the most recent release - 5.3.1
That's seen quite a lot of work to improve 64-bit support.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB::ifSpeed shows wrong value for bonded interface

2011-08-01 Thread Dave Shield
On 23 July 2011 17:00, Dheeraj Gautam  wrote:
> On our system we added bonded interface with link-agg-layer3+4 mode and bonded
> two 1G Ethernet interfaces to the bond. But IF-MIB::ifSpeed is showing as 
> 10Mbps only.

> We are using Net-SNMP version 5.3.1

That's a very old version of the agent.
Could you possibly try with something a little more recent,
and see if the problem still appears.

Dave

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB::ifSpeed shows wrong value for bonded interface

2011-08-01 Thread Garrett Cooper
On Sat, Jul 23, 2011 at 9:00 AM, Dheeraj Gautam  wrote:
> Hi,
>
> On our system we added bonded interface with link-agg-layer3+4 mode and 
> bonded two 1G Ethernet interfaces to the bond. But IF-MIB::ifSpeed is showing 
> as 10Mbps only.
>
> IF-MIB::ifSpeed.10 = Gauge32: 1000
>
> We expected this to be shown as 2Gbps.
>
> * Did anybody else also faced this issue ?
> * Any possible reason of this issue ?
>
> We are using Net-SNMP version 5.3.1 and linux Centos EL5 with kernel 
> 2.6.18-164.15.1.el5

What does ifconfig for your interface say?
Thanks,
-Garrett

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: IF-MIB::ifSpeed shows wrong value for bonded interface

2011-08-05 Thread Dheeraj Gautam
>
>What does ifconfig for your interface say?
>
Following the output of ifconfig on my system.
0=> bonded interface
eth0 => physical interface
eth1 => slave interface

[admin@qa04 ~]# ifconfig 0
0 Link encap:Ethernet  HWaddr 00:13:CC:01:91:3B
  inet addr:10.9.1.1  Bcast:10.9.1.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
  RX packets:699 errors:0 dropped:0 overruns:0 frame:0
  TX packets:14636 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:4096
  RX bytes:85716 (83.7 KiB)  TX bytes:1814876 (1.7 MiB)

[admin@qa04 ~]# ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 00:21:5A:F6:CD:C4
  inet addr:10.157.42.157  Bcast:10.157.63.255  Mask:255.255.224.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:644117 errors:0 dropped:0 overruns:0 frame:0
  TX packets:5534 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:4096
  RX bytes:80500670 (76.7 MiB)  TX bytes:839843 (820.1 KiB)
  Interrupt:201 Memory:fd1f-fd20

[admin@qa04 ~]# ifconfig eth1
eth1  Link encap:Ethernet  HWaddr 00:13:CC:01:91:3B
  UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:4096
  RX bytes:0 (0.0 b)  TX bytes:640 (640.0 b)
  Interrupt:209 Memory:fd2f-fd30


-Dheeraj

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB::ifSpeed shows wrong value for bonded interface

2011-08-05 Thread Garrett Cooper
On Fri, Aug 5, 2011 at 11:32 AM, Dheeraj Gautam  wrote:
>>
>>    What does ifconfig for your interface say?
>>
> Following the output of ifconfig on my system.
> 0=> bonded interface
> eth0 => physical interface
> eth1 => slave interface
>
> [admin@qa04 ~]# ifconfig 0
> 0         Link encap:Ethernet  HWaddr 00:13:CC:01:91:3B
>          inet addr:10.9.1.1  Bcast:10.9.1.255  Mask:255.255.255.0
>          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
>          RX packets:699 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:14636 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:4096
>          RX bytes:85716 (83.7 KiB)  TX bytes:1814876 (1.7 MiB)
>
> [admin@qa04 ~]# ifconfig eth0
> eth0      Link encap:Ethernet  HWaddr 00:21:5A:F6:CD:C4
>          inet addr:10.157.42.157  Bcast:10.157.63.255  Mask:255.255.224.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:644117 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:5534 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:4096
>          RX bytes:80500670 (76.7 MiB)  TX bytes:839843 (820.1 KiB)
>          Interrupt:201 Memory:fd1f-fd20
>
> [admin@qa04 ~]# ifconfig eth1
> eth1      Link encap:Ethernet  HWaddr 00:13:CC:01:91:3B
>          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:4096
>          RX bytes:0 (0.0 b)  TX bytes:640 (640.0 b)
>          Interrupt:209 Memory:fd2f-fd30

Ah, that's right... linux doesn't mention the media speed in ifconfig like *BSD:

$ ifconfig re0
re0: flags=8943 metric
0 mtu 1500

options=3899
ether e0:cb:4e:01:49:32
inet6 fe80::e2cb:4eff:fe01:4932%re0 prefixlen 64 scopeid 0x5
inet 192.168.20.2 netmask 0xff00 broadcast 192.168.20.255
nd6 options=21
media: Ethernet autoselect (1000baseT )
status: active

A quick google search says that you need to use ethtool (
http://www.cyberciti.biz/faq/howto-determine-ethernet-connection-speed/
), but there are other ways to determine the necessary details by
blasting ioctls, etc.

Cheers,
-Garrett

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: IF-MIB::ifSpeed shows wrong value for bonded interface

2011-08-06 Thread Dheeraj Gautam

> A quick google search says that you need to use ethtool (
> http://www.cyberciti.biz/faq/howto-determine-ethernet-connection-speed/
> ), but there are other ways to determine the necessary details by
> blasting ioctls, etc.

Ethtool didn't provided much data. mii-tool provide some more data. it also 
says only 10Mbps. 

[admin@qa04 ~]# ethtool 0
Settings for 0:
Link detected: yes
[admin@qa04 ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x00ff (255)
Link detected: yes
[admin@qa04 ~]#

[admin@qa04 ~]# mii-tool -v eth0
eth0: negotiated 100baseTx-FD flow-control, link ok
  product info: vendor 00:50:ef, model 45 rev 0
  basic mode:   autonegotiation enabled
  basic status: autonegotiation complete, link ok
  capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
  advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
  link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
[admin@qa04 ~]# mii-tool -v 0
0: 10 Mbit, half duplex, link ok
  product info: vendor 00:01:00, model 0 rev 4
  basic mode:   10 Mbit, half duplex
  basic status: link ok
  capabilities:
  advertising:
[admin@qa04 ~]#

-Dheeraj

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB::ifSpeed shows wrong value for bonded interface

2011-08-06 Thread Garrett Cooper
On Sat, Aug 6, 2011 at 3:11 AM, Dheeraj Gautam  wrote:
>
>> A quick google search says that you need to use ethtool (
>> http://www.cyberciti.biz/faq/howto-determine-ethernet-connection-speed/
>> ), but there are other ways to determine the necessary details by
>> blasting ioctls, etc.
>
> Ethtool didn't provided much data. mii-tool provide some more data. it also 
> says only 10Mbps.

This suggests it's an OS issue and not necessarily net-snmp. If
net-snmp is using the same ioctls as *BSD, it should be getting the
data directly from the driver, which I know occurs on some versions of
FreeBSD with some drivers (case and point: bce(4) on 7.x).
HTH,
-Garrett

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IF-MIB query doesn't work on my board running net-snmp 5.7.3 - Help??

2016-11-12 Thread Bill Fenner
I think your problem is that you are trying to apply three different views
to one group:

#context sec.model sec.level match  read   write  notif
access MyROSystem "" any   noauthexact  system none   none
access MyROSystem "" any   noauthexact  intf none   none
access MyROSystem "" any   noauthexact  intfold none   none

You can only apply a single view to a given group; you have to create a
view that represents what you want that group to be able to see and map the
group to that view.

  Bill


On Wed, Nov 9, 2016 at 12:14 PM, Murali Karicheri 
wrote:

> Hi, Users,
>
> On 11/08/2016 10:18 AM, Murali Karicheri wrote:
> > Does Linux support if-mib (new version of ifTable) or do we have to use
> old version (mibII/interfaces?
> >
> >
> >From the README.agent-mibs, I gather the following:-
>
> IF-MIB
>  ifNumber.0   U $2  ~3.2O mibII/interfaces.c
>  ifTableLastChange.0  ---
>  ifTable (old)U $2  ~3.5O mibII/interfaces.c
>  ifTable (new)L 5.2 M if-mib/ifTable/*
>  ifTable (new) FOS  5.4 M if-mib/ifTable/*
>  ifXTable L 5.2 M if-mib/ifXTable/*
>  ifXTable  FOS  5.4 M if-mib/ifXTable/*
>  ifStackLastChange.0  ---
>  ifStackTable ---
>  ifTestTable  ---
>  ifRcvAddressTable---
>
>
> So it looks like ifTable (new) and ifXTable are supported in Linux. Also
> by running
> the net-snmp manually using  -Dmib_init -H, I can see IF-MIB is getting
> loaded.
>
> Some reason, a query to the target from a Linux PC returns me no MIB. I
> see following
> logs at the Linux PC:-
>
> snmpwalk -v 2c -c public  interfaces
> 2>/dev/null
> IF-MIB::interfaces = No more variables left in this MIB View (It is past
> the end of the MIB tree)
>
>
> At the target I invoked snmpd with -d option to see the packets coming in
> and going out as
> below. Also made sure the ifTable and ifXTable MIBs are loaded. Do you
> know what else is
> missing to allow querying IF-MIB..
>
> Also updated the /etc/snmp/snmpd.conf to enable access to the specific
> MIBs as below. I am
> assuming my snmpd.conf is not setup properly to allow this query to go
> through, but I can't
> figure what is wrong. I appreciate any suggestions to get this functional
> on my board.
>
> Here is my /etc/snmp/snmpd.conf
>
> #   sec.name  source  community
> com2sec paranoid  default public
> #com2sec readonly  default public
> #com2sec readwrite default private
>
> 
> # Second, map the security names into group names:
>
> #   sec.model  sec.name
> group MyROSystem v1paranoid
> group MyROSystem v2c   paranoid
> group MyROSystem usm   paranoid
> group MyROGroup v1 readonly
> group MyROGroup v2creadonly
> group MyROGroup usmreadonly
> group MyRWGroup v1 readwrite
> group MyRWGroup v2creadwrite
> group MyRWGroup usmreadwrite
>
> 
> # Third, create a view for us to let the groups have rights to:
>
> #   incl/excl subtree  mask
> view allincluded  .1   80
> view system included  .iso.org.dod.internet.mgmt.mib-2.system
> view intf included  .iso.org.dod.internet.mgmt.mib-2.31
> view intfold included  .iso.org.dod.internet.mgmt.mib-2.interfaces
>
> 
> # Finally, grant the 2 groups access to the 1 view with different
> # write permissions:
>
> #context sec.model sec.level match  read   write  notif
> access MyROSystem "" any   noauthexact  system none   none
> access MyROSystem "" any   noauthexact  intf none   none
> access MyROSystem "" any   noauthexact  intfold none   none
> access MyROGroup ""  any   noauthexact  allnone   none
> access MyRWGroup ""  any   noauthexact  allallnone
>
>
> Here is the hex dump of messages for the query.
>
> NET-SNMP version 5.7.3
>
> Received 41 byte packet from UDP: [158.218.103.164]:50197->[158.
> 218.103.63]:161
> : 30 27 02 01  01 04 06 70  75 62 6C 69  63 A1 1A 02
> 0'.public...
> 0016: 04 31 F3 56  84 02 01 00  02 01 00 30  0C 30 0A 06
> .1.V...0.0..
> 0032: 06 2B 06 01  02 01 02 05  00  .+...
>
>
> Sending 41 bytes to UDP: [158.218.103.164]:50197->[158.218.103.63]:161
> : 30 27 02 01  01 04 06 70  75 62 6C 69  63 A2 1A 02
> 0'.public...
> 0016: 04 31 F3 56  84 02 01 00  02 01 00 30  0C 30 0A 06
> .1.V...0.0..
> 0032: 06 2B 06 01  02 01 02 82  00  .+...
>
> Also verified if-mib (ifTable and ifXTable) is loaded by invoking..
>
> root@am57xx-evm:~# snmpd  -f -Le -d -Dmib_init -H
> registered debug token mib_init, 1
> mib_init: initializing: usmConf
> mib_init: initializing: iquery
> mib_init: initializing: vacm_conf
> mib_init: ini