“Swiss Army Knife” Untuk System Administratorml Blog

  • Upload
    iwing

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

  • 7/28/2019 Swiss Army Knife Untuk System Administratorml Blog

    1/5

    Swiss Army Knife Untuk SystemAdministratorhttp://iwing.wordpress.com

    Mengumpulkan informasi system dari sebuah server memangterkadang sangat membosankan akan tetapi informasi tersebutsuatu ketika sangat dibutuhkan jika terjadi audit/maintenanceatau troubleshooting. System Administrator dapat menggunakanaplikasi/script cfg2html yang merupakan swiss army knifedalam hal mengumpulkan informasi-informasi yang diperlukan.Script cfg2html akan membuat file html dan plain ASCII dari

    system Linux yang kita gunakan.

    Step:

    1. Run command: rpm ivh cfg2html_file.rpm2. Move to destination folder of cfg2html files3. Run command: cfg2html

    [root@XXXXXX 20130601]# cfgcfg2html 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-01Path to Cfg2Html /usr/bin/cfg2html-linuxHTML Output File ./XXXXXX.htmlText Output File ./XXXXXX.txtPartitions ./XXXXXX.partitions.saveErrors logged to ./XXXXXX.errStarted at 2013-07-22 12:05:17WARNING USE AT YOUR OWN RISK!!! :-))

  • 7/28/2019 Swiss Army Knife Untuk System Administratorml Blog

    2/5

    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 utilityVersion 4.1.0 Date 1/3/2013 (c) Hewlett-Packard Company, 2013Firmware Revision = 1.55 Device type = iLO 3 Driver name = hpiloManagement 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 Agentthen please send the ./XXXXXX.tar.gz file to:

    [email protected] in the subject is stated: eg:

    Feedback please to: [email protected] 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

  • 7/28/2019 Swiss Army Knife Untuk System Administratorml Blog

    3/5

    - 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 BindingsLVM ----

    - 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 ----

  • 7/28/2019 Swiss Army Knife Untuk System Administratorml Blog

    4/5

    - 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

  • 7/28/2019 Swiss Army Knife Untuk System Administratorml Blog

    5/5

    - 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 TARballCustom 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--------------

    http://www.cfg2html.com/mailto:[email protected]?subject=cfg2html-linux_version_2.50-2012-06-01_/IDXDTRDTE2mailto:[email protected]?subject=cfg2html-linux_version_2.50-2012-06-01_/IDXDTRDTE2http://www.cfg2html.com/