Re: Looking for a MIB pretty printer

2010-02-05 Thread Dave Shield
On 5 February 2010 14:20, Christopher Nelson
 wrote:
>  I have a MIB description and I want
> to print a OID tree from it without having a device to
> reference/access with snmpwalk or whatever.  If there a Net-SNMP tool
> for that?

snmptranslate

Dave

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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


calling read_all_mibs() to reload MIB files

2010-02-05 Thread Sam V


Hi there,
I'm calling read_all_mibs() to re-read all mibs on run time in case newer new 
mib files are added or even an existing MIB file is updated. This way I don't 
have to restart my application. It is important for my not to restart my 
application even if MIB files are modified. This only detects new MIB files but 
it does not detect changes in existing MIB file. Does anyone know why? Is there 
a problem that possibly has been fixed?

Thanks.
 

  
_

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: MIB pretty printer

2010-02-05 Thread Brandon Wigfield
Chris,

Look at http://www.net-snmp.org/docs/man/snmptranslate.html

Specifically
-Tp Print a graphical
tree, rooted at the specified OID.

Hope that helps,

Brandon

On Fri, Feb 5, 2010 at 9:54 AM, Chris Nelson  wrote:

> I *swear* I've done this with Net-SNMP tools before but I can't find
> the right program or options now.  I have a MIB description and I want
> to print a OID tree from it without having a device to
> reference/access with snmpwalk or whatever.  If there a Net-SNMP tool
> for that?  If not, can you recommend something?  Thanks.
>
>
-- 
Brandon Wigfield
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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


MIB pretty printer

2010-02-05 Thread Chris Nelson
I *swear* I've done this with Net-SNMP tools before but I can't find
the right program or options now.  I have a MIB description and I want
to print a OID tree from it without having a device to
reference/access with snmpwalk or whatever.  If there a Net-SNMP tool
for that?  If not, can you recommend something?  Thanks.

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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


if-mib

2010-02-05 Thread Luis Alexandre D. Brandão
Someone has already found a solution to the problem of when the
interfaces go up and down?
Each time a tun falls and rises again, a new entry appears in the
if-MIB, and it even has the same description!
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.

from snmp walk,
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth2
IF-MIB::ifDescr.3 = STRING: eth0
IF-MIB::ifDescr.4 = STRING: eth1
IF-MIB::ifDescr.5 = STRING: sit0
IF-MIB::ifDescr.6 = STRING: ppp0
IF-MIB::ifDescr.7 = STRING: tun0
IF-MIB::ifDescr.8 = STRING: tun1
IF-MIB::ifDescr.9 = STRING: ppp0
IF-MIB::ifDescr.10 = STRING: tun0
IF-MIB::ifDescr.11 = STRING: tun1

Luis


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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


if-mib

2010-02-05 Thread Luis Alexandre D. Brandão
Someone has already found a solution to the problem of when the 
interfaces go up and down?
Each time a tun falls and rises again, a new entry appears in the 
if-MIB, and it even has the same description!
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 creat wrong / empty graphs.

from snmpwalk
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth2
IF-MIB::ifDescr.3 = STRING: eth0
IF-MIB::ifDescr.4 = STRING: eth1
IF-MIB::ifDescr.5 = STRING: sit0
IF-MIB::ifDescr.6 = STRING: ppp0
IF-MIB::ifDescr.7 = STRING: tun0
IF-MIB::ifDescr.8 = STRING: tun1
IF-MIB::ifDescr.9 = STRING: ppp0
IF-MIB::ifDescr.10 = STRING: tun0
IF-MIB::ifDescr.11 = STRING: tun1


Luis

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: HOST-RESOURCE::hrSWInstalledTable

2010-02-05 Thread Raphaël 'SurcouF' Bordet
Le vendredi 05 février 2010 à 11:15 +, Dave Shield a écrit :
> On 5 February 2010 00:00, Raphael SurcouF Bordet  wrote:
> > As I known, default support of host/hrswinstalled in Net-SNMP has been
> > designed for RPM only.
> 
> Where did you get that impression?
> The hrSWInstalledTable includes support for RPM (Linux), pkginfo (Solaris),
> depots (HP-UX) and software packages (FreeBSD)
>The newer re-write in 5.5 also includes support for Mac OS X
> 
> It has never been RPM-only.

You should've right. There is a long time I haven't test other support.


Regards, 



-- 
Raphaël 'SurcouF' Bordet 


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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


Looking for a MIB pretty printer

2010-02-05 Thread Christopher Nelson
I *swear* I've done this with Net-SNMP tools before but I can't find
the right program or options now.  I have a MIB description and I want
to print a OID tree from it without having a device to
reference/access with snmpwalk or whatever.  If there a Net-SNMP tool
for that?  If not, can you recommend something?  Thanks.

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: how to use a single session for communicating with multiple devices

2010-02-05 Thread Venkat V
Hi,

I would like to know whether this fature (Using a single session to
communicate with multiple devices) is implemented now. The main
constraint is since each session is using one port, we are finally
ending up using many ports on the target system and no user likes
this.

I got the below history from the mail archive.

>>
>>
Re: how to use a single session for communicating with multiple devices

Wes Hardaker
Wed, 30 Nov 2005 10:41:05 -0800

> On Wed, 30 Nov 2005 12:17:38 +, Dave Shield <[EMAIL PROTECTED]> said:
>> We've wanted to make this possible, but at this time it's not I'm afraid.
Dave> Now logged in the bug tracker.
Dave> (Though it might be better as a Feature Request, I suppose)
It's definitely a feature not a bug.  A needed feature, but a new
feature non the less

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: Implementing an agent

