Skip to main content

Using the snap command to get a snapshot of system diagnostic information

If you have a hardware or software fault then running snap will give you important information that will help with the diagnosis of the fault. Also if you log a call with IBM they will quite often ask for a snap to be sent to them via email or ftp

Some examples of snap commands are shown below.

snap -r Always run snap -r to remove old snap information
snap -gLic Includes LVM information
snap -bgc Includes SSA information
snap -gRc Includes SCSI RAID information - in the pcixscsi.snap or in pciscsiraid.snap (find these at the bottom of snap contents list)

snap -d new_directory -ac Includes ALL information. Creates the snap output file in a directory specified by "new_directory". This directory should not exist as snap will create it. Without the -d flag the snap output is saved to /tmp/ibmsupt
Command syntax

snap [ options... ] [ -d dir ] [ -v component ]

-a Collects all system configuration information.
-A Collects asynchronous (tty) information.
-b Collects SSA information.
-c Collects a compressed tar image of all files in the specified directory.
-D Collects dump and /unix information.
-d dir Specifies an output directory.
-f Collects file system information.
-g Collects the output of the lslpp -hBc command.
-G Includes predefined ODM files in general information.
-i Collects installation debug vital product data information.
-k Collects kernel information.
-l Collects programming language information.
-L Collects LVM information.
-n Collects Network File System (NFS) information.
-N Doesn't check for free space.
-o outdevice Compresses the snapshot to a diskette or a tape.
-p Collects printer information.
-r Deletes any output from the /tmp/ibmsupt directory.
-R Collects SCSI RAID information.
-s Collects Systems Network Architecture information.
-S Includes security files in general information.
-t Collects TCP/IP information.
-v component Shows the output of the command s that have been executed by snap.
Example output from running snap -ac


Checking space requirement for general information...................... done.
Checking space requirement for tcpip information....

WARNING: Command 'netstat' is hanging due to an unresponsive server.
This will affect the filesystem requirement calculation and invalidate it.
If 'snap' fails due to lack of space it is due to this problem.

................................................ done.
Checking space requirement for nfs information............... done.
Checking space requirement for kernel information............... done.
Checking space requirement for printer information..... done.
Checking space requirement for dump information....... done.
Checking space requirement for sna information.../var/sna not found
 done.
Checking space requirement for filesys information........................ done.
Checking space requirement for async information.................. done.
Checking space requirement for lang information.......... done.
Checking space requirement for XS25 information..............................done.
Checking space requirement for install information... done.
Checking space requirement for ssa information.......... done.
Checking space requirement for logical volume manager information..................
Checking space requirement for Enhanced CLVM information..../tmp/ch.log.* not found
 done.
Checking space requirement for multicpu  trace files
/var/adm/ras/trcfile: No such file or directory
done.
..done.
Checking space requirement for platform/scanout informationPlatform dump is not supported on this system.done.

Comments

Popular posts from this blog

Synchronize Folders Between Computers and Drives with SyncToy 2.1

If you have a few different computers and drives, it can be annoying making sure the same data is each one you need. Today we take a look at making folder and data synchronization easier with the Microsoft SyncToy 2.1 utility. You might have a flash drive that you use to carry files and documents from the workplace to your home office and vice versa. Sometimes though, you might forget to copy the files you need over to the drive. With Microsoft’s SyncToy it allows you to easily make sure the data between drives and folders is synchronized everyday. There are a lot of reasons you might want to synchronize folders. For example, maybe you want to sync your My Pictures folder with the one at work, or sync your music at home with music on another computer. This is a free tool from Microsoft that was once part of the XP Power Toys but has continued to grow and improve. Installing SyncToy When you install SyncToy it also installs Microsoft Sync Framework 2.0 Core Components, which is t...

Windows Server Backup Step-by-Step Guide for Windows Server 2008

The Windows Server Backup feature provides a basic backup and recovery solution for computers running the Windows Server® 2008 operating system. Windows Server Backup introduces new backup and recovery technology and replaces the previous Windows Backup (Ntbackup.exe) feature that was available with earlier versions of the Windows operating system. What is Windows Server Backup? The Windows Server Backup feature in Windows Server 2008 consists of a Microsoft Management Console (MMC) snap-in and command-line tools that provide a complete solution for your day-to-day backup and recovery needs. You can use four wizards to guide you through running backups and recoveries. You can use Windows Server Backup to back up a full server (all volumes), selected volumes, or the system state. You can recover volumes, folders, files, certain applications, and the system state. And, in case of disasters like hard disk failures, you can perform a system recovery, which will rest...

[AIX] How to restart network service in AIX environment?

When network service like telnet connection hangs, then it is possible the inetd subsystem is not working properly. # refresh -s inetd 0513-095 The request for subsystem refresh was completed successfully. If the refresh hangs for some time and comes back with 0513-056 time out waiting for command response, then the inetd subsystem may not be working correctly and should then be killed nicely. Run #ps -ef | grep inetd and do a kill -15 on the process ID on the line that has /usr/sbin/inetd. Once inetd has been killed, type startsrc -s inetd. If inetd starts, try to telnet into the machine. If inetd does not start up successfully, or if telnet still hangs indefinitely, run kill -15 on the PID of inetd again. Back up the original /etc/inetd.conf file to a new file name by typing: # mv /etc/inetd.conf /etc/inetd.conf.backup The original template is in /usr/lpp/bos.net/inst_root/etc/. You can copy it by typing: # cp /usr/lpp/bos.net/inst_root/etc/inetd.conf /etc/inetd.conf Run start...