malar vizhi | 1 Jul 2009 10:19
Picon

How do I get percentage CPU utilization using ssCpuRawIdle?

Hello folks,

Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice or ssCpuRawSystem or ssCpuRawUser of host.

I think ssCpuIdle will give exact percentage value which top command shows..but when we see the mib, it is deprecated one. So, We should start of using "raw counters". I came to know from net-snmp forums, need to take two readings of this object, and find the difference between them. That difference divided by the total number of 'ticks' between the two readings (probably 0.01 seconds) will give you the percentage utilization.

And this is the forum where our Dave has replied as above...

http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html

Where I have freezed is to calculate the total number of ticks...How should I calculate the total no of ticks?..or will it be always  0.01 seconds for all OS?...

Thanks in Advance....

Malar

------------------------------------------------------------------------------
_______________________________________________
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
Lee Standen | 1 Jul 2009 10:40
Picon
Picon

RE: How do I get percentage CPU utilization using ssCpuRawIdle?

If you’re putting it into an RRD or something like that, then use a DERIVE or COUNTER data type.  That’ll do it all for you.

 

If it’s the figures I think it is, then it’s basically the number of seconds (or fractions thereof) spent in each state since the system started up.

 

I’ve just used RRD counters to get these graphs… no special manipulation of figures in the data gathering… the percentages are just calculated in the rrdgraph command...rrdtool takes care of working out the difference between the two figures based on the interval since the last set of data.

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 4:19 PM
To: net-snmp-users <at> lists.sourceforge.net
Subject: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Hello folks,

Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice or ssCpuRawSystem or ssCpuRawUser of host.

I think ssCpuIdle will give exact percentage value which top command shows..but when we see the mib, it is deprecated one. So, We should start of using "raw counters". I came to know from net-snmp forums, need to take two readings of this object, and find the difference between them. That difference divided by the total number of 'ticks' between the two readings (probably 0.01 seconds) will give you the percentage utilization.

And this is the forum where our Dave has replied as above...

http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html

Where I have freezed is to calculate the total number of ticks...How should I calculate the total no of ticks?..or will it be always  0.01 seconds for all OS?...

Thanks in Advance....

Malar

------------------------------------------------------------------------------
_______________________________________________
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
malar vizhi | 1 Jul 2009 11:22
Picon

Re: How do I get percentage CPU utilization using ssCpuRawIdle?

Thanks Lee....But am not using any third party tool to plot graph....We are using adobe flex for report module(plotting graph). So, those manipulations I have to do manually.It will be better for me If I get any idea on calculating those ticks & all...

Thanks
Malar

On Wed, Jul 1, 2009 at 2:10 PM, Lee Standen <standen <at> staff.iinet.net.au> wrote:

If you’re putting it into an RRD or something like that, then use a DERIVE or COUNTER data type.  That’ll do it all for you.

 

If it’s the figures I think it is, then it’s basically the number of seconds (or fractions thereof) spent in each state since the system started up.

 

I’ve just used RRD counters to get these graphs… no special manipulation of figures in the data gathering… the percentages are just calculated in the rrdgraph command...rrdtool takes care of working out the difference between the two figures based on the interval since the last set of data.

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 4:19 PM
To: net-snmp-users <at> lists.sourceforge.net
Subject: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Hello folks,

Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice or ssCpuRawSystem or ssCpuRawUser of host.

I think ssCpuIdle will give exact percentage value which top command shows..but when we see the mib, it is deprecated one. So, We should start of using "raw counters". I came to know from net-snmp forums, need to take two readings of this object, and find the difference between them. That difference divided by the total number of 'ticks' between the two readings (probably 0.01 seconds) will give you the percentage utilization.

And this is the forum where our Dave has replied as above...

http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html

Where I have freezed is to calculate the total number of ticks...How should I calculate the total no of ticks?..or will it be always  0.01 seconds for all OS?...

Thanks in Advance....