2010-02-05 Thread Dave Shield
2010/2/5 Jordi Gutiérrez Hermoso :
> Does anyone have sample code on how to implement several tables with
> shared and multiple indices in a subagent?

If you've got a common data structure for the underlying contents of
these tables, you can actually implement the tables independently.
It doesn't matter if there's no explicit linkage between the tables - if
they are all driven by a shared underlying set of data, they will
automatically reflect the linked indexes.


You haven't said anything about where this underlying data will
come from, and how the tables will be populated/maintained.
But you'll probably need a set of shared routines to handle this
functionality (either creating a entry dynamically via SET requests,
or loading a cached version from some underlying subsystem).

The processing of GET* requests for each individual table should
then follow naturally from this shared data set..   So you can actually
develop the implementation one table at a time.

Dave

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: HOST-RESOURCE::hrSWInstalledTable

2010-02-05 Thread Dave Shield
On 5 February 2010 00:00, Raphael SurcouF Bordet  wrote:
> As I known, default support of host/hrswinstalled in Net-SNMP has been
> designed for RPM only.

Where did you get that impression?
The hrSWInstalledTable includes support for RPM (Linux), pkginfo (Solaris),
depots (HP-UX) and software packages (FreeBSD)
   The newer re-write in 5.5 also includes support for Mac OS X

It has never been RPM-only.

Dave

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: Compilation error

2010-02-05 Thread Dave Shield
On 4 February 2010 20:24, Sylvain Dery  wrote:
> I'm having the following compilation error:
>
>
> gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib
> -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -c host/hr_swinst.c  -fPIC
> -DPIC -o host/.libs/hr_swinst.o
> host/hr_swinst.c: In function ‘var_hrswinst’:
> host/hr_swinst.c:480: error: ‘int_32’ undeclared (first use in this function)
> host/hr_swinst.c:480: error: ‘rpm_data’ undeclared (first use in this 
> function)


> I'm trying to install net-snmp-5.4.2.1 on Fedora 11.

The Linux hrSWInstalledTable code was written for an earlier version of RPM.
It does not support the system that is used in Fedora 11.

The simplest short-term workaround would be to omit the host/hr_swinst
module when compiling the agent.
   Or you could copy the newer host/hrSWInstalledTable code (plus the
"data_access" directory) from the 5.5 source tree.   I haven't tried that
myself, but it ought to work.

Dave

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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


Compilation error

2010-02-05 Thread Sylvain Dery





Hello,

 

I'm having the following compilation error:

 



gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g 
-O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -c host/hr_swinst.c  -fPIC -DPIC 
-o host/.libs/hr_swinst.o
host/hr_swinst.c: In function ‘var_hrswinst’:
host/hr_swinst.c:480: error: ‘int_32’ undeclared (first use in this function)
host/hr_swinst.c:480: error: (Each undeclared identifier is reported only once
host/hr_swinst.c:480: error: for each function it appears in.)
host/hr_swinst.c:480: error: ‘rpm_data’ undeclared (first use in this function)
make[2]: *** [host/hr_swinst.lo] Error 1
make[2]: Leaving directory `/home/sylvain.dery/net-snmp-5.4.2.1/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/sylvain.dery/net-snmp-5.4.2.1/agent'
make: *** [subdirs] Error 1

Some of you already experienced this issue.  Any help would be appreciated.

I'm trying to install net-snmp-5.4.2.1 on Fedora 11.  I previously installed 
successfully the 5.5 version, which I removed using the "make uninstall", "make 
clean" and "make distclean" commands.  The config summary is as follow:

-
Net-SNMP configuration summary:
-

  SNMP Versions Supported:1 2c 3
  Net-SNMP Version:   5.4.2.1
  Building for:   linux
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules: usm
  Agent MIB code: default_modules =>  snmpv3mibs mibII ucd_snmp 
notification notification-log-mib target agent_mibs agentx disman/event 
disman/schedule utilities host
  Embedded Perl support:  disabled
  SNMP Perl modules:  building -- not embeddable
  SNMP Python modules:disabled
  Authentication support: MD5 SHA1
  Encryption support: DES AES

-

Regards,

Sylvain

  
_

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: snmp module help

2010-02-05 Thread Dave Shield
[ First - *please* don't mail me privately, without copying
 any responses to the mailing list.  I don't have the time
 or inclination to offer private, unpaid, SNMP consultancy.
 Keep discussions to the list, where others can both learn
 and offer advice.  Thanks.   ]



On 4 February 2010 12:10, astal vista  wrote:
>>  Did you compile from source, or install a pre-compiled binary.
> I have compile from source directory.
> I have installed net-snmp using YUM.

Ummm... those answers feel contradictory.

If you installed using yum, then this will be a pre-compiled binary.
If you compiled from source, then this wouldn't use yum.

If you compiled from source, then how did you run "configure"?

Note that it's usually a mistake to try and combine a pre-compiled
version with one you compile yourself.   Use one or the other - don't
try to mix them.


Dave

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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: snmp module help

2010-02-05 Thread Dave Shield
On 5 February 2010 07:51, astal vista  wrote:
> Where can i find snmpdtrap.conf file.

You create this yourself.
   (Either manually, or using 'snmpconf')
See "snmptrapd.conf(5)"

It goes in the same directory as snmpd.conf

Dave

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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