Running snapshot
The syntax varies slightly from the Mx000 to the M10-x .The M10 requires a “-a” option to collect logs
from all chassis.
The two most common usages are described below. The first example for each platform does not
require physical presence at the system and works across the network. The second uses a USB
stick, and requires someone on site to install and remove the USB stick for transporting the data
to another system for upload. The command requires platadm or fieldeng privileges.
XSCF> snapshot -L F -t <username>@<hostname or IP addr>:<location to write to>
XSCF> snapshot -L F -d usb0,
XSCF> snapshot -a -L F -t <username>@<hostname or IP addr>:<location to write to>
XSCF> snapshot -a -L F -d usb0
Bear in mind, that the external media device connected to the XSCF’s USB port is expected to have
a partition 1, formatted with the FAT32 filesystem. The external USB device can have multiple
partitions, as long as partition 1 is FAT32. That partition will then be used by the snapshot
command. For more details on the snapshot command please visit the manual page.
XSCF> snapshot -L F -t [email protected]:/export/home/user Downloading Public Key from '192.168.70.21'... Public Key Fingerprint: 98:c0:ba:95:4d:70:9a:dc:24:01:09:5f:94:43:07:c7 Accept this public key (yes/no)? yes Enter ssh password for user 'root' on host '192.168.70.21': Setting up ssh connection to [email protected] Collecting data into [email protected]:/export/home/user/pegasus_192.168.70.21_2017-12-06T03-49-35.zip Data collection complete XSCF>
SSH: Could not resolve hostname XSCF> snapshot -L F -t [email protected]:/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"
===================================================
Unable to mount USB device
After inserting a USB memory stick into the maintenance port of an OPL 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”.
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.