openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting » Basic Script To Collect Hardware

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 27-May-2008, 07:53
D8TA
Guest
 
Posts: n/a
Default

I am new to Suse and was wondering if it is possible to have a script execute during boot that collects the hardware information, CPU, memory, disk sizes, etc and output and move the file to a network location with the hostname. I was looking at dmesg but not very fluent with scripting as was wondering if anyone has accomplish such a task? Basically, I am wanting to collect the hardware information from a few networked machines and have the output sent to a central location for review.
  #2 (permalink)  
Old 27-May-2008, 12:07
Snakedriver
Guest
 
Posts: n/a
Default

Quote:
I am new to Suse and was wondering if it is possible to have a script execute during boot that collects the hardware information, CPU, memory, disk sizes, etc and output and move the file to a network location with the hostname. I was looking at dmesg but not very fluent with scripting as was wondering if anyone has accomplish such a task? Basically, I am wanting to collect the hardware information from a few networked machines and have the output sent to a central location for review.
[/b]
hardware information
In a terminal as root do:
"lspci -v" or "lspci -vv" for a more verbose output

disk sizes, etc
"fdisk -l"

Cpu:
"cat /proc/cpuinfo"

Memory:
"cat /proc/meminfo"

and so on

All this is available in Yast > hareware info

Have fun
  #3 (permalink)  
Old 27-May-2008, 13:55
D8TA
Guest
 
Posts: n/a
Default

Quote:
hardware information
In a terminal as root do:
"lspci -v" or "lspci -vv" for a more verbose output

disk sizes, etc
"fdisk -l"

Cpu:
"cat /proc/cpuinfo"

Memory:
"cat /proc/meminfo"

and so on

All this is available in Yast > hareware info

Have fun
[/b]
Thanks for the info. I ran across Lister (lshw) that I am toying with and looks promising.
  #4 (permalink)  
Old 29-May-2008, 00:08
Hro
Guest
 
Posts: n/a
Default

Try hwinfo.
Quote from 'man hwinfo' "DESCRIPTION: hwinfo is used to probe for the hardware present in the system. It can be used to generate a system overview log which can be later used for support."
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2