Malar


------------------------------------------------------------------------------
_______________________________________________
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
Lee Standen | 1 Jul 2009 11:24
Picon
Picon

RE: How do I get percentage CPU utilization using ssCpuRawIdle?

Well it’s a basic change over time thing.

 

y – x / t

 

The problem with doing it yourself is you need to store the last value and the time when it was read, and then do the math… if you’re planning to graph that data, then you have to go a step further, and store all the figures

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 5:23 PM
To: Lee Standen; net-snmp-users <at> lists.sourceforge.net
Subject: Re: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Thanks Lee....But am not using any third party tool to plot graph....We are using adobe flex for report module(plotting graph). So, those manipulations I have to do manually.It will be better for me If I get any idea on calculating those ticks & all...

Thanks
Malar

On Wed, Jul 1, 2009 at 2:10 PM, Lee Standen <standen <at> staff.iinet.net.au> wrote:

If you’re putting it into an RRD or something like that, then use a DERIVE or COUNTER data type.  That’ll do it all for you.

 

If it’s the figures I think it is, then it’s basically the number of seconds (or fractions thereof) spent in each state since the system started up.

 

I’ve just used RRD counters to get these graphs… no special manipulation of figures in the data gathering… the percentages are just calculated in the rrdgraph command...rrdtool takes care of working out the difference between the two figures based on the interval since the last set of data.

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 4:19 PM
To: net-snmp-users <at> lists.sourceforge.net
Subject: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Hello folks,

Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice or ssCpuRawSystem or ssCpuRawUser of host.

I think ssCpuIdle will give exact percentage value which top command shows..but when we see the mib, it is deprecated one. So, We should start of using "raw counters". I came to know from net-snmp forums, need to take two readings of this object, and find the difference between them. That difference divided by the total number of 'ticks' between the two readings (probably 0.01 seconds) will give you the percentage utilization.

And this is the forum where our Dave has replied as above...

http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html

Where I have freezed is to calculate the total number of ticks...How should I calculate the total no of ticks?..or will it be always  0.01 seconds for all OS?...

Thanks in Advance....

Malar

 

------------------------------------------------------------------------------
_______________________________________________
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
malar vizhi | 1 Jul 2009 11:37
Picon

Re: How do I get percentage CPU utilization using ssCpuRawIdle?

Thanks for your quick response.So you mean to say,

 y -- result at T1
 x -- result at T2
 t  -- T2 - T1

Final result will be a percentage of that corresponding object. Am i right?..Lee.

Malar


On Wed, Jul 1, 2009 at 2:54 PM, Lee Standen <standen <at> staff.iinet.net.au> wrote:

Well it’s a basic change over time thing.

 

y – x / t

 

The problem with doing it yourself is you need to store the last value and the time when it was read, and then do the math… if you’re planning to graph that data, then you have to go a step further, and store all the figures

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 5:23 PM
To: Lee Standen; net-snmp-users <at> lists.sourceforge.net
Subject: Re: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Thanks Lee....But am not using any third party tool to plot graph....We are using adobe flex for report module(plotting graph). So, those manipulations I have to do manually.It will be better for me If I get any idea on calculating those ticks & all...

Thanks
Malar

On Wed, Jul 1, 2009 at 2:10 PM, Lee Standen <standen <at> staff.iinet.net.au> wrote:

If you’re putting it into an RRD or something like that, then use a DERIVE or COUNTER data type.  That’ll do it all for you.

 

If it’s the figures I think it is, then it’s basically the number of seconds (or fractions thereof) spent in each state since the system started up.

 

I’ve just used RRD counters to get these graphs… no special manipulation of figures in the data gathering… the percentages are just calculated in the rrdgraph command...rrdtool takes care of working out the difference between the two figures based on the interval since the last set of data.

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 4:19 PM
To: net-snmp-users <at> lists.sourceforge.net
Subject: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Hello folks,

Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice or ssCpuRawSystem or ssCpuRawUser of host.

