RE: Please help me in understanding the strange behaviour with my subagnet.

2014-07-21 Thread karteek.challa
Please ignore my previous query... This is the latest one.

I have a strange behavior with the subagent. Trying to understand from past 2 
months. Solving this issue is very important to me. Please help friends.

My subagent is receiving huge number of continuous snmpget and snmpset requests.

At a certain point I noticed the below observation from the snmp agent log.

Agent received 4 continuous snmpget requests with var-bind of 
20 items in each snmpget request for my subagent. After the agent sends the 
packet to subagent, the response is getting delayed for some time. Responses 
for first, second and third are received by agent after 2 to 3 timeouts. This 
can be the reason as the subagent is receiving huge requests. But for the 4th 
request the agent didn't receive any response before 5 timeouts (max retries 
count is 5). For this request, in the tcpdump, I can see the response as 
"noSuchInstance" for all 20 snmpget requests.

This is repeated 3 times.

Then for some snmpget requests,  I can see "noSuchObject" in the get-response 
for these requests in the tcpdump. From the agent log info, I can find the 
below information for these snmpget requests.

handler:calling: main handler bulk_to_next
handler:calling: calling handler bulk_to_next for mode GET
handler:returned: handler bulk_to_next returned 0
handler:calling: calling handler null for mode GET
handler:returned: handler null returned 0

At the same time, for a snmpset request, I've seen "notWritable" error in the 
response packet in the tcpdump. For this particular packet, I found the below 
information in the agent log

agent_set: doing set mode = 0 (SET_RESERVE1)
KTK netsnmp_call_handlers: setting SNMP_ERR_NOTWRITABLE...
agent_set: did set mode = 0, status = 17
agent_set: doing set mode = 4 (SET_FREE)
KTK netsnmp_call_handlers: setting SNMP_ERR_NOTWRITABLE...
agent_set: did set mode = 4, status = 17

My debug statement KTK netsnmp_call_handlers: setting SNMP_ERR_NOTWRITABLE... 
is placed in the net-snmp code as below

