[rrd-users] perl script that uses RPN exactly like rrdtool CDEF

Shipley, Rob rshipley at state.mt.us
Thu Dec 4 01:02:31 MET 2003


I was just wondering if anyone has a perl script that can take RPN math
expressions and use them like rrdtool. 
I am looking for a way to use a CDEF expression and use it outside of
rrdtool. For example, 
push @args, "CDEF:inavbyte=8,ifInOctets,ifSpeed,/,*" for rrdtool could be
used in a script to get the same results without using rrdtool graph
function:
use RPN;
$utilization = rpn->(8,ifInOctets,ifSpeed,/,*);
 
Any thoughts?
Thanks in advance,
Rob

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list