<br>Hello Tobi, and bravo for tour reactivity ;)<br><br>That's means that my file must be composed with only one line beginning with graph ??<br><br><br>UnicsOnline<br><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi unicsonline<br>
<br>
><br>
> Now how to generate same graph, but with a pipe syntax, like 'cat file |<br>
> rrdtool - ' or 'rrdtool - < file' ?<br>
><br>
> I have tried to just remove 'rrdtool' from the file listed upper, and then<br>
> perform a cat file | rrdtool - , and the result is:<br>
><br>
> ERROR: Could not make sense out of '\'<br>
> ERROR: unknown function '--title'<br>
> ERROR: unknown function '--width'<br>
> ERROR: unknown function<br>
> 'DEF:v1_PhysicalCPU=lpar.rrd:PhysicalCPU:AVERAGE:step=300:end=start+24h:start=midnight'<br>
> ERROR: unknown function 'CDEF:r1_PhysicalCPU=v1_PhysicalCPU'<br>
> ERROR: unknown function 'VDEF:m1_PhysicalCPU=r1_PhysicalCPU,MINIMUM'<br>
> ERROR: unknown function 'VDEF:M1_PhysicalCPU=r1_PhysicalCPU,MAXIMUM'<br>
> ERROR: unknown function 'VDEF:A1_PhysicalCPU=r1_PhysicalCPU,AVERAGE'<br>
> ERROR: unknown function 'VDEF:l1_PhysicalCPU=r1_PhysicalCPU,LAST'<br>
> ERROR: unknown function 'CDEF:y1_PhysicalCPU=r1_PhysicalCPU,0,+'<br>
> ERROR: unknown function<br>
> 'LINE1:y1_PhysicalCPU#00FFFF:PhysicalCPU............................:'<br>
> ERROR: unknown function 'GPRINT:m1_PhysicalCPU:min\: %10.2lf'<br>
> ERROR: unknown function 'GPRINT:M1_PhysicalCPU: max\: %10.2lf'<br>
> ERROR: unknown function 'GPRINT:A1_PhysicalCPU: avg\: %10.2lf'<br>
> ERROR: unknown function 'GPRINT:l1_PhysicalCPU: last\: %10.2lf\l'<br>
><br>
> If I remove the '\' at end of each lines and rerun, the result is:<br>
><br>
> 0x0<br>
> OK u:0.00 s:0.00 r:0.00<br>
> ERROR: unknown function '--title'<br>
> ERROR: unknown function '--width'<br>
> RRDtool 1.2.13 Copyright 1997-2006 by Tobias Oetiker <<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>><br>
> Compiled Jun 13 2006 11:14:25<br>
<br>
the backslash is a shell thing, which gets removed prior to the<br>
line being processed by rrdtool ... it is not supported in pipe<br>
mode ... each command should be on a single (potentially long)<br>
line.<br>
<br>
cheers<br>
tobi<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
<a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a> <a href="tel:%2B%2B41%2062%20775%209902" value="+41627759902">++41 62 775 9902</a> / sb: -9900<br>
</font></span></blockquote></div><br>