I think ssCpuIdle will give exact percentage value which top command shows..but when we see the mib, it is deprecated one. So, We should start of using "raw counters". I came to know from net-snmp forums, need to take two readings of this object, and find the difference between them. That difference divided by the total number of 'ticks' between the two readings (probably 0.01 seconds) will give you the percentage utilization.

And this is the forum where our Dave has replied as above...

http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html

Where I have freezed is to calculate the total number of ticks...How should I calculate the total no of ticks?..or will it be always  0.01 seconds for all OS?...

Thanks in Advance....

Malar

 


------------------------------------------------------------------------------
_______________________________________________
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
gca09001 | 1 Jul 2009 15:07
Picon
Picon

snmpset on objects failing !!!!

Hi all,

I am kinda new for snmp.
I am working on my master thesis. Trying to develop a network management system
using NET-SNMP.

Here is my requirement:

I should be able to change the MIBs by snmpset requests from a management system
via snmp, besides snmpget and snmpwalks. 

For example:

1.Changing the Routing table of the client.
2.Making Interfaces up and Down.
3.Changing the Ipforwarding.
4.Nat entries.... etc

I installed NET-SNMP on opensolaris and Fedora core 9 and started with the basic
snmpv2 configurations. I was not able to set any snmp objects in the client from
command line. I end up with "Object not writable" error message. I have
configured private community with access to the MIB's.

And i would like to know what all Objects support snmpset. I have gone through
the default MIB files comes with NET-SNMP by the distribution installation.

Do i need to write the My own MIB's to achieve the above effect.

And I am in a confusion whether SNMP is good for only monitoring or for
management( able to change from admin console ).

Any help,, ???

Thanks in Advance :)

Regards,

Gangadhar Chalapaka.

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

May The Dog | 1 Jul 2009 22:42
Picon

Re: Question on Iterator model without having to setup a linked list

Hi,
 
Has anybody implemented the following with Net-Snmp:
 
You system supports multiple network management protocols such as SNMP, TL1, Q3. CORBA, and has multiple element managers. You can create, modify, delete and retrieve objects with any one the protocols.  Then the container has to be refreshed for any GET and SET request, which will greatly degrade the performance. Any good suggestion or example?
 
Regards,
 
May

On Mon, Jun 8, 2009 at 5:54 PM, Dave Shield <D.T.Shield <at> liverpool.ac.uk> wrote:
2009/6/8 Ranganathan, Viji (NSN - US/Boca Raton) <viji.ranganathan <at> nsn.com>:
>                      I observe that during snmpwalk, after the
> handler routine with MODE_GET fetches the correct data, the logic goes
> back again to get_first_data_point.

Remember that there is no such thing as an "snmpwalk" request.
This is simply a sequence of GETNEXT requests - one after the other.

For *each* GETNEXT request, the agent will call your 'get_first'
routine (once), followed by your 'get_next' routine (once for each row)
followed by the module handler.


> There are two rows and 24 columns.

> I just want to verify if this many number of calls to the first/next
> routines is normal.

It feels vaguely plausible, yes.

The calculation of exactly how many times each routine should be
called is left as an exercise for the student....


Dave

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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

------------------------------------------------------------------------------
_______________________________________________
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
Arnold Wang | 2 Jul 2009 00:21
Favicon

Is there a way to keep the original sender's IP in forwarded traps

I have the following setup:

1.       I have machine A configured in a Cisco router as the trap receiver. The configuration in the router is as following:

snmp-server trap-source FastEthernet0/0

snmp-server enable traps config

snmp-server host ip_of_machine_A version 2c public  config

2.       I have installed and configured net-snmp 5.3.2.2 in machine A running RHEL 5. The configuration is as following:

# more /etc/snmp/snmptrapd.conf

snmpTrapdAddr               ip_of_machine_A

authCommunity log,execute,net             public