case MODE_SET_RESERVE1:
case MODE_SET_RESERVE2:
case MODE_SET_ACTION:
case MODE_SET_COMMIT:
case MODE_SET_FREE:
case MODE_SET_UNDO:
if (!(reginfo->modes & HANDLER_CAN_SET)) {
for (; requests; requests = requests->next) {
snmp_log(LOG_INFO, "KTK netsnmp_call_handlers: setting 
SNMP_ERR_NOTWRITABLE...\n");
netsnmp_set_request_error(reqinfo, requests,
  SNMP_ERR_NOTWRITABLE);
}
return SNMP_ERR_NOERROR;


I am not able to understand this behavior. Anything wrong with my subagent?? 
Please help me. I am struggling to solve this issue from past 2 months. Please 
help me friends.


Best Regards,
Karteek

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
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: please help regarding snmptrap

2012-08-16 Thread Wes Hardaker
Mahmoud Momtazpour  writes:

> Does anyone know how to debug it when snmptrap and snmptrapd do not 
> work? snmptrapd doesn't show anything! this is my 3rd post, but no one 
> seems to be interested to help.

You'd need to describe what you're doing before we could help.  Have you
configured snmptrapd.conf?

http://www.net-snmp.org/wiki/index.php/Snmptrapd
-- 
Wes Hardaker
SPARTA, Inc.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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: please help me

2010-08-03 Thread Dave Shield
On 3 August 2010 12:53, Eman Saber  wrote:
> i need to set IP address using netsnmp

> i know it is not writable but how can i do that (change object value) i need
> answer yes or not and if yes how can i do this??

The answer is NO.

I've already told you this.
Repeating the question will not change the answer.



> ipAdEntAddr OBJECT-TYPE
>SYNTAXIpAddress
>MAX-ACCESS read-only<== change it to read-write

That is not possible.
IP-MIB is an Internet standard.
You cannot change international standards off your own bat
simply because you don't like what they say.


Dave

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
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: Please help me to fix a issue:Reason: authorizationError (access denied to that object)

2010-05-17 Thread Dave Shield
On 15 May 2010 14:48, 德顺 孟  wrote:
>  Now I add a user to the system:
>
> net-snmp-config --create-snmpv3-user -ro -a MD5 -A "" fff

I'm no expert on SNMPv3 security, but I've got a feeling that repeated
patterns in SNMPv3 passwords are a Bad Idea.

> Then ,I run the bellow cmd :
>
> snmpget -v 3 -u fff -l authNoPriv -a MD5 -A   192.168.216.88
> 1.3.6.1.2.1.1.3

Did you re-start the agent before trying this command?
You need to signal the agent to re-read the config file,
before it takes note of your changes.

(In fact, I think you're meant to run the create-snmpv3-user while the
agent is not running at all)

Dave

--

___
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: please help

2010-02-04 Thread Mike Ayers
> From: zahra mehdipour [mailto:zmehdip...@msn.com]
> Sent: Wednesday, February 03, 2010 3:38 AM

> I have installed net-snmp-5.1.4.2 on embedded linux system(2.6.30). I
> have made the configuration file and saved it in
> /usr/etc/snmp/snmpd.conf. When I run snmpd -c
> /usr/etc/snmp/snmpd.conf , I encountered with this message:
> SEGMENTATION FAULT, I do not know what can I do? please help me, please!

My guess would be that the package you installed wants libraries that 
are not on your embedded system.  Version 5.1.4.2 is pretty old.  I suggest you 
download the latest (5.5) and compile it for your target system.


HTH,

Mike

--
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: Please help me to get sub agents working.

2009-12-01 Thread Dave Shield
2009/11/30 Duo Maxwell :
> I am having trouble getting a subagent to work.
> I hope this is not one of thoes cases where the answer is
> obvious and I have complete overlooked it.

Probably not - getting new MIB modules to work
can often be tricky.

The best starting point is probably the FAQ entry
Why doesn't my new MIB module report anything?

This gives some guidance as to how to pinpoint
where the problem actually lies.


Other suggestions:
  - try compiling your module directly into the agent
(rather than via a subagent).   That way you can
ensure that the code is working.   You can always
re-compile the same module to run as a subagent
later, for active deployment with a standard agent.


> 4)Testing
> When using an SNMP manager connected to "localhost"
> -Asking for the variable "1.3.6.1.2.1.1.1.0" does return the
> "sysDescription". The SYSTEM tree does work.
> -Asking for the variable "1.3.6.1.4.1.82.2" which belongs to the subagent,
> returns null.

What about information *outside* the system group
(but still provided by themain agent)?


> snmpget -v1 -c public localhost PS-TEST6-MIB::psTest6MIB
> returns
> "Eror In packet"
> "Reason: (noSouchName) There is no such variable in this MIB"
> "Failed object: PS-TEST6-MIB::psTest6MIB"

That will always fail - you forgot the .0 instance subidentifier.

> snmpwalk -v1 -c public localhost PS-TEST6-MIB:psTest6MIB
> returns
> "End Of MIB"

I'd expect to see Net-SNMP values here.
That looks like the access control settings might be wrong.
  (hence asking about non-system information above)



> Using
> "snmpd -DpsTest6MIB" to start the agent
> returns some errors

Is this the main agent, or your subagent?



> 5)Confirgation
> I added
> rocommunity public 192.168.1.0/16
> to the configuration.

Is there any other access control in the config file?

 after that didn't worked I also added the following
> lines
>com2sec readonly default public
>com2sec readwrite default private
> That still didnt work

No - it wouldn't.   The com2sec/view/group/access
directives work in combination - you'd need all four.
Just one bit isn't sufficient.

But I'd forget about that style - the rocommunity
approach is much simpler.

