1 2 3 4 5 | graph example1 { Server1 -- Server2 Server2 -- Server3 Server3 -- Server1 } |
1 | $ dot example1.dot –Tpng –o example1.png |
1 2 3 4 5 | digraph example2 { Server1 -> Server2 Server2 -> Server3 Server3 -> Server1 } |
1 2 3 4 5 6 7 8 9 | digraph example3 { Server1 -> Server2 Server2 -> Server3 Server3 -> Server1 Server1 [shape=box, label="Server1\nWeb Server", fillcolor="#ABACBA", style=filled] Server2 [shape=triangle, label="Server2\nApp Server", fillcolor="#DDBCBC", style=filled] Server3 [shape=circle, label="Server3\nDatabase Server", fillcolor="#FFAA22",style=filled] } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash HMC="$1" serverlist=`ssh -q -o "BatchMode yes" $HMC lssyscfg -r sys -F "name" | sort` echo "graph hmc_graph{" for server in $serverlist; do echo " \"$HMC\" -- \"$server\" " lparlist=`ssh -q -o "BatchMode yes" $HMC lssyscfg -m $server -r lpar -F "name" | sort` for lpar in $lparlist; do echo " \"$server\" -- \"$lpar\" " done done echo "}" |
1 2 3 4 5 6 7 8 9 10 11 | graph hmc_graph{ "hmc01" -- "test520" "test520" -- "lpar2" "test520" -- "lpar3" "hmc01" -- "test570" "test570" -- "aixtest01" "test570" -- "aixtest02" "test570" -- "aixtest03" "hmc01" -- "test510" "test510" -- "lpar1" } |
1 | 下载:- <a href="http://www.ibm.com/developerworks/aix/library/au-aix-graphviz/vio_npiv_info.pl" onmouseover="linkQueryAppend(this)">vio_npiv_info.pl</a> |
1 | 下载:- <a href="http://www.ibm.com/developerworks/aix/library/au-aix-graphviz/vio_vscsi_info.pl" onmouseover="linkQueryAppend(this)">vio_vscsi_info.pl</a> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |