{PFM運用}5.9.2 コマンドでレポートをCSVまたはHTML出力する

 

  • 物理ホスト

vim /root/param_csv.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pr-cli-parameters SYSTEM "rpt_params.dtd">
<pr-cli-parameters ver="0220">
<launch-report>
<agent>UA1nnn182</agent>
<report-definition name="rpt03" parent-folder="/test">
<launch-options>
<indication-settings>
<report-interval>HOUR</report-interval>
<start-time>
<relative-time origin="THIS-DAY" day="-1"/>
</start-time>
<end-time>
<relative-time origin="THIS-DAY"/>
</end-time>
</indication-settings>
</launch-options>
</report-definition>
</launch-report>
</pr-cli-parameters>

 

/opt/jp1pcwebcon/tools/jpcrpt -o /root/output.csv /root/param_csv.xml


vim /root/param_html.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pr-cli-parameters SYSTEM "rpt_params.dtd">
<pr-cli-parameters ver="0220">
<launch-report>
<agent>UA1nnn182</agent>
<report-definition name="rpt03" parent-folder="/test">
<launch-options>
<indication-settings>
<report-interval>HOUR</report-interval>
<start-time>
<relative-time origin="THIS-DAY" day="-1"/>
</start-time>
<end-time>
<relative-time origin="THIS-DAY"/>
</end-time>
</indication-settings>
</launch-options>
<html-output>
<show-graph>
<graph-options zoom-scale = "100">
<show-3d/>
<show-grid/>
<vertical-axis minvalue="0" maxvalue="100"/>
</graph-options>
</show-graph>
<show-table/>
</html-output>
</report-definition>
</launch-report>
</pr-cli-parameters>

 

/opt/jp1pcwebcon/tools/jpcrpt -o /root/output.html /root/param_html.xml

→output.html.htmとoutput.html.pngが作成される

 

 

  • 論理ホスト


vim /mnt/sdc2/param_csv.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pr-cli-parameters SYSTEM "rpt_params.dtd">
<pr-cli-parameters ver="0220">
<launch-report>
<agent>UA1mmm194</agent>
<report-definition name="rpt03" parent-folder="/test">
<launch-options>
<indication-settings>
<report-interval>HOUR</report-interval>
<start-time>
<relative-time origin="THIS-DAY" day="-1"/>
</start-time>
<end-time>
<relative-time origin="THIS-DAY"/>
</end-time>
</indication-settings>
</launch-options>
</report-definition>
</launch-report>
</pr-cli-parameters>

 

/opt/jp1pcwebcon/tools/jpcrpt -o /mnt/sdc2/output.csv /mnt/sdc2/param_csv.xml


vim /mnt/sdc2/param_html.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pr-cli-parameters SYSTEM "rpt_params.dtd">
<pr-cli-parameters ver="0220">
<launch-report>
<agent>UA1mmm194</agent>
<report-definition name="rpt03" parent-folder="/test">
<launch-options>
<indication-settings>
<report-interval>HOUR</report-interval>
<start-time>
<relative-time origin="THIS-DAY" day="-1"/>
</start-time>
<end-time>
<relative-time origin="THIS-DAY"/>
</end-time>
</indication-settings>
</launch-options>
<html-output>
<show-graph>
<graph-options zoom-scale = "100">
<show-3d/>
<show-grid/>
<vertical-axis minvalue="0" maxvalue="100"/>
</graph-options>
</show-graph>
<show-table/>
</html-output>
</report-definition>
</launch-report>
</pr-cli-parameters>

 

/opt/jp1pcwebcon/tools/jpcrpt -o /mnt/sdc2/output.html /mnt/sdc2/param_html.xml

→output.html.htmとoutput.html.pngが作成される