What's in your wallet (i mean computer)?
What happens when computer people get together much like old car talk. What's in you machine? You want to say more than I don's know. The newest devices such as the touchpads, some netbooks, and etc. today are pretty much unfortunately throwaways. As for desktop computers, at least for a while you can upgrade them. It is very useful to know what equipment and and in some cases what software is on the inside. For insurance purposes, you would be well advised to have such a list tucked away in a safe deposit box or where ever. So I went on a little research expedition to find out what might be used to find out what is in my computer.
OS/X: (textedit to view)
You can go to the system profiler and output a text list of the hardware.
More info at: http://www.intego.com/services/systemProfiler.html and
http://macosx.com/forums/howto-faqs/26204-howto-list-your-installed-applications.html
Microsoft windows: (notepad to view)
A script for older systems: http://richardspowershellblog.wordpress.com/2007/07/21/hardware-reporting-script-vbscript-and-powershell-versions/
For MSWindows 7, I am told you can use the Devcon utility to print out to a file of the hardware. More information at:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff544746%28v=vs.85%29.aspxhttp://superuser.com/questions/278035/windows-7-device-manager-in-text-mode
Software list: http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/savingprinting-installed-programs-list/3f4a5253-d362-4765-a673-a4d552a67e7d
Debian based Linux: ([g or k]edit to view) (Other linux systems would be similar)
Wrote a batch file to get the information and save it to a file. A lot of the lines are commented out that would probably be used only for debugging. Additional files may have to be installed. Uncommenting those lines will create a humongous file.
usage: sudo ./hwinfo2file.sh filename
$ sudo ./hwinfo2file.sh My_desktop_computer_info
=================================
oesrvr104
getting stats and saving as My_desktop_computer_info.txt.
No LSB modules are available.
$ _
Cut and paste what is between the [code][/code] lines into a text file and then
$ chmod +x hwinfo2file.sh
hwinfo2file.sh
[code]
echo "================================="
cat /etc/hostname
echo "getting stats"
file=$1.txt
# file="system.txt"
echo " " > $file
echo "=====================================" >> $file
echo get computername >> $file
cat /etc/hostname >> $file
echo "=====================================" >> $file
echo get current ip connections >> $file
sudo ifconfig >> $file
echo "-------------------------------------" >> $file
echo get linux version >> $file
lsb_release -a >> $file
echo "-------------------------------------" >> $file
echo get memory specs >> $file
free >> $file
echo "-------------------------------------" >> $file
echo get file storage statistics >> $file
df -h >> $file
echo "-------------------------------------" >> $file
echo get mounted file system list >> $file
cat /etc/fstab >> $file
echo "-------------------------------------" >> $file
echo get pci specs >> $file
sudo lspci >> $file
echo "-------------------------------------" >> $file
echo get loaded modules >> $file
sudo lsmod >> $file
echo "-------------------------------------" >> $file
echo get current usb attachments. >> $file
sudo lsusb >> $file
echo "-------------------------------------" >> $file
echo get repos >> $file
cat /etc/apt/sources.list >> $file
# echo "-------------------------------------" >> $file
# echo get installed software >> $file
# sudo dpkg --get-selections >> $file
# echo "-------------------------------------" >> $file
# echo get hardware info >> $file
# sudo lshw >> $file
# echo "-------------------------------------" >> $file
# echo get scsi devices >> $file
# sudo lsscsi >> $file
echo "-------------------------------------" >> $file
echo display /etc/issue >> $file
cat /etc/issue >> $file
# echo "-------------------------------------" >> $file
# echo get boot up info >> $file
# dmesg >> $file
echo "-------------------------------------" >> $file
echo get users >> $file
cat /etc/passwd >> $file
echo "-------------------------------------" >> $file
echo get current users on system >> $file
who >> $file
# echo "-------------------------------------" >> $file
# echo get system messages >> $file
# cat /var/log/messages >> $file
# echo "-------------------------------------" >> $file
# echo get rootkit checker log >> $file
# cat /var/log/rkhunter.log >> $file
# echo "-------------------------------------" >> $file
# echo get syslog >> $file
# cat /var/log/syslog >> $file
echo "-------------------------------------" >> $file
echo get scheduled events >> $file
cat /etc/anacrontab >> $file
cat /etc/crontab >> $file
[/code]
Comments
Post a Comment