Try with *just*

rocommunity public
master agentx

in your config file.



> psTest6MIB MODULE-IDENTITY
>     LAST-UPDATED "991209Z"
>     ORGANIZATION "Organization name goes here"
>     CONTACT-INFO "Contact info goes here"
>     DESCRIPTION "Attempt number 6 to get sub agents working"
>     ::= { enterprises 82 }

Are you working for Network Computing Devices ?
if not, then you shouldn't really be using their enterprise number.

There's an OID (NET-SNMP-MIB::netSnmpPlaypen) that we
provide specifically for testing purposes.   If you don't have an
OID of your own, then I suggest you use this as the root of your MIB.

Dave

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
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: Please help! disk usage no effecting

2007-09-18 Thread yin zhang
>
> Hi Net-SNMP gurus,
>
>I have installed the net-snmp5.4 in redhat AS4.0, and I copied the
> example.conf file(in the install package) to the /usr/local/share/snmp/,
> and renamed it to snmpd.conf.
>
> Then I added something to the snmpd.conf for monitoring the disk
> space, the snmp.conf is below :
>
>  …
>
> disk / 30%
>
> …
>
> authtrapenable 1
>
> trapcommunity   whatever
>
> trap2sink   localhost:162
>
> defaultMonitors  yes
>
>
>
> and the snmptrapd.conf in /var/net-snmp/ is like this :
>
> authcommunity execute|log|net whatever
>
> traphandle .1.3.6.1.6.3.1.1.5.1page_me up
>
> traphandle .1.3.6.1.4.1.2021.251.1   page_me up
>
> traphandle .1.3.6.1.4.1.2021.251.2   page_me down
>
> traphandle default   log_it
>
>
>
> then I run the snmptraped in the localmachine the command is :
>
> /usr/local/sbin/snmptrapd -d -f �CLo
>
>
>
> Last I run the snmpd :
>
> /usr/local/sbin/snmpd
>
>
>
> I can received the trap info in the server :
>
> 2007-09-18 16:42:02  [UDP: [ 127.0.0.1]:32788]:
>
> DISMAN-EVENT-MIB:ysUpTimeInstance = Timeticks: (57) 0:00:00.57
> SNMPv2-MIB:nmpTrapOID.0 = OID: SNMPv2-MIB::coldStart  SNMPv2-MIB:
> nmpTrapEnterprise.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
>
> sh: line 1: page_me: command not found
>
>
>
>
>
> but there is not disk error info ,I run the df command the / is :
>
> Filesystem1K-blocks  Used Available Use% Mounted on
>
> /dev/hda2  18564112  16374796   1246304  93% /
>
>
>
> Is just 7% available, I set is 30%,but there is no error trap send .
>
> Thank you!
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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: Please Help: how to use netsnmp_get_timed_stash_cache_handler

2007-06-07 Thread Dave Shield
On 23/05/07, Lothar Werzinger <[EMAIL PROTECTED]> wrote:
> Will the code example below compile with the upcoming 5.4.1 release?

It should do.
The absence of the stash_cache header file was clearly an oversight,
so I've just tweaked the installation setup to rectify this.
   The 5.4.1.pre2 tarball will still be broken (since that was released
a few days ago), but pre3 and above should be fixed.

Dave

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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: Please help with table registration in netsnmp.

2007-05-11 Thread Dave Shield
On 11/05/07, cpnr Reddy <[EMAIL PROTECTED]> wrote:
> Tables are registered as follows:
>
>   1.my_handler = netsnmp_create_handler_registration(buf,
>  my_table_handler,
>  my_table_oid,
>  table_oid_len,
>  HANDLER_CAN_RWRITE);
>  snmp_varlist_add_variable(&table_info->indexes,
>table_oid, table_oid_len,
>ASN_UNSIGNED,/* index: someTable */
>(char * ) &index1, 4 );

