Richard Gipps | 1 Jun 01:13 2009

RE: dows mib2c generate write routines for set commands

Hi Dave,
	 Unfortunately our marketing people want to be able to use SNMP V1 so I believe we have to use SMIv1. This is
not a problem though as I just converted the read-write objects to SMIv2 and ran it through mib2c which
generated the code I needed. Thanks again for your help.

Regards,
Richard.

Richard Gipps
Senior Product Engineer
Trio Datacom Pty Ltd
41 Aster Avenue
Carrum Downs Victoria 3201 Australia

email:   richardg <at> triodatacom.com
phone:  +61 3 8773 0100
direct:   +61 3 8773 0134
fax:       +61 3 9775 0606

www.triodatacom.com

NOTE: This message and any attached documents may contain confidential and privileged information which
is intended only for the use of the addressee(s). Distribution, copying or disclosure to any other person
or entity without the express permission of a duly authorised representative of TRIO DATACOM Group is
prohibited. If you are not the intended recipient or the person responsible to deliver it to the intended
recipient please notify the sender immediately.

-----Original Message-----
From: dave.shield <at> googlemail.com [mailto:dave.shield <at> googlemail.com] On Behalf Of Dave Shield
Sent: Thursday, 28 May 2009 6:29 PM
(Continue reading)

Dave Shield | 1 Jun 09:17 2009
Picon

Re: dows mib2c generate write routines for set commands

2009/6/1 Richard Gipps <richardg <at> triodatacom.com>:
>   Unfortunately our marketing people want to be able to use
> SNMP V1 so I believe we have to use SMIv1.

No - this is not correct.

Please see the project FAQ entry:
    Can I use SNMPv1 requests with an SNMPv2 MIB (or vice versa)?
        http://www.net-snmp.org/wiki/index.php/FAQ:General_15

There is no good reason to develop MIBs using SMIv1.

Dave

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Matej | 1 Jun 10:59 2009
Picon

Re: SNMP broadcasts

Dave, thanks.

Which app should I try for testing this? snmpget and snmpwalk seem to need a 
hostname, or am I doing something wrong?

Since I am new to the SNMP world, answers to these questions will enlighten 
my world:
How can I monitor values of DHCP-enabled agents that are connecting and 
disconnecting frequently? How did you do guys do it before this broadcasting 
option was available (and even now while it is not much tested)? Via DHCP 
assigned IP addresses' list from DHCP server?

Thanks,
Matej

----- Original Message ----- 
From: "Dave Shield" <D.T.Shield <at> liverpool.ac.uk>
To: "Matej" <matej <at> matnet.net>
Cc: <net-snmp-users <at> lists.sourceforge.net>
Sent: Friday, May 29, 2009 9:31 AM
Subject: Re: SNMP broadcasts

> 2009/5/28 Matej <matej <at> matnet.net>:
>>                               Because I simply cannot know all the IP
>> addresses of all the devices in the network (DHCP), what would be the
>> procedure to get particular values from all the devices in the network?
>
> SNMP is primarily designed for managing *known* systems, if only
> because it's typically necessary to configure suitable access controls
> on the individual hosts.
(Continue reading)

Dave Shield | 1 Jun 11:31 2009
Picon

Re: SNMP broadcasts

2009/6/1 Matej <matej <at> matnet.net>:
> Which app should I try for testing this? snmpget and snmpwalk seem to need a
> hostname, or am I doing something wrong?

They ask for a destination address, yes.
But the NEWS file states
   "limited support for UDPv4 broadcast addresses"

So try running "snmpget" with a broadcast address as the destination "host".

Note that I've never tried this, but it seems worth a whirl.
I'd also suggest that you start by working with "snmpget"
since that works with a single request.   I wouldn't move onto
the more complex "snmpwalk" until you're happy that a
broadcast snmpget works.

> How can I monitor values of DHCP-enabled agents that are connecting and
> disconnecting frequently? How did you do guys do it before this broadcasting
> option was available (and even now while it is not much tested)? Via DHCP
> assigned IP addresses' list from DHCP server?

You're asking the wrong person.
Firstly. the systems we have here use fixed IP addresses
(allocated via DHCP, but fixed nonetheless).   So I personally
don't need to worry about managing "unknown" systems.

Secondly, when do think I ever find the time to actually *use* SNMP
anyway?   I seem to spend every waking moment either answering
questions on the lists, or (occasionally) working on the code!

(Continue reading)

holger.klaas | 1 Jun 17:27 2009

5.3.3.rc2 library version

Hi,

I just noticed that the library version number in 5.3.3.rc2 decremented
compared to v5.3.2.3:

net-snmp-5.3.3.rc2/snmplib/.libs/libnetsnmp.so.10.0.3
net-snmp-5.3.2.3/snmplib/.libs/libnetsnmp.so.10.0.4

