RE: Hardware serial number access from (a) command(s)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



MHR wrote:
> Over the weekend, I had to make a technical support call on one of my
> DVD burners, and at one point the recorded message mentioned I should
> have my serial number handy.  I thought there was a way to read that
> from at least one piece of software on the system, but I couldn't
> remember one and man -k on a number of subjects was unrevealing.
> 
> Can someone enlighten me (us)?

libsmbios is good getting Dell service tag serial number of system.

hal-device is good getting specific device information:

23: udi = '/org/freedesktop/Hal/devices/storage_model_HL_DT_ST_GCR_8240N'
  org.freedesktop.Hal.Device.Storage.method_execpaths = { 'hal-storage-eject', 'hal-storage-closetray' } (string list)
  org.freedesktop.Hal.Device.Storage.method_argnames = { 'extra_options', 'extra_options' } (string list)
  org.freedesktop.Hal.Device.Storage.method_signatures = { 'as', 'as' } (string list)
  org.freedesktop.Hal.Device.Storage.method_names = { 'Eject', 'CloseTray' } (string list)
  info.interfaces = { 'org.freedesktop.Hal.Device.Storage', 'org.freedesktop.Hal.Device.Storage' } (string list)
  info.addons = { 'hald-addon-storage' } (string list)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_HL_DT_ST_GCR_8240N'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_HL_DT_ST_GCR_8240N'  (string)
  storage.cdrom.write_speeds = {  } (string list)
  storage.cdrom.write_speed = 0  (0x0)  (int)
  storage.cdrom.read_speed = 4224  (0x1080)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrwdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = false  (bool)
  storage.cdrom.cdrw = false  (bool)
  storage.cdrom.cdr = false  (bool)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = { 'storage', 'block', 'storage.cdrom' } (string list)
  info.category = 'storage'  (string)
  info.product = 'HL-DT-ST GCR-8240N'  (string)
  storage.size = 0  (0x0)  (uint64)
  storage.removable = true  (bool)
  storage.removable.media_available = false  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_8086_27df_ide_0_0'  (string)
  storage.firmware_version = '1.10'  (string)
  storage.vendor = ''  (string)
  storage.model = 'HL-DT-ST GCR-8240N'  (string)
  storage.drive_type = 'cdrom'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ide'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 3  (0x3)  (int)
  block.device = '/dev/hda'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_8086_27df_ide_0_0'  (string)
  linux.sysfs_path_device = '/sys/block/hda'  (string)
  linux.sysfs_path = '/sys/block/hda'  (string)

-Ross

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux