Bug 3803

Summary: no 'hostid' command like on solaris.
Product: [Retired] Red Hat Linux Reporter: Peter Jones <pjones>
Component: util-linuxAssignee: Jay Turner <jturner>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-03 15:12:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Jones 1999-06-29 16:14:37 UTC
#!/bin/bash
# this should be /usr/bin/hostid or somesuch.
# Copyright 1999 Peter Jones, <pjones> .
# GPL and all that good stuff apply.
(
idprom=`cat /proc/openprom/idprom`
echo $idprom|dd bs=1 skip=2 count=2
echo $idprom|dd bs=1 skip=27 count=6
echo
) 2>/dev/null

Comment 1 Jay Turner 1999-06-29 17:04:59 UTC
Recommendation has been forwarded to package developer/maintainer.

Comment 2 Jeff Johnson 1999-08-03 15:12:59 UTC
Added to util-linux-2.9v-17 (finally:-). Thanks for the patch.