I would normally expect it to increment. Feature or bug?

Regards,

Holger

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

PoWah Wong | 1 Jun 17:49 2009
Picon

mib definition for the number of active sessions for each user


I want to keep track of the total number of active sessions per user.
e.g. 7 for user1, 4 for user2, ...
How to define my mib to return each user name and its corresponding total number of active sessions?

      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Robert Story | 1 Jun 22:35 2009

Net-SNMP 5.3.3 released

This is a maintenance release of the 5.3.x line.

This message contains a list of specific bugs that have been fixed, and patches
that have been applied in released versions.  Please see the NEWS file for
a summary of the major changes, and the ChangeLog file for a comprehensive
listing of all changes made to the code.

*5.3.3*

    snmplib:
      - Change CONTAINER_INSERT to not do partial inserts in containers
        with multiple indices when one insert fails.
      - Corrected registering of multiple premib config handlers so that
        all of them get registered as premib handlers as opposed to the
        earlier behaviour where they always got registered as normal
        config items.
      - [BUG 1795840]: Signed 32-bit truncation logged as debug message
         rather then error.
      - [BUG 1866655]: Handle parsing invalid OID subidentifiers
      - [BUG 1958041]: Ensure IDs are not truncated.
      - [BUG 2027834]: Extend string print buffer by the minimum necessary.
      - [PATCH 2003450]: Fix a couple of 64-bit problems.
      - [PATCH 2043018]: fix recvfrom hangs
      - [PATCH 2258229]: Remove misleading comment
      - [PATCH 2479700]: Fix zoned IP address used as table indices
      - [PATCH 2492377]: Fix typo/bug in snmp_enable_callback()
      - [PATCH 2538169]: Prevent infinite retries for an invalid error-index.
      - [PATCH 2689362]: Fix handling of IPv6 hostnames.
      - [PATCH 2713841]: Fix runtime errors triggered by high-ASCII chars
      - fix potential buffer overflow in sprintf for TCP/IPv6
(Continue reading)

Ury Stankevich | 2 Jun 12:40 2009
Picon

agentx getnext handling

hi all,

a have a agentx subagent which register X.1 .. X.20 region.
and i have a `hole` ( only X.10 ... X.20 have values)

so if i use `snmpwalk X.1` to fetch a tree
client-agentx will trying to get reply:
get X.1
getNext X.1
getNext X.2
...
getNext X.10
now my handler replies with X.10 value
but in `handle_subagent_response` reply is filtered since (** scope
violation **)
and master-agentx going to repeat search starting from X.2
and agentx-client will iterate again up to X.10

can we avoid excessive looping in agentx-client ?
can we have a `hole` in registration region like a have ?

ps:
registration done via
netsnmp_handler_registration_create/netsnmp_register_handler
and range_subid/range_ubound specification.

net-snmp version - 5.3.2.2-5 from redhat.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
(Continue reading)

Shabala Deshpande | 3 Jun 09:29 2009
Picon

mibII/mta_sendmail.c:open_sendmailst: problem.

Hi,

I have Net-SNMP 5.3.2.2 that came along with the CentOS 5.3. I am trying to run my agent but when i check the log I get the following:

# cat /var/log/snmpd.log
mibII/mta_sendmail.c:open_sendmailst: could not guess version of statistics file "/var/log/mail/statistics"
Turning on AgentX master support.


Also when I do  a snmpwalk over , I get the following:

# snmpwalk -v 2c -c public 127.0.0.1 1.3.6.1.4.1.XXXXX
SNMPv2-SMI::enterprises.XXXXX = No more variables left in this MIB View (It is past the end of the MIB tree)


Is this related to Centos 5.3 kernel version 2.6 problem?? Or any access control Information missing?  Because I have the same agent code running on the Red Hat kernel version 2.4 .



Thanks,

Shabala

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
ravi singh | 3 Jun 13:10 2009
Picon

snmpwalk not working on ipv6-host(but snmpd is started and its showing its pid)

i have reinstalled my net-snmp-5.4.2.1 on ubuntu-8.04 hardy( and its
only ipv6 host, address assigned to it is 2001:468::3/64 on eth0
interface and eth1 im using for dhcp-internet connection). Sir, i have
new problem, my snmpd is start now and i am also getting its pid and
port no.(as 161) but im not getting the result of snmpwalk (both for
localhost and remotehost). i run the following commands--
#snmpwalk -v2c -c public localhost system ; on local host
output-timeout no response from localhost
#snmpwalk -v2c -c public 192.168.122.3 system ; on remotehost(
remotehost is having ip 192.168.1.2 and its ipv4 only machine. im
doing the project ipv4 to ipv6 migration and vice versa. im using 3
pc's here ist is ipv6 pc(add-2001:468::3/64) , 2nd pc is ipv4 only
(add-192.168.1.2) and 3rd one is nat-pt box which maps the ipv4
address corresponds to the ipv6 here in the case it maps 192.168.122.3
to the 2001:468::3/64. add. of nat-pt is 192.168.1.1)
output-timeout no response from 192.168.122.3