That looks unusual.
I would expect this to be simply:

 netsnmp_table_helper_add_indexes(table_info, ASN_UNSIGNED, 0);

And what is the value of 'table_oid'?

>table_info->min_column = range_subid;
>table_info->max_column = upperbound;
>
> netsnmp_register_table(my_handler, table_info)




> Example for the above scenario is:
>
>  The following example snmpget is quering  one object from
> "RFC1213-MIB:ifTable" and another from "RFC1213-MIB:ifRouteTable"
>
>  snmpget -v3 -u tester -a MD5 -A user1  -l authNopriv   localhost
> 1.3.6.1.2.1.2.2.1.1.101  1.3.6.1.2.1.4.21.1.1.172.20.3.0

And how does this relate to your registration code?
Which table(s) are registered in this way, and which are handled by
other MIB modules?



> Case 2: When registered the tables with OID upto table position:
>
> The APIs are as above only, except for the table_oid_len in
> netsnmp_create_handler_registration() which is less 1 than the above.

But you haven't said what the first registration OID was,
so that doesn't really help us.

If you are registering a table using one of the netsnmp_register_table*()
routines, then you must supply the OID of the 'xxxTable' MIB object - not
the 'xxxEntry' object or one of the column objects.

So for the two tables you mention above, the registrations should use
the OIDs  .1.3.6.1.2.1.2.2   and  .1.3.6.1.2.1.4.21  respectively.

Dave

PS: Please do *not* send the same query to both mailing lists.
   Choose one or the other.   Thanks

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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: Please help. Really stuck creating access for new snmp users

2006-11-06 Thread Dave Shield
On 06/11/06, Jordi Farrés Saderra <[EMAIL PROTECTED]> wrote:
> Now and I try to create new rw user using next command sequence:
[snip]
> In above sequence you can see no error messages. All seems Ok

Fair enough.
The next thing to check is that these settings *have* been accepted by
the agent.
Try walking the 'vacmSecurityToGroupTable', 'vacmAccessTable' and
'usmUserTable'  (using the "initial" user that you know works).

Can you see the newly created entries?
How do they compare with the original entries?

Try walking the "vacmViewTreeFamilyTable'
What are the settings for the view "all"?

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: Please help - bandwidth usage

2006-04-21 Thread Bossi, Scott
It might rollover more than once within the timeframe that you poll.
I've seen that occurr on busy links.

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shaun
Mitchell
Sent: Friday, April 21, 2006 8:53 AM
To: 'PAUL WILLIAMSON'
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Please help - bandwidth usage


Thanks Paul,

 I have looked at RRDTool and almost all other third party tools. I've
used
most of them in testing to find out what I'm doing wrong. It boils down
to I
need a custom solution so I'm developing what I can.

As for the rollover for the 32 bit counters; I'm already taking that
into
consideration in my code. Once I detect the rollover I run another
equation
to figure out the difference in the counters but again once I have those
numbers the equation just doesn't give the numbers I'm expecting.

Shaun Mitchell


 

