Вы находитесь на странице: 1из 5

Swiss Army Knife Untuk System Administrator

http://iwing.wordpress.com

Mengumpulkan informasi system dari sebuah server memang terkadang sangat membosankan akan tetapi informasi tersebut suatu ketika sangat dibutuhkan jika terjadi audit/maintenance atau troubleshooting. System Administrator dapat menggunakan aplikasi/script cfg2html yang merupakan swiss army knife dalam hal mengumpulkan informasi-informasi yang diperlukan. Script cfg2html akan membuat file html dan plain ASCII dari system Linux yang kita gunakan.

Step: 1. 2. 3. Run command: rpm ivh cfg2html_file.rpm Move to destination folder of cfg2html files Run command: cfg2html

[root@XXXXXX 20130601]# cfg cfg2html cfg2html-linux cfgmaker [root@XXXXXX 20130601]# cfg2html ** HP Proliant Server detected; executing with HP Proliant Server logs **

--=[ http://come.to/cfg2html ]=----------------------------------------------Starting cfg2html-linux version 2.50-2012-06-01 Path to Cfg2Html /usr/bin/cfg2html-linux HTML Output File ./XXXXXX.html Text Output File ./XXXXXX.txt Partitions ./XXXXXX.partitions.save Errors logged to ./XXXXXX.err Started at 2013-07-22 12:05:17 WARNING USE AT YOUR OWN RISK!!! :-)) <<<<< --=[ http://come.to/cfg2html ]=----------------------------------------------Collecting: Linux System (Red Hat Enterprise Linux Server release A.B (Juralit-Park)) ..................................... Collecting: Cron and At .......... Collecting: Hardware .................. Collecting: Software ....... Collecting: Filesystems, Dump- and Swapconfiguration .......... Collecting: Multipath Configuration ........ Collecting: LVM .......... Collecting: Network Settings ..................................................... Collecting: Kernel, Modules and Libraries ................. Collecting: System Enhancements .. Collecting: Applications and Subsystems .......... Collecting: hp ProLiant Server Log- and configuration Files .Array Configuration Utility version 9.40.12.0 The Array Configuration Utility (ACU) allows you to configure and manage your storage through a web browser. Server Mode Usage: cpqacuxe [option] Options: (use one only) -h, --help Show this page. -v Show version information. -d, --disable-remote Disable remote connection (default). -R, --enable-remote Enable remote connection. -nosmh Start ACU running in local application mode. -connectiontimeout Secs Change the connection timeout to 'Secs'. Defaults to 10 seconds. -stop Stop the server. Note:

Make sure that you have gone through the following checklist: 1. Change the administrator password to something other than the default. 2. Only run ACU on servers that are on a local intranet or a secure network. 3. Secure the management port (port 2301 or 2381) on your network. HP Lights-Out Online Configuration utility Version 4.1.0 Date 1/3/2013 (c) Hewlett-Packard Company, 2013 Firmware Revision = 1.55 Device type = iLO 3 Driver name = hpilo Management Processor configuration is successfully written to file "-a" ................ Generating diagnostic report...done .. Collecting: Custom plugins . Collecting: Local files . The following files are included in your gzipped tarball file: If you created this CFG2HTML report on request of a HP support Agent then please send the ./XXXXXX.tar.gz file to: HPsupport_Global@hp.com Where in the subject is stated: <CASE:YOURCASEID> eg: <CASE:6000000000> Feedback please to: CFG2HTML@hp.com or twitter.com/cfg2html Thanks!

--=[ http://come.to/cfg2html ]=----------------------------------------------[root@XXXXXX 20130601]#

Hasil dari cfg2html bisa dilihat secara ringkas memberikan informasi-informasi berikut : XXXXXX --=[ http://come.to/cfg2html ]=----------------------------------------------Linux System (Red Hat Enterprise Linux Server release A.B (Juralit-Park)) ---- System description - CPU and Model info - CPU Freq Kernel Information - uname & hostname - Host alias - OS, Kernel version - Linux Standard Base Version - OS Specific Release Information (/etc/redhat-release) - POSIX Standards/Settings - locale specific information - System ulimit - System Configuration Variables - VM-Statistics 1 10 - VM-Statistics (Summary) - MP-Statistics - IO-Statistics - Used Memory and Swap - Detailed memory usage - Zoned Buddy Allocator/Memory Fragmentation and Zones - Uptime - Active Process - Tree Overview - Top load processes - Top memory consuming processes - reboots - Alias - inittab - Services Startup - Services Runlevel - Services Runlevel and dependencies

- default runlevel - current runlevel - IPC Status - IPC Summary - IPC Limits - integrity of password files - integrity of group files Cron and At ---- cron.allow not found! - cron.deny - For utility dmeventd-logwatch - For utility mrtg - For utility sysstat - /etc/crontab - No /etc/at.allow - /etc/at.deny - AT Scheduler Hardware ---- Physical Memory - DMI Table Decoder - List of Devices (lshal) - USB devices - PCI devices - ACPI - IoPorts - Interrupts - SCSI Components - SCSI Devices - SMART disk drive features and information - DMA Devices - Serial Devices - Serial ttyS0 - Serial ttyS1 - IDE Disks - CDROM Drive Software ---- Packages installed - Packages installed (sorted) - Packages installed, Name only (sorted) - Packages installed, Name and Vendor only (sorted) - RPM Query Tags - Software Development: Programs and Versions Filesystems, Dump- and Swapconfiguration ---- Filesystem Tab - Filesystems and Usage - All Filesystems and Usage - Filesystems parameters - Local Mountpoints - Disk Partition Layout - Disk Partitions to restore from - Disk Partitions - NFS Filesystems Multipath Configuration ---- Multipath Package Version - Multipath Service Status - Multipath Devices Basic Information - Multipath Devices Detailed Information - Multipath Configuration File - Device Mapper Files - Multipath Bindings LVM ---- Block Device Attributes - Volumegroup Device Files - LVM global info - Available Physical Groups - Available Volume Groups - Available Logical Volumes - Logical Volumes - Volumegroups - Physical Devices used for LVM Network Settings ----

- LAN Interfaces Settings (ifconfig) - LAN Interfaces Settings (ip addr) - Detailed NIC Statistics - Ethernet Settings for Interface bond0 - Ethernet Settings for Interface bond1 - Ethernet Settings for Interface bond2 - Ethernet Settings for Interface bond3 - Ethernet Settings for Interface eth0 - Ethernet Settings for Interface eth1 - Ethernet Settings for Interface eth2 - Ethernet Settings for Interface eth3 - Ethernet Settings for Interface eth4 - Ethernet Settings for Interface eth5 - Ethernet Settings for Interface eth6 - Ethernet Settings for Interface eth7 - Ethernet Settings for Interface eth8 - Ethernet Settings for Interface eth9 - Ethernet Settings for Interface eth10 - Ethernet Settings for Interface eth11 - LAN Configuration Files - Route Configuration Files - MII Status - MII Diagnostics - Network Routing - Network Neighbourhood - Routing Tables - Interfaces - TCP Daemons acceppting connection - UDP Daemons acceppting connection - Bonded Interfaces: bond0 - Bonded Interfaces: bond1 - Bonded Interfaces: bond2 - Bonded Interfaces: bond3 - Summary statistics for each protocol - Kernel Interface table - Masqueraded sessions - list of all sockets - /etc/hosts - IP forward - Firewall: iptables rules and chains - Firewall: iptables saved rules - hosts.allow - hosts.deny - /etc/xinetd.d/ section - DNS & Names - Email Aliases - NFSD and BIOD utilization - RPC (Portmapper) - XNTP Time Protocol Daemon - ntp.conf - FTP Login Shells - syslog.conf - host.conf - Simple Network Management Protocol (SNMP) - sshd config - ssh config Kernel, Modules and Libraries ---- GRUB Boot Manager - Files in /boot - Loaded Kernel Modules - Available Modules Trees - modprobe.conf (all settings) - modprobe related settings - Modules for the ramdisk - System boot - Kernel commandline - libc Version (getconf) - libc6 Version - libc6 Version (RPM) - Run-time link bindings - configured kernel variables at runtime

- configured kernel variables in /etc/sysctl.conf - Kernel I/O Elevator System Enhancements ---- xorg.conf Applications and Subsystems ---- Files in /usr/local/bin - Files in /usr/local/sbin - Files in /opt - Samba: SWAT-Port - Samba Configuration (testparm) - Samba Configuration (smb.conf) - BSD Printer Spooler and Printers - SYSV Printer Spooler and Printers - Printcap hp ProLiant Server Log- and configuration Files ---- HP Proliant Server model Information taken from dmidecode - Current Thermal Sensor, Fan & Power data - Proliant Integrated Management Log - Installation Log PSP 8.* using HP SUM - Detailed Installation Log PSP 8.* using HP SUM - /opt/hp/hp-snmp-agents/cma.conf file - /var/spool/compaq/cma.log Agents logfile - Individual Components Installation Log file (ROMBIOS/SA FW/iLO) - /etc/snmp/snmpd.conf file - HP ASM CLI command line output - Installation SYS logfile - anaconda kickstart file used during OS deployment - boot.log logfile (older boot.log logfiles in TARBALL) - dmesg logfile /var/log/dmesg - ACPID power boot / reboot log - HP SmartArray controllers Detected - Disk Partitions on Logical Drives - These files have been made or captured during CFG2html execution and should be in the zipped TARball Custom plugins ---Local files ---Sekian pengalaman saya mudah-mudahan bermanfaat. Ref: [1]. http://www.cfg2html.com/ [2]. Created 2013-06-12 19:12:41 with cfg2html-linux version 2.50-2012-06-01, Copyright and maintained by Ralph Roth, ROSE SWE, [3]. Credit to Kang Devan dan Mas Aldi yang telah memperkenalkan cfg2html ini kepada penulis.

------------Note!! Disclaimer:

WARNING, use this script AT YOUR OWN RISK --------------

Вам также может понравиться