[opensuse] cmd-line utilities to display hardware?
suggestions for command-line tools to examine the HW on a system? so far, i've got: * "hwinfo" * "lspci" * "lsusb" * perusing under /proc * perusing under /sys any others that would fit on that list? (i come from a fedora background so i'm not yet familiar with the suse-specific tools). thanks. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, Sep 26, 2009 at 10:06 PM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
suggestions for command-line tools to examine the HW on a system? so far, i've got:
* "hwinfo" * "lspci" * "lsusb" * perusing under /proc * perusing under /sys
any others that would fit on that list? (i come from a fedora background so i'm not yet familiar with the suse-specific tools). thanks.
rday
Robert, What I normally want to know is what hard drives and usb drives are connected to a box. hwinfo shows that, but it is overkill for me. I normally just do fdisk -l which shows drives (make, model) and partitions. I then use hdparm to delve in even further (ie. s/n). I think you have to use sdparm to get the serial number of a usb thumbdrive. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 26 September 2009 09:38:01 pm Greg Freemyer wrote:
Robert,
What I normally want to know is what hard drives and usb drives are connected to a box. hwinfo shows that, but it is overkill for me.
I normally just do fdisk -l which shows drives (make, model) and partitions. I then use hdparm to delve in even further (ie. s/n). I think you have to use sdparm to get the serial number of a usb thumbdrive.
hddtemp-0.3_beta15-10.pm.11.1 it's in the repos. then I just use a small script (hdtemp) to get temps for all drives. 02:04 archangel:~> hdtemp /dev/sdc: ST3500630AS: 39°C /dev/sdd: ST3750330AS: 38°C /dev/sdb: ST3750330AS: 37°C /dev/sda: ST3500630AS: 35°C script: #!/bin/bash --norc for i in $(cat /proc/partitions | egrep sd[abcdefgh]$ | sed -e 's/^.*s/s/'); do sudo hddtemp /dev/$i done (the for statement is all one line) Also, for further hardware info, don't forget "dmidecode" -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Sep 27, 2009 at 3:07 AM, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
On Saturday 26 September 2009 09:38:01 pm Greg Freemyer wrote:
Robert,
What I normally want to know is what hard drives and usb drives are connected to a box. hwinfo shows that, but it is overkill for me.
I normally just do fdisk -l which shows drives (make, model) and partitions. I then use hdparm to delve in even further (ie. s/n). I think you have to use sdparm to get the serial number of a usb thumbdrive.
hddtemp-0.3_beta15-10.pm.11.1
it's in the repos. then I just use a small script (hdtemp) to get temps for all drives.
02:04 archangel:~> hdtemp /dev/sdc: ST3500630AS: 39°C /dev/sdd: ST3750330AS: 38°C /dev/sdb: ST3750330AS: 37°C /dev/sda: ST3500630AS: 35°C
script:
#!/bin/bash --norc
for i in $(cat /proc/partitions | egrep sd[abcdefgh]$ | sed -e 's/^.*s/s/'); do sudo hddtemp /dev/$i done
(the for statement is all one line)
Also, for further hardware info, don't forget "dmidecode"
-- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Robert, Another that I like to use for Hardware audits. Is lshw, here a sample of it... magi description: Desktop Computer width: 64 bits capabilities: smbios-2.2 dmi-2.2 vsyscall64 vsyscall32 configuration: boot=normal chassis=desktop uuid=00000000-0000-0000-0000-00508D85164B *-core description: Motherboard product: NF8/NF8-V (NF3 Series) vendor: http://www.abit.com.tw/ physical id: 0 version: 1.x *-firmware description: BIOS vendor: Phoenix Technologies, LTD physical id: 0 version: 6.00 PG (06/14/2005) size: 128KiB capacity: 448KiB capabilities: isa pci pnp apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp ls120boot zipboot *-cpu description: CPU product: AMD Sempron(tm) Processor 3100+ vendor: Advanced Micro Devices [AMD] physical id: 4 bus info: cpu@0 version: AMD Sempron(tm) Processor 3100+ slot: Socket 754 size: 1800MHz capacity: 3GHz width: 64 bits clock: 200MHz capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext x86-64 3dnowext 3dnow up rep_good nopl cpufreq *-cache:0 description: L1 cache physical id: 8 slot: Internal Cache size: 128KiB capacity: 128KiB capabilities: synchronous internal write-back *-cache:1 description: L2 cache physical id: 9 slot: External Cache size: 256KiB capacity: 256KiB capabilities: synchronous internal write-back *-memory description: System Memory physical id: 1a slot: System board or motherboard size: 2GiB *-bank:0 description: DIMM physical id: 0 slot: A0 size: 1GiB width: 64 bits -- ----------------------------------------- Discover it! Enjoy it! Share it! openSUSE Linux. ----------------------------------------- openSUSE -- http://en.opensuse.org/User:Terrorpup openSUSE Ambassador openSUSE Member skype -- terrorpup twitter -- terrorpup Identica -- terrorpup freenode(irc) -- terrorpup/lupinstein. friendfeed -- http://friendfeed.com/terrorpup Have you tried SUSE Studio? Need to create a Live CD, an app you want to package and distribute , or create your own linux distro. Give SUSE Studio a try. http://www.susestudio.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 27 Sep 2009, Chuck Payne wrote:
On Sun, Sep 27, 2009 at 3:07 AM, David C. Rankin
hddtemp-0.3_beta15-10.pm.11.1
it's in the repos. then I just use a small script (hdtemp) to get temps for all drives.
it is? i just did a "zypper" search and found nothing by that name. ah, but i mentioned early on that i'm using SLES 11, not opensuse. i'm going to guess that a beta version of *anything* isn't in the normal SLES repos. but i'll remember that package for later for my imminent opensuse system. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 27 September 2009 07:42:50 Robert P. J. Day wrote: ...
it is? i just did a "zypper" search and found nothing by that name. ah, but i mentioned early on that i'm using SLES 11, not opensuse. i'm going to guess that a beta version of *anything* isn't in the normal SLES repos. but i'll remember that package for later for my imminent opensuse system.
To discover all commands starting with ls use bash completion with the TAB key. Here it reports: # ls ls lsattr lscpu lshal lsmod lspci lsusb ls-l lsb_release lsdev lsinitrd lsof lsscsi then check man pages. # apropos hardware will give you another few utilities. -- Regards, Rajko People of openSUSE editor. Latest interviews: http://news.opensuse.org/category/people-of-opensuse/ About us: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 27 September 2009 07:42:50 am Robert P. J. Day wrote:
it's in the repos. then I just use a small script (hdtemp) to get temps for all drives.
it is? i just did a "zypper" search and found nothing by that name. ah, but i mentioned early on that i'm using SLES 11, not opensuse. i'm going to guess that a beta version of anything isn't in the normal SLES repos. but i'll remember that package for later for my imminent opensuse system.
Sorry to not be specific, For 11.0 and newer it's in the packman repo, For 10.3 it's in the home:/mskibbe repo. If you don't have 'webpin' installed, do that first. Forget searching with zypper, webpin is the way to go. Then to find a package, it's just: 23:21 dcrgx:~> webpin hddtemp 3 results (3 packages) found for "hddtemp" in openSUSE_110 * hddtemp: Hard disk temperature tool - 0.3_beta15 [packman] * hddtemp-debuginfo: Debug information for package hddtemp - 0.3_beta15 [packman] * hddtemp-debugsource: Debug sources for package hddtemp - 0.3_beta15 [packman] Then I just use a small script to parse the returned repository to get the url: 01:01 alchemy:~/linux/scripts> bsurl packman The URL is: http://ftp.gwdg.de/pub/linux/misc/packman/suse/11.0/ To add the repository use: zypper ar -k http://ftp.gwdg.de/pub/linux/misc/packman/suse/11.0/ <repo.alias> Would you like to add this repository with zypper (yes/no)? : n Done... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2009-09-26 at 22:38 -0400, Greg Freemyer wrote:
What I normally want to know is what hard drives and usb drives are connected to a box. hwinfo shows that, but it is overkill for me.
la -l /dev/disk/by-label for example. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkq/VgAACgkQtTMYHG2NR9XWOgCeNd/Qy+zhPT3JNC+cARR1J+js rN8AoIJkzli9AvqXW5I2MgXKvs2B0E7C =hb+K -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2009-09-26 at 22:06 -0400, Robert P. J. Day wrote:
suggestions for command-line tools to examine the HW on a system? so far, i've got:
* "hwinfo" * "lspci" * "lsusb" * perusing under /proc * perusing under /sys
any others that would fit on that list? (i come from a fedora background so i'm not yet familiar with the suse-specific tools). thanks.
# lsscsi [0:0:2:0] disk COMPAQ BD14688278 HPB2 /dev/sda [0:0:3:0] disk COMPAQ BD14688278 HPB2 /dev/sdb [0:0:4:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdc [0:0:5:0] disk COMPAQ BD14687B52 HPB8 /dev/sdd [0:0:8:0] disk COMPAQ BD14687B52 HPB8 /dev/sde [0:0:9:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdf [0:0:11:0] disk COMPAQ BF3008B26C HPB9 /dev/sdg [0:0:12:0] disk COMPAQ BF3008B26C HPB9 /dev/sdh [0:0:13:0] disk COMPAQ BD30089BBA HPB1 /dev/sdi [0:0:14:0] disk COMPAQ BF3008B26C HPB9 /dev/sdj [0:0:15:0] disk COMPAQ BF3008B26C HPB9 /dev/sdk [2:0:0:0] disk WD 10EAVS External 1.05 /dev/sdl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 27 Sep 2009, Hans Witvliet wrote:
On Sat, 2009-09-26 at 22:06 -0400, Robert P. J. Day wrote:
suggestions for command-line tools to examine the HW on a system? so far, i've got:
* "hwinfo" * "lspci" * "lsusb" * perusing under /proc * perusing under /sys
any others that would fit on that list? (i come from a fedora background so i'm not yet familiar with the suse-specific tools). thanks.
# lsscsi [0:0:2:0] disk COMPAQ BD14688278 HPB2 /dev/sda [0:0:3:0] disk COMPAQ BD14688278 HPB2 /dev/sdb [0:0:4:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdc [0:0:5:0] disk COMPAQ BD14687B52 HPB8 /dev/sdd [0:0:8:0] disk COMPAQ BD14687B52 HPB8 /dev/sde [0:0:9:0] disk COMPAQ BD14689BB9 HPB1 /dev/sdf [0:0:11:0] disk COMPAQ BF3008B26C HPB9 /dev/sdg [0:0:12:0] disk COMPAQ BF3008B26C HPB9 /dev/sdh [0:0:13:0] disk COMPAQ BD30089BBA HPB1 /dev/sdi [0:0:14:0] disk COMPAQ BF3008B26C HPB9 /dev/sdj [0:0:15:0] disk COMPAQ BF3008B26C HPB9 /dev/sdk [2:0:0:0] disk WD 10EAVS External 1.05 /dev/sdl
ah, that's nice, i'd never seen that command before, thanks. and i see there a number of other "ls"-prefixed commands: lscpu, lsdev, and a bunch of others: # ls<TAB> i'm guessing some of those are simply repackaging of /proc content, just as "lsmod" is a repackaging of the contents of /proc/modules. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Sep 27, 2009 at 7:36 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
suggestions for command-line tools to examine the HW on a system? so far, i've got:
* "hwinfo" * "lspci" * "lsusb" * perusing under /proc * perusing under /sys
any others that would fit on that list? (i come from a fedora background so i'm not yet familiar with the suse-specific tools). thanks.
rday
Worth printing out for reference: 20 Linux System Monitoring Tools Every SysAdmin Should Know http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html Jay -- Linux User 483705 | openSUSE 11.1, Ubuntu 9.04 (i686) w/ Windows XP Smolts Profile: http://www.smolts.org/client/show/?uuid=pub_b541a450-9bc1-45fd-beab-d46ee43a... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Robert P. J. Day (rpjday@crashcourse.ca) [20090927 04:07]:
any others that would fit on that list? (i come from a fedora background so i'm not yet familiar with the suse-specific tools).
A tip from the openSUSE conference: lshw. It's not suse-specific. Just go to http://software.opensuse.org/search , enter lshw and select the distro you're running. You'll want the packages lshw and lshw-gui. lshw's homepage is http://ezix.org/project/wiki/HardwareLiSter Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Carlos E. R.
-
Chuck Payne
-
David C. Rankin
-
Greg Freemyer
-
Hans Witvliet
-
Jay Mistry
-
Philipp Thomas
-
Rajko M.
-
Robert P. J. Day