im attaching my /etc/default/snmpd , /etc/snmp/snmpd.conf and
/usr/local/share/snmp/snmpd.conf( snmpd.conf file is same for
/etc/snmp and /usr/local/share/snmp directories). please tel me what
changes should i do in my default and snmpd.conf files so that my
snmpwalk starts working. Please help me soon.

Thanks Alot
-------------------------------------------------
snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
# The following check up on various aspects of a host.

# proc: Check for processes that should be running.
# proc NAME [MAX=0] [MIN=0]
#
# NAME: the name of the process to check for. It must match
# exactly (ie, http will not find httpd processes).
# MAX: the maximum number allowed to be running. Defaults to 0.
# MIN: the minimum number to be running. Defaults to 0.
#
# The results are reported in the prTable section of the UCD-SNMP-MIB tree
# Special Case: When the min and max numbers are both 0, it assumes
# you want a max of infinity and a min of 1.

proc mountd
proc ntalkd 4
proc sendmail 10 1

# disk: Check for disk space usage of a partition.
# The agent can check the amount of available disk space, and make
# sure it is above a set limit.
#
# disk PATH [MIN=100000]
#
# PATH: mount path to the disk in question.
# MIN: Disks with space below this value will have the Mib's errorFlag set.
# Can be a raw byte value or a percentage followed by the %
# symbol. Default value = 100000.
#
# The results are reported in the dskTable section of the UCD-SNMP-MIB tree

disk / 10000

# load: Check for unreasonable load average values.
# Watch the load average levels on the machine.
#
# load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
#
# 1MAX: If the 1 minute load average is above this limit at query
# time, the errorFlag will be set.
# 5MAX: Similar, but for 5 min average.
# 15MAX: Similar, but for 15 min average.
#
# The results are reported in the laTable section of the UCD-SNMP-MIB tree

load 12 14 14
###########################################################################
# SECTION: System Information Setup
#
# This section defines some of the information reported in
# the "system" mib group in the mibII tree.

# syscontact: The contact information for the administrator
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysContact.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: contact_string

#syscontact G. S. Marzot <gmarzot <at> marzot.net>

syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <root <at> localhost> (configure /etc/snmp/snmpd.local.conf)

#syslocation bhwon.pyroworks.co.kr No.1
#syscontact Root <bhwon <at> pyroworks.co.kr> (configure /etc/snmp/snmp.local.conf)

###########################################################################
# SECTION: Extending the Agent
#
# You can extend the snmp agent to have it return information
# that you yourself define.

# exec: run a simple command using exec()
# arguments: [oid] name /path/to/executable arguments

exec echotest /bin/echo hello world

###########################################################################
# SECTION: Agent Operating Mode
#
# This section defines how the agent will operate when it
# is running.

# agentaddress: The IP address and port number that the agent will listen on.
# By default the agent listens to any and all traffic from any
# interface on the default SNMP port (161). This allows you to
# specify which address, interface, transport type and port(s) that you
# want the agent to listen on. Multiple definitions of this token
# are concatenated together (using ':'s).
# arguments: [transport:]port[ <at> interface/address],...

agentaddress udp:161,udp6:161

###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.

# rwuser: a SNMPv3 read-write user
# arguments: user [noauth|auth|priv] [restriction_oid]

#rwuser initial priv

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

#rocommunity public

rocommunity6 public

#
# Unknown directives read in from other files by snmpconf
#
#com2sec readonly default public
com2sec6 readonly default public
#com2sec local 127.0.0.1 public
com2sec6 local localhost public
com2sec6 mynetwork 2001:468::3 public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyRWGroup usm initial
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
group MyRWGroup v1 any
group MyRWGroup v2c any
view all included .1 80

view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
access MyROSystem "" any noauth exact system none none
createUser initial MD5 auth_pass DES priv_pass
----------------------------------------------------
Below is the /etc/default/snmpd
# This file controls the activity of snmpd and snmptrapd
# MIB directories. /usr/share/snmp/mibs is the default, but
# including it here avoids some strange problems.
export MIBDIRS=/usr/share/snmp/mibs

# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid
-c /etc/snmp/snmpd.conf'
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid
udp6:161 udp:161'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=yes
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
# create symlink on Debian legacy location to official RFC path
SNMPDCOMPAT=yes
-----------------------------------------------------
cat /var/log/snmpd.log
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the snmpd.conf
file for this agent.
NET-SNMP version 5.4.2.1
I was getting some problems in attaching my files so i mentioned those
file here only.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Gmane