This post describes the various ways to gather diagnostic data from either the XSCF or the domain and XSCF combined. Snapshot stores the collected data on a remote network host or on an external media device, based upon the use of the -T, -t or -d option. To store the collected data on a remote network host using the -t option, the command line must specify a host name (or IP address), a target directory on the remote network host, and the user name of a user on the remote host. When storing data on a remote network host, snapshot opens a network connection using SSH to act as a data pipe to the remote file.
Example of collecting a snapshot using the value for user@host:directory previously set using the set archiving command:
XSCF> snapshot -L F -T
Example of collecting a snapshot to host 10.140.0.21, as user mark, writing the snapshot file to directory /tmp/mark:
XSCF> snapshot -L F -t mark@10.140.0.21:/tmp/mark
Example of collecting a snapshot to an external USB stick:
XSCF> snapshot -L F -d usb0
Troubleshooting
1. SSH: Could not resolve hostname
XSCF> snapshot -L F -t username@hostname:/home/username Downloading Public Key from 'hostname'... Error downloading key for host 'hostname' - Program exited unexpectedly: /usr/bin/ssh - Output: "ssh: Could not resolve hostname [hostname]: Temporary failure in name resolution" Error with SSH settings
Resolution: Use the ip address instead of the host name
2. Unable to mount USB device
After inserting a USB memory stick into the maintenance port of an XSCF, snapshot reported that it is unable to mount the USB device.
Sun SPARC Enterprise M3000/M4000/M5000/M8000/M9000 (OPL) Servers: snapshot “Unable to mount USB device”.
Problem: The snapshot command expects the USB device to have a partition 1 with a fat32 filesystem. (/dev/sda1) If your device does not have any partitions, the XSCF will see your USB memory stick as /dev/sda. Without the partition snapshot will not be able to mount the device correctly and report “Unable to mount USB device”.
Resolution: To create a partition table on your USB stick, you can plug your USB memory stick into a Windows Computer, which should re-partition and format the device with one large partition as a FAT32 file system. This issue is fixed in XCP 1050.