Thursday, May 8, 2014

Data collection tools

You may need below tools to collect information from OS for support or troubleshooting.
  • DSET

Dell System E-Support Tool (DSET) provides the ability to collect hardware, storage and operating system information from a Dell PowerEdgeTM  server.
1.  chmod +x /opt/xxx/RPMS/delldset_v2.0.0.119_A00.bin
2.  /opt/xxx/RPMS/delldset_v2.0.0.119_A00.bin
3.  "q" to proceed
4.  "y" to accept license
5.  "2" for create DSET
6.  Enter company name
7.  Enter email address
8.  Skip collecting info for all hardware  categories(y/n):  n
9.  Skip collecting info for all storage  categories(y/n):  n
10. Skip collecting info for all software  categories(y/n):  n
11. Skip collecting any non-Linux log  files(y/n):  n
12. Append report filename with  timestamp(y/n):  y
13. Collect various advanced  logs(y/n):  y
14. Do you need to store in a different  location(y/n):  n
The output zip file has a password of "Dell."
If you extract the 
files to a folder and double click the dsetreport.hta file, it opens a 
browser with all the details displayed clearly.
15. service iptables  stop
Note:
Running this command enables iptables when the answer to question "Skip collecting info for all software categories(y/n):" is  'n'.
Ensure that you revert iptables to it's original status after running the Dell DSET command.
The following commands can be used to administer  iptables:
 
service iptables  status /* Determine the current  iptables status */
service iptables  stop   /* Stop  iptables */
service  iptables start  /* Start  iptables */ 
  • Tcpdump

For example, collect tcpdump from interconnect NICs(eth2&eth3) on one server.
netstat -s > `hostname`-netstat-s-before
netstat -nat  > `hostname`-netstat-nat-before
/usr/sbin/tcpdump -i eth2 -s 256 -w /data1/tcpdump-`hostname`-eth2.out &
/usr/sbin/tcpdump -i eth3 -s 256 -w /data1/tcpdump-`hostname`-eth3.out &
When done, run "killall tcpdump", then:
netstat -s > `hostname`-netstat-s-after
netstat -nat  > `hostname`-netstat-nat-after
  • sosreport

Refer to https://access.redhat.com/knowledge/solutions/3592
The sosreport command is a tool that collects configuration and diagnostic information from a Red Hat Enterprise Linux system. For instance: the running kernel version, loaded modules, and system and service configuration files. The command also runs external programs to collect further information and stores this output in the resulting archive.
1.  To run sosreport the sos package must be installed. The package is part of the default group and will be installed automatically on most systems.
# rpm -qa|grep sos
sos-1.7-9.49.el5
# which sosreport
/usr/sbin/sosreport
2.  Run "sosreport" using root user.
# sosreport
Press ENTER to continue
Please enter your first initial and last name [xxx]: xxx
Please enter the case number that you are generating this report for: 1234567
(......)
 
Your sosreport has been generated and saved in:
  /tmp/sosreport-xxx.1234567-483837-c685b8.tar.bz2
 
The md5sum is: d96a3310cfbe552d506ed82358c685b8
 
Please send this file to your support representative.
  • sysinfo

[root]# sysinfo

        Intel System Information Retrieval Utility Version 11.0 Build 11
        Copyright (c) 2012 Intel Corporation

        The following operations generate txt format log files in the directory
        "LogFiles" which contains proprietary system information that is
        useful to the manufacturer for problem resolution:

        a.      sysinfo_log.txt
        Platform Firmware Inventory, Sensor information, Sensor Data Records,
        BMC SEL (in human readable form), BMC SEL (in hex form),
        Base Board FRU, System BMC Boot Order, BMC User Settings,
        BMC LAN Channel Settings, BMC SOL Channel Settings,
        BMC Power Restore Policy Settings, BMC channel settings,
        SMBIOS Type 1, Type 2, Type 3, Processor,Memory, OS, BIOS settings

        b.      RAID_NVRAMlog.txt (RAID settings and RAID log)

        c.      OS_Eventlog.txt (Operating System Event Log).
        d.      PCI_log.txt (PCI Device Information Log).
        None of these operations change existing configuration of the system or
        read application data on any of the hard drives.
        ** The files contain NO personal information. **

Would you like to continue? [Y/N]
Y


        System Information Retrieval is in progress and may take upto 2 minutes ..
        System Information Retrieval and logging is successful.

         Log files created are: sysinfo_log.txt, RAID_NVRAMlog.txt, OS_Eventlog.txt, PCI_log.txt 

No comments:

Post a Comment

Popular Posts