-Original Message-
From: PAUL WILLIAMSON [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 9:21 AM
To: [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Please help - bandwidth usage

Not to Monday morning quarterback this whole thing, but have you 
tried RRDTool with one of the collector/frontends?  I haven't found 
anything I want to do that hasn't already been done.

As for your problem, are you sure there isn't a counter rollover 
happening?  Or, are you using 32 bit counters and have you 
tried using the 64 bit counters (if available/necessary)?

As for your equation, from the pseudo code provided it looks 
like you have it correct.

Paul

>>> "Shaun Mitchell" <[EMAIL PROTECTED]> 04/20/06 9:24 PM >>>
Yes, we currently use mrtg in house but my boss has wanted an in house
portal developed and didn't like the look and lack of options that
mrtg
presented, so I'm developing it to fit into our portal.

Shaun Mitchell

 

-Original Message-
From: Dan Mahoney, System Admin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 9:29 PM
To: Shaun Mitchell
Cc: 'net-snmp-users@lists.sourceforge.net'
Subject: Re: Please help - bandwidth usage

On Thu, 20 Apr 2006, Shaun Mitchell wrote:

> Hello SNMP Gurus,

This may be stupid, but have you tried mrtg?

www.mrtg.org 

-Dan

> I'm trying to track the bandwidth utilization on a Cisco switch using
the
> ifInOctets and ifOutOctets. What I'm doing is polling the port every
5
> minutes and storing the octets and then using the last poll counter
and
the
> current poll counter to figure out the amount of bits per second that
has
> been through the port. I've tried using a Cisco formula that goes
something
> like this:
>
>
>
> -  Get the delta of the ifInOctets (take the two poll results
and
> subtract them to get the difference)
>
> -  Then times that delta by 8 then by 100
>
> -  Take that result and divide it by the time between then
two
polls
> (300 seconds) times the ifSpeed (1).
>
>
>
> This should give the bits per second. Now it's not 100% accurate but
should
> be close enough for me. The problem is that I'm not getting anything
close
> to what I'm expecting. My sample data is returning about 5 bps and a
> monitoring program is telling me it's more like 1572864 bps. Any
ideas on
if
> that equation above is wrong?
>
>

--

unless is a pr0no book he wont even come close to the bandwidth quota

-Racer-X, concerning DanMahoney.com's web hits.


Dan Mahoney
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org 
---


---
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 




---
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.sourcefor

RE: Please help - bandwidth usage

2006-04-21 Thread Shaun Mitchell

Thanks Paul,

 I have looked at RRDTool and almost all other third party tools. I've used
most of them in testing to find out what I'm doing wrong. It boils down to I
need a custom solution so I'm developing what I can.

As for the rollover for the 32 bit counters; I'm already taking that into
consideration in my code. Once I detect the rollover I run another equation
to figure out the difference in the counters but again once I have those
numbers the equation just doesn't give the numbers I'm expecting.

Shaun Mitchell


 

-Original Message-
From: PAUL WILLIAMSON [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 9:21 AM
To: [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: Please help - bandwidth usage

Not to Monday morning quarterback this whole thing, but have you 
tried RRDTool with one of the collector/frontends?  I haven't found 
anything I want to do that hasn't already been done.

As for your problem, are you sure there isn't a counter rollover 
happening?  Or, are you using 32 bit counters and have you 
tried using the 64 bit counters (if available/necessary)?

As for your equation, from the pseudo code provided it looks 
like you have it correct.

Paul

>>> "Shaun Mitchell" <[EMAIL PROTECTED]> 04/20/06 9:24 PM >>>
Yes, we currently use mrtg in house but my boss has wanted an in house
portal developed and didn't like the look and lack of options that
mrtg
presented, so I'm developing it to fit into our portal.

Shaun Mitchell

 

-Original Message-
From: Dan Mahoney, System Admin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 9:29 PM
To: Shaun Mitchell
Cc: 'net-snmp-users@lists.sourceforge.net'
Subject: Re: Please help - bandwidth usage

On Thu, 20 Apr 2006, Shaun Mitchell wrote:

> Hello SNMP Gurus,

This may be stupid, but have you tried mrtg?

www.mrtg.org 

-Dan

> I'm trying to track the bandwidth utilization on a Cisco switch using
the
> ifInOctets and ifOutOctets. What I'm doing is polling the port every
5
> minutes and storing the octets and then using the last poll counter
and
the
> current poll counter to figure out the amount of bits per second that
has
> been through the port. I've tried using a Cisco formula that goes
something
> like this:
>
>
>
> -  Get the delta of the ifInOctets (take the two poll results
and
> subtract them to get the difference)
>
> -  Then times that delta by 8 then by 100
>
> -  Take that result and divide it by the time between then
two
polls
> (300 seconds) times the ifSpeed (1).
>
>
>
> This should give the bits per second. Now it's not 100% accurate but
should
> be close enough for me. The problem is that I'm not getting anything
close
> to what I'm expecting. My sample data is returning about 5 bps and a
> monitoring program is telling me it's more like 1572864 bps. Any
ideas on
if
> that equation above is wrong?
>
>

--

unless is a pr0no book he wont even come close to the bandwidth quota

-Racer-X, concerning DanMahoney.com's web hits.


Dan Mahoney
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org 
---


---
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 




---
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


---
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&a

RE: Please help - bandwidth usage

2006-04-21 Thread PAUL WILLIAMSON
Not to Monday morning quarterback this whole thing, but have you 
tried RRDTool with one of the collector/frontends?  I haven't found 
anything I want to do that hasn't already been done.

As for your problem, are you sure there isn't a counter rollover 
happening?  Or, are you using 32 bit counters and have you 
tried using the 64 bit counters (if available/necessary)?

As for your equation, from the pseudo code provided it looks 
like you have it correct.

Paul

>>> "Shaun Mitchell" <[EMAIL PROTECTED]> 04/20/06 9:24 PM >>>
Yes, we currently use mrtg in house but my boss has wanted an in house
portal developed and didn't like the look and lack of options that
mrtg
presented, so I'm developing it to fit into our portal.

Shaun Mitchell

 

-Original Message-
From: Dan Mahoney, System Admin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 9:29 PM
To: Shaun Mitchell
Cc: 'net-snmp-users@lists.sourceforge.net'
Subject: Re: Please help - bandwidth usage

On Thu, 20 Apr 2006, Shaun Mitchell wrote:

> Hello SNMP Gurus,

This may be stupid, but have you tried mrtg?

www.mrtg.org 

-Dan

> I'm trying to track the bandwidth utilization on a Cisco switch using
the
> ifInOctets and ifOutOctets. What I'm doing is polling the port every
5
> minutes and storing the octets and then using the last poll counter
and
the
> current poll counter to figure out the amount of bits per second that
has
> been through the port. I've tried using a Cisco formula that goes
something
> like this:
>
>
>
> -  Get the delta of the ifInOctets (take the two poll results
and
> subtract them to get the difference)
>
> -  Then times that delta by 8 then by 100
>
> -  Take that result and divide it by the time between then
two
polls
> (300 seconds) times the ifSpeed (1).
>
>
>
> This should give the bits per second. Now it's not 100% accurate but
should
> be close enough for me. The problem is that I'm not getting anything
close
> to what I'm expecting. My sample data is returning about 5 bps and a
> monitoring program is telling me it's more like 1572864 bps. Any
ideas on
if
> that equation above is wrong?
>
>

--

unless is a pr0no book he wont even come close to the bandwidth quota

-Racer-X, concerning DanMahoney.com's web hits.


Dan Mahoney
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org 
---


---
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 




---
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: Please help - bandwidth usage

2006-04-20 Thread Shaun Mitchell
Yes, we currently use mrtg in house but my boss has wanted an in house
portal developed and didn't like the look and lack of options that mrtg
presented, so I'm developing it to fit into our portal.

Shaun Mitchell

 

-Original Message-
From: Dan Mahoney, System Admin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 20, 2006 9:29 PM
To: Shaun Mitchell
Cc: 'net-snmp-users@lists.sourceforge.net'
Subject: Re: Please help - bandwidth usage

On Thu, 20 Apr 2006, Shaun Mitchell wrote:

> Hello SNMP Gurus,

This may be stupid, but have you tried mrtg?

www.mrtg.org

-Dan

> I'm trying to track the bandwidth utilization on a Cisco switch using the
> ifInOctets and ifOutOctets. What I'm doing is polling the port every 5
> minutes and storing the octets and then using the last poll counter and
the
> current poll counter to figure out the amount of bits per second that has
> been through the port. I've tried using a Cisco formula that goes
something
> like this:
>
>
>
> -  Get the delta of the ifInOctets (take the two poll results and
> subtract them to get the difference)
>
> -  Then times that delta by 8 then by 100
>
> -  Take that result and divide it by the time between then two
polls
> (300 seconds) times the ifSpeed (1).
>
>
>
> This should give the bits per second. Now it's not 100% accurate but
should
> be close enough for me. The problem is that I'm not getting anything close
> to what I'm expecting. My sample data is returning about 5 bps and a
> monitoring program is telling me it's more like 1572864 bps. Any ideas on
if
> that equation above is wrong?
>
>

--

unless is a pr0no book he wont even come close to the bandwidth quota

-Racer-X, concerning DanMahoney.com's web hits.


Dan Mahoney
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---


---
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: Please help - bandwidth usage

2006-04-20 Thread Dan Mahoney, System Admin

On Thu, 20 Apr 2006, Shaun Mitchell wrote:


Hello SNMP Gurus,


This may be stupid, but have you tried mrtg?

www.mrtg.org

-Dan


I'm trying to track the bandwidth utilization on a Cisco switch using the
ifInOctets and ifOutOctets. What I'm doing is polling the port every 5
minutes and storing the octets and then using the last poll counter and the
current poll counter to figure out the amount of bits per second that has
been through the port. I've tried using a Cisco formula that goes something
like this:



-  Get the delta of the ifInOctets (take the two poll results and
subtract them to get the difference)

-  Then times that delta by 8 then by 100

-  Take that result and divide it by the time between then two polls
(300 seconds) times the ifSpeed (1).



This should give the bits per second. Now it's not 100% accurate but should
be close enough for me. The problem is that I'm not getting anything close
to what I'm expecting. My sample data is returning about 5 bps and a
monitoring program is telling me it's more like 1572864 bps. Any ideas on if
that equation above is wrong?




--

unless is a pr0no book he wont even come close to the bandwidth quota

-Racer-X, concerning DanMahoney.com's web hits.


Dan Mahoney
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---



---
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: please help

2005-11-09 Thread Dave Shield
On Wed, 2005-11-09 at 09:56 +0530, [EMAIL PROTECTED] wrote:
> We are using the net-snmp version 5.1.2. any one can help me about
> what is the Latest release of this

The latest release of the 5.1.x line is version 5.1.3.1
We are (hopefully) close to releasing 5.2.2, and just gearing
up for release 5.3 - both of which will include significant
advances over the 5.1.x line.


>  and where can I found the change log of the latest release.

Each release tarball includes a file 'ChangeLog',
listing all of the changes since the previous version.

This is also visible via the project web server, by browsing
the CVS repository.

Dave


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
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: Please help

2005-09-30 Thread Dave Shield
On Thu, 2005-09-29 at 11:39 -0700, Tuan Nguyen wrote:
> here is what I did and I got error in return.
> 
> snmpwalk -c public -v 1 -Oqs -m all 10.XX.XX.XX

You got "an error" in return.  Any particular error?
Would you care to share that information with the rest of us?

It is *very* difficult to help solve a problem if we're
forced to guess what the problem actually is!


Is the machine 10.XX.XX.XX one that you are responsible
for as well?  If so, how have you configured the SNMP
agent on that system?

Dave


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
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: Please help: Unresolved getdtablesize while building snmpd.exe with MS .Net (MSVC7.1)

2005-09-14 Thread Thomas Anders

Alex Burger wrote:

#ifndef WIN32
/*
 * close all non-standard file descriptors we may have
 * inherited from the shell.
 */
for (i = getdtablesize() - 1; i > 2; --i) {
(void) close(i);
}
#endif /* #WIN32 */

I am not sure what problem the above code is supposed to fix.  Maybe 
Robert can comment on it as he was the one who added it.  I don't think 
it is an issue with Windows.


This has been discussed on net-snmp-coders:

http://sourceforge.net/mailarchive/message.php?msg_id=12053198


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
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: Please help: Unresolved getdtablesize while building snmpd.exe with MS .Net (MSVC7.1)

2005-09-13 Thread Alex Burger

Donghai Ma wrote:

Dear List,

I am following the instructions from README.win32 to build net-snmp 
5.1.3.1  with MSVC 7.1 (MS Development Environment 
2003).  I am building from the Workspace files.  So far I am able to 
build all the libraries and application executables except for snmpd.exe.  
As you can see from the logs below, the linker couldn't resolve function 
getdtablesize().  


You can modify snmpd.c so that the call to getdtablesize is excluded for 
Windows (MSVC / MinGW).  This has been fixed in CVS so it will be also 
fixed in the next release.


#ifndef WIN32
/*
 * close all non-standard file descriptors we may have
 * inherited from the shell.
 */
for (i = getdtablesize() - 1; i > 2; --i) {
(void) close(i);
}
#endif /* #WIN32 */

I am not sure what problem the above code is supposed to fix.  Maybe 
Robert can comment on it as he was the one who added it.  I don't think 
it is an issue with Windows.


Alex


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
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: Please help!!!

2005-01-25 Thread Wes Hardaker
> On Tue, 25 Jan 2005 12:37:01 +0200, Mike Mohamet <[EMAIL PROTECTED]> said:

Mike> I have created my own MIB which defines a single
Mike> oblect. Although, my MIB module worked perfectly in
Mike> ucd-snmp-4.2.6, I cannot make it work in the current
Mike> version. More speciffically, I ahve configured teh agent
Mike> including the new MIB module and I can see the MIB module inside
Mike> the SMI when I am using the

Mike> snmptranslate -IR -Tp my_module

Mike> command. However, when I am trying to query the object value I
Mike> am receiving the following error:

Mike> Error in packet
Mike> Reason: (noSuchName) There is no such variable name in this MIB.
Mike> Failed object: trapflag-MIB : : trapflag.0

Well  Without knowing how you've configured your agent and how
your submitting the query I can't say much.  however, double check:

1) that you can see other variables using the same command to make
   sure your access is set up right.

2) run the agent with "-f -Le -Dmib_init" and make sure the debugging
   output shows your module name being initialized.  If not, other problems.

-- 
Wes Hardaker
Sparta


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
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: Please help with snmpwalk

2004-09-28 Thread Alex Burger
Tuan Nguyen wrote:
Every time , I start snmpwalk , I get an return error
 
 
C:\SNMP\bin>snmpwalk -v 1 -c public -Oqs - 10.35.64.108 system
Table
What is the - between the -Oqs and ip address for?  This should work:
snmpwalk -v 1 -c public -Oqs 10.35.64.108 system
Alex

C:/SNMP/etc/snmp/snmpapp.local.conf: line 0: Warning: Unknown token: 
10.35.64.1
08.
snmpwalk: Unknown host (No such file or directory)
C:\SNMP\bin>
 
 
What should I need to do to make it work?
 
I have checked and sure that the host is currently working fine ( I can 
ping and telnet into it)
 
I read some messages that stated configuration file needed to changed 
but I don't know what should need to be changed.
 
Please advice.
 
Thanks for all
 
 
 
 


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard 
. 


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: PLEASE HELP - newbie question

2004-09-10 Thread Dave Shield

> I am sorry for boring you again with this basic question but I can't
> understand it. 

Can you PLEASE show a little patience!
You've now asked the same question *three* times in as many days!

You are not paying anything towards the support of this code, and it
is unreasonable to expect us to drop everything (including stuff we
*are* being paid to do) just to answer your questions immediately.


Nagging the list and pissing off the developers is *NOT* the best
way to encourage a helpful response!

Dave



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users