/bin/rrdtool graph - \
--imgformat=PNG \
--start='1716236116' \
--end='1716322516' \
--title='hk-mx480-1j - Traffic - xe-1/0/2 (TEIN-HK)' \
--rigid \
--base='1000' \
--height='200' \
--width='600' \
--alt-autoscale \
COMMENT:"From 2024/05/21 05\:15\:16 To 2024/05/22 05\:15\:16\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a='/usr/share/cacti/rra/hk-mx480-1j_traffic_in_2042.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/hk-mx480-1j_traffic_in_2042.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,-8,*' \
CDEF:cdeff='b,8,*' \
AREA:cdefa#00CF00B2:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdefe#002A97B2:'Outbound' \
GPRINT:cdeff:LAST:'Current\:%8.2lf %s' \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf %s\n' |