"Xe name-label로 uuid 찾기"의 두 판 사이의 차이

14번째 줄: 14번째 줄:
;명령어
;명령어
<source lang='bash'>
<source lang='bash'>
xe vm-list name-label=네임레이블 | head -1 | awk '{print $NF}'
xe host-list name-label=네임레이블 | head -1 | awk '{print $NF}'
</source>
</source>


;실행예시
;실행예시
<source lang='dos'>
<source lang='dos'>
[root@xen01 ~]# xe vm-list name-label=xen01 | head -1 | awk '{print $NF}'
[root@xen01 ~]# xe host-list name-label=xen01 | head -1 | awk '{print $NF}'
9ce1a3b5-7d8f-0246-79a1-c3568e0243f5
9ce1a3b5-7d8f-0246-79a1-c3568e0243f5
</source>
</source>
26번째 줄: 26번째 줄:
;명령어
;명령어
<source lang='bash'>
<source lang='bash'>
xe vm-list name-label=`hostname` | head -1 | awk '{print $NF}'
xe host-list name-label=`hostname` | head -1 | awk '{print $NF}'
</source>
</source>


;실행예시
;실행예시
<source lang='dos'>
<source lang='dos'>
[root@xen01 ~]# xe vm-list name-label=`hostname` | head -1 | awk '{print $NF}'
[root@xen01 ~]# xe host-list name-label=`hostname` | head -1 | awk '{print $NF}'
9ce1a3b5-7d8f-0246-79a1-c3568e0243f5
9ce1a3b5-7d8f-0246-79a1-c3568e0243f5
</source>
</source>

2013년 8월 22일 (목) 16:03 판

1 VM

명령어
xe vm-list name-label=네임레이블 | head -1 | awk '{print $NF}'
실행예시
[root@xen01 ~]# xe vm-list name-label=test-vm-01 | head -1 | awk '{print $NF}'
5ac79e13-f468-0b2d-3e5a-7912ce4fb680

2 Host

명령어
xe host-list name-label=네임레이블 | head -1 | awk '{print $NF}'
실행예시
[root@xen01 ~]# xe host-list name-label=xen01 | head -1 | awk '{print $NF}'
9ce1a3b5-7d8f-0246-79a1-c3568e0243f5

3 Host 자신

명령어
xe host-list name-label=`hostname` | head -1 | awk '{print $NF}'
실행예시
[root@xen01 ~]# xe host-list name-label=`hostname` | head -1 | awk '{print $NF}'
9ce1a3b5-7d8f-0246-79a1-c3568e0243f5

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}