************************************************** shivalik (Ver. 1.4) Details of this script can be found at https://algolog.tripod.com/postlnx.htm Send suggestions and bug reports to algolog@hd1.vsnl.net.in ************************************************** ### STEP 0 ### About this machine.... Report created on: Sun, 27 Feb 2005 01:02:42 +0000 Machine HOSTNAME= slack. The distribution and kernel on this machine Distribution details..... Slackware 10.1.0 Kernel details..... Linux version 2.4.29 (root@midas) (gcc version 3.3.4) #6 Thu Jan 20 16:30:37 PST 2005 Linux slack 2.4.29 #6 Thu Jan 20 16:30:37 PST 2005 i686 unknown unknown GNU/Linux ### STEP 1 ### A snapshot of all the files and directories An exhaustive listing of all files has been made and will be stored in /root/postinfo/otherfiles/snapshot.gz We also make a copy of the shivalik script in /root/postinfo/otherfiles/shivalik ### STEP 2 ### Vital statistics ---- cat /proc/meminfo --------- total: used: free: shared: buffers: cached: Mem: 63139840 58974208 4165632 0 15347712 18579456 Swap: 127954944 0 127954944 MemTotal: 61660 kB MemFree: 4068 kB MemShared: 0 kB Buffers: 14988 kB Cached: 18144 kB SwapCached: 0 kB Active: 15740 kB Inactive: 17436 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 61660 kB LowFree: 4068 kB SwapTotal: 124956 kB SwapFree: 124956 kB ======= mount ======== /dev/hda2 on / type reiserfs (rw) proc on /proc type proc (rw) /dev/hda3 on /tmp type reiserfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) ====== /etc/fstab ======= /dev/hda1 swap swap defaults 0 0 /dev/hda2 / reiserfs defaults 1 1 /dev/hda3 /tmp reiserfs defaults 1 2 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 ====== /etc/mtab ====== /dev/hda2 / reiserfs rw 0 0 proc /proc proc rw 0 0 /dev/hda3 /tmp reiserfs rw 0 0 devpts /dev/pts devpts rw,gid=5,mode=620 0 0 ---- cat /proc/partitions--------- major minor #blocks name 3 0 1048576 hda 3 1 124960 hda1 3 2 878976 hda2 3 3 44352 hda3 ---- fdisk -l --------- Disk /dev/hda: 1073 MB, 1073741824 bytes 64 heads, 63 sectors/track, 520 cylinders Units = cylinders of 4032 * 512 = 2064384 bytes Device Boot Start End Blocks Id System /dev/hda1 1 62 124960+ 82 Linux swap /dev/hda2 * 63 498 878976 83 Linux /dev/hda3 499 520 44352 83 Linux ---- df --------- Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 878944 181224 697720 21% / /dev/hda3 44344 32840 11504 75% /tmp ---- cat /proc/modules --------- ide-scsi 9392 0 pcnet32 16996 1 mii 2272 0 [pcnet32] crc32 2880 0 [pcnet32] agpgart 45092 0 (unused) ----- ifconfig ----- eth0 Link encap:Ethernet HWaddr 00:0C:29:FD:5E:30 inet addr:192.168.52.101 Bcast:192.168.52.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:222 errors:0 dropped:0 overruns:0 frame:0 TX packets:185 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:24158 (23.5 Kb) TX bytes:25980 (25.3 Kb) Interrupt:10 Base address:0x1080 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) --------dmesg------- Sun Feb 27 01:02:48 UTC 2005 Linux version 2.4.29 (root@midas) (gcc version 3.3.4) #6 Thu Jan 20 16:30:37 PST 2005 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009f800 (usable) BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved) BIOS-e820: 00000000000dc000 - 00000000000e0000 (reserved) BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000003ef0000 (usable) BIOS-e820: 0000000003ef0000 - 0000000003eff000 (ACPI data) BIOS-e820: 0000000003eff000 - 0000000003f00000 (ACPI NVS) BIOS-e820: 0000000003f00000 - 0000000004000000 (usable) BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved) BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved) 64MB LOWMEM available. On node 0 totalpages: 16384 zone(0): 4096 pages. zone(1): 12288 pages. zone(2): 0 pages. Kernel command line: auto BOOT_IMAGE=linux ro root=302 Initializing CPU#0 Detected 2390.326 MHz processor. Console: colour VGA+ 80x25 Calibrating delay loop... 4757.91 BogoMIPS Memory: 61540k/65536k available (1831k kernel code, 3544k reserved, 607k data, 120k init, 0k highmem) Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) Inode cache hash table entries: 4096 (order: 3, 32768 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) CPU: Trace cache: 12K uops, L1 D cache: 8K CPU: L2 cache: 512K CPU: After generic, caps: 1febfbff 00000000 00000000 00000000 CPU: Common caps: 1febfbff 00000000 00000000 00000000 CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 08 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) mtrr: detected mtrr type: Intel PCI: PCI BIOS revision 2.10 entry at 0xfd9a0, last bus=1 PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Using IRQ router PIIX/ICH [8086/7110] at 00:07.0 PCI: Cannot allocate resource region 4 of device 00:07.1 Limiting direct PCI/PCI transfers. Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 Journalled Block Device driver loaded pty: 512 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A Real Time Clock Driver v1.10f Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize loop: loaded (max 8 devices) Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX4: IDE controller at PCI slot 00:07.1 PIIX4: chipset revision 1 PIIX4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0x1410-0x1417, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0x1418-0x141f, BIOS settings: hdc:DMA, hdd:pio hda: VMware Virtual IDE Hard Drive, ATA DISK drive blk: queue c03ad460, I/O limit 4095Mb (mask 0xffffffff) hdc: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: attached ide-disk driver. hda: 2097152 sectors (1074 MB) w/32KiB Cache, CHS=520/64/63, UDMA(33) hdc: attached ide-cdrom driver. hdc: ATAPI 1X CD-ROM drive, 32kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.12 Partition check: hda: hda1 hda2 hda3 SCSI subsystem driver Revision: 1.00 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 md: linear personality registered as nr 1 md: raid0 personality registered as nr 2 md: raid1 personality registered as nr 3 md: raid5 personality registered as nr 4 raid5: measuring checksumming speed 8regs : 1001.600 MB/sec 32regs : 508.800 MB/sec pIII_sse : 638.000 MB/sec pII_mmx : 586.400 MB/sec p5_mmx : 618.000 MB/sec raid5: using function: pIII_sse (638.000 MB/sec) md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. LVM version 1.0.8(17/11/2003) Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 4096 bind 8192) Linux IP multicast router 0.06 plus PIM-SM NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. FAT: bogus logical sector size 0 UMSDOS: msdos_read_super failed, mount aborted. FAT: bogus logical sector size 0 FAT: bogus logical sector size 0 reiserfs: found format "3.6" with standard journal reiserfs: checking transaction log (device ide0(3,2)) ... for (ide0(3,2)) reiserfs: replayed 7 transactions in 1 seconds ide0(3,2):Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. Freeing unused kernel memory: 120k freed Adding Swap: 124956k swap-space (priority -1) Linux agpgart interface v0.99 (c) Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 28M agpgart: Detected Intel 440BX chipset agpgart: AGP aperture is 64M @ 0xf4000000 pcnet32.c:v1.30h 06.24.2004 tsbogend@alpha.franken.de PCI: Found IRQ 10 for device 00:11.0 pcnet32: PCnet/PCI II 79C970A at 0x1080, 00 0c 29 fd 5e 30 assigned IRQ 10. eth0: registered as PCnet/PCI II 79C970A pcnet32: 1 cards_found. scsi0 : SCSI host adapter emulation for IDE ATAPI devices reiserfs: found format "3.6" with standard journal reiserfs: checking transaction log (device ide0(3,3)) ... for (ide0(3,3)) ide0(3,3):Using r5 hash to sort names ### STEP 3 ### Now we save some important files from /etc The following files from /etc have been copied to /root/postinfo/etcfiles fstab hosts.deny logrotate.conf nsswitch.conf smartd.conf genpowerd.conf hosts.equiv modprobe.conf pear.conf syslog.conf host.conf inittab modules.conf profile updatedb.conf hosts ld.so.conf mtab resolv.conf hosts.allow lilo.conf networks serial.conf in /root/postinfo/otherfiles cp /etc/init.d/boot.local /root/postinfo/otherfiles cp /etc/init.d/halt.local /root/postinfo/otherfiles ========= environment variables ======== MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man HOSTNAME=slack. SHELL=/bin/bash TERM=xterm-color SSH_CLIENT=192.168.52.1 34002 22 SSH_TTY=/dev/pts/0 USER=root LS_COLORS= MINICOM=-c on PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games MAIL=/var/mail/root LC_COLLATE=C PWD=/root INPUTRC=/etc/inputrc LANG=en_US HOME=/root SHLVL=2 LS_OPTIONS= --color=auto -F -b -T 0 LOGNAME=root LESS=-M SSH_CONNECTION=192.168.52.1 34002 192.168.52.101 22 LESSOPEN=|lesspipe.sh %s _=/usr/bin/env ============aliases========= ### STEP 999 ### Wrap up, clean up, sum up This is the contents of /root/postinfo /root/postinfo: total 14 drwx------ 2 root root 736 Feb 27 01:02 etcfiles drwx------ 3 root root 232 Feb 27 01:02 otherfiles -rwx------ 1 root root 11468 Feb 27 01:02 summary /root/postinfo/etcfiles: total 84 -rwx------ 1 root root 483 Feb 27 01:02 fstab -rwx------ 1 root root 2006 Feb 27 01:02 genpowerd.conf -rwx------ 1 root root 27 Feb 27 01:02 host.conf -rwx------ 1 root root 633 Feb 27 01:02 hosts -rwx------ 1 root root 293 Feb 27 01:02 hosts.allow -rwx------ 1 root root 296 Feb 27 01:02 hosts.deny -rwx------ 1 root root 320 Feb 27 01:02 hosts.equiv -rwx------ 1 root root 2464 Feb 27 01:02 inittab -rwx------ 1 root root 60 Feb 27 01:02 ld.so.conf -rwx------ 1 root root 994 Feb 27 01:02 lilo.conf -rwx------ 1 root root 1060 Feb 27 01:02 logrotate.conf -rwx------ 1 root root 0 Feb 27 01:02 modprobe.conf -rwx------ 1 root root 0 Feb 27 01:02 modules.conf -rwx------ 1 root root 127 Feb 27 01:02 mtab -rwx------ 1 root root 236 Feb 27 01:02 networks -rwx------ 1 root root 1083 Feb 27 01:02 nsswitch.conf -rwx------ 1 root root 648 Feb 27 01:02 pear.conf -rwx------ 1 root root 2410 Feb 27 01:02 profile -rwx------ 1 root root 36 Feb 27 01:02 resolv.conf -rwx------ 1 root root 2948 Feb 27 01:02 serial.conf -rwx------ 1 root root 3891 Feb 27 01:02 smartd.conf -rwx------ 1 root root 1573 Feb 27 01:02 syslog.conf -rwx------ 1 root root 206 Feb 27 01:02 updatedb.conf /root/postinfo/otherfiles: total 173 -rwx------ 1 root root 0 Feb 27 01:02 aliases -rwx------ 1 root root 518 Feb 27 01:02 enviro drwx------ 2 root root 48 Feb 27 01:02 myscripts -rwx------ 1 root root 45 Feb 27 01:02 oldpostinfo.tar.gz -rwx------ 1 root root 4086 Mar 28 2004 shivalik.gz -rwx------ 1 root root 161756 Feb 27 01:02 snapshot.gz /root/postinfo/otherfiles/myscripts: total 0 ###### THE END #####