Any way to detect server model?
Mark Watts
m.watts at eris.qinetiq.com
Thu Mar 1 10:58:34 CST 2007
> FYI, here's the awk script I ended up writing to pull this information out.
> Maybe useful to others down the line.
>
> awk '
> BEGIN { RS = "\nHandle " ; FS = "[, ]" }
> {
> if (substr($1, 0, 6) == "0x0100") {
> match($0, "Product Name: ([^\n]+)")
> rl = RLENGTH
> a = substr($0, RSTART, RLENGTH)
> match(a, ":")
> print substr(a, RSTART+1, rl-RSTART)
> }
> }
> '
Filed firmly in the "useful" tray.
Mark.
--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer
QinetiQ Trusted Information Management
Trusted Solutions and Services Group
GPG Public Key ID: 455420ED
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20070301/8a8aac7d/attachment.bin
More information about the Linux-PowerEdge
mailing list