パスワードを忘れた? アカウント作成
610849 journal

kibayasiの日記: 宛 hostid 通 2

日記 by kibayasi

x86系のマシンでの、hostidてコマンド、
何をもって作り出した結果なんだろうか?

RedHatでもcygwinでもコマンドあるし、値帰ってくるんだけど。。

知ってる人います?

この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。
  • by umq (4421) on 2004年07月20日 11時14分 (#592627) 日記
    してみました

    |`hostid' prints the numeric identifier of the current host in
    |hexadecimal. This command accepts no arguments. The only options are
    |`--help' and `--version'. *Note Common options::.
    |
    | For example, here's what it prints on one system I use:
    |
    | $ hostid
    | 1bac013d
    |
    | On that system, the 32-bit quantity happens to be closely related to
    |the system's Internet address, but that isn't always the case.


    なので,IP アドレスの 16 進表記だと思いますよ。
    エンディアンの関係で並びが奇妙に感じられるかもしれませんが。
typodupeerror

開いた括弧は必ず閉じる -- あるプログラマー

読み込み中...