hostname
此指令可讓您定義 SVM 的網域名稱,並確保 SVM 的 IP 位址和網域名稱在檔案 /etc/hosts 中。
設定
<hostname> [<IP>]
其中:
- <hostname> – SVM 的網域名稱。
- [<IP>] – SVM 的 IP 位址(可選參數)。如果指定此參數,則會在 /etc/hosts 檔案中新增一行,其中包含指定的網域名稱和 IP 位址。如果未指定此參數,則不會修改 /etc/hosts 檔案。
|
範例:
> ssh klconfig@192.0.2.17 hostname testsvm.example.com 192.0.2.17
> klconfig@192.0.2.17's password:
KLCONFIG OK
|
特定錯誤
0120 Invalid hostname characters <characters>:SVM 名稱中的字元無效。
0121 Invalid hostname, empty label present:SVM 名稱包含空區域。
頁面頂部