forward default ip_of_machine_B

3.       I have SNMPTT installed and configured in machine B to process the traps. The problem I’m running into is the machine B sees the traps are from machine A instead of the Cisco router, as I hoped.

Is it possible for machine A to keep/retain the IP of the Cisco router when forwarding the traps to machine B? Did I miss anything?

Thanks.

------------------------------------------------------------------------------
_______________________________________________
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
Lee Standen | 2 Jul 2009 04:20
Picon
Picon

RE: How do I get percentage CPU utilization using ssCpuRawIdle?

Correct.

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 5:37 PM
To: Lee Standen; net-snmp-users <at> lists.sourceforge.net
Subject: Re: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Thanks for your quick response.So you mean to say,

 y -- result at T1
 x -- result at T2
 t  -- T2 - T1

Final result will be a percentage of that corresponding object. Am i right?..Lee.

Malar

On Wed, Jul 1, 2009 at 2:54 PM, Lee Standen <standen <at> staff.iinet.net.au> wrote:

Well it’s a basic change over time thing.

 

y – x / t

 

The problem with doing it yourself is you need to store the last value and the time when it was read, and then do the math… if you’re planning to graph that data, then you have to go a step further, and store all the figures

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 5:23 PM
To: Lee Standen; net-snmp-users <at> lists.sourceforge.net
Subject: Re: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Thanks Lee....But am not using any third party tool to plot graph....We are using adobe flex for report module(plotting graph). So, those manipulations I have to do manually.It will be better for me If I get any idea on calculating those ticks & all...

Thanks
Malar

On Wed, Jul 1, 2009 at 2:10 PM, Lee Standen <standen <at> staff.iinet.net.au> wrote:

If you’re putting it into an RRD or something like that, then use a DERIVE or COUNTER data type.  That’ll do it all for you.

 

If it’s the figures I think it is, then it’s basically the number of seconds (or fractions thereof) spent in each state since the system started up.

 

I’ve just used RRD counters to get these graphs… no special manipulation of figures in the data gathering… the percentages are just calculated in the rrdgraph command...rrdtool takes care of working out the difference between the two figures based on the interval since the last set of data.

 

 

From: malar vizhi [mailto:malarsow <at> gmail.com]
Sent: Wednesday, 1 July 2009 4:19 PM
To: net-snmp-users <at> lists.sourceforge.net
Subject: How do I get percentage CPU utilization using ssCpuRawIdle?

 

Hello folks,

Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice or ssCpuRawSystem or ssCpuRawUser of host.

I think ssCpuIdle will give exact percentage value which top command shows..but when we see the mib, it is deprecated one. So, We should start of using "raw counters". I came to know from net-snmp forums, need to take two readings of this object, and find the difference between them. That difference divided by the total number of 'ticks' between the two readings (probably 0.01 seconds) will give you the percentage utilization.

And this is the forum where our Dave has replied as above...

http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html

Where I have freezed is to calculate the total number of ticks...How should I calculate the total no of ticks?..or will it be always  0.01 seconds for all OS?...

Thanks in Advance....

Malar

 

 

------------------------------------------------------------------------------
_______________________________________________
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
Vincent Bernat | 2 Jul 2009 06:45
Gravatar

Re: How do I get percentage CPU utilization using ssCpuRawIdle?

OoO En cette  fin de matinée radieuse du mercredi  01 juillet 2009, vers
11:37, malar vizhi <malarsow <at> gmail.com> disait :

> Thanks for your quick response.So you mean to say,
>  y -- result at T1
>  x -- result at T2
>  t  -- T2 - T1

> Final result will be a percentage of that corresponding object. Am i
> right?..Lee.

To  get T1  and T2,  you can  query sysUpTime  in the  same  GET request
instead of relying on the local clock.
--

-- 
panic("mother...");
	2.2.16 /usr/src/linux/drivers/block/cpqarray.c

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