eject memorycard

eject memorycard

Description

Ensures that the compact flash card or USB 2.0 storage device can be safely removed from the switch.

Syntax Description

This command has no arguments or variables.

Default

N/A.

Usage Guidelines

After the switch writes to a compact flash card or USB 2.0 storage device, and before you can view the contents on the device, you must ensure it is safe to remove the device from the switch. Use the eject memorycard command to prepare the device for removal. After you issue the eject memorycard command, you can manually remove the device.

If the configure debug coredumps memorycard command is in effect when you issue the eject memorycard command, the behavior is similar to issuing the configure debug coredumps off command.

For more information about removing a compact flash card or USB 2.0 storage device, refer to the hardware documentation.

To access and read the data on the card, use a PC with appropriate hardware such as a compact flash reader/writer and follow the manufacturer‘s instructions to access the compact flash card and read the data.

Example

The following command prepares a compact flash card or USB 2.0 storage device to be removed from the switch:

eject memorycard

On the BlackDiamond X8 switch, there are two USB ports, and so the command indicates which port is being ejected.

If only USB slot 1 has a USB storage device:

BD-X8.3 # eject memorycard
sync filesystem...
unmount filesystem...
memorycard unmounted from USB-1

If both USB slots have a USB storage device:

BD-X8.3 # eject memorycard
sync filesystem...
unmount filesystem...
memorycard unmounted from USB-1
memorycard auto-mounted on USB-2
Note

Note

When both USB slots have a USB storage device, the first one inserted is the one currently visible to the user. If both devices were left in the slots since the last reboot, the system may make either one visible to the user, that is, it is not deterministic.

History

This command was first available in ExtremeXOS 11.1.

Support for USB 2.0 storage devices was added in ExtremeXOS 12.5.3.

Platform Availability

This command is available on all platforms.