Using an SD Card with the Cisco IE 2000 Switch
Inserting and Removing an SD Card
First Published: February 2014
This document explains how to use a Secure Digital (SD) flash memory module (SD card) with the Cisco IE 2000 Switch.
This document contains these sections:
■Inserting and Removing an SD Card
The Cisco IE 2000 Switch includes an SD card slot that supports an optional Cisco SD flash memory module (SD card).
The SD card can be used instead of the internal flash memory of the switch to update or restore configuration settings. In addition, the SD card can be used to boot the switch. You can also copy IOS software and switch configuration settings from a PC or from the switch to the SD card, and then use the SD card to copy this software and settings to other Cisco IE 2000 Switches.
When an SD card is formatted on the switch, the card is formatted with the Disk Operating System Filing System (DOSFS), a platform-independent industry-standard file system that is supported on various Cisco switches and routers.
The switch does not support third-party SD cards or SD High Capacity (SDHC) cards. Attempting to operate the switch with a non-supported card causes the following message to be displayed:
Note: If the write-protect switch on the SD card is in the lock position, the switch can read data on the card and boot from the card, but updates and files cannot be written to the card.
To put an SD card in the switch, make sure that the card is oriented properly, and press it into the SD card slot on the switch until the card is seated. To remove the card, press it to release it, then pull it out of the slot.
The SD card is hot-swappable, but it should not be removed from the switch during the boot process or while sdflash write is in progress.
When an SD card is inserted, a syslog message similar to the following is logged:
When an SD card is removed, a syslog message similar to the following is logged:
The SD card can be accessed by either the switch boot-loader or by Cisco IOS. The following sections describe the operations that can be performed by the controlling software:
Note: An SD Flash Manufacturer UNSUPPORTED message is seen during Cisco IOS boot up on switches that are installed with an SD card having a manufacturer ID of 89h and running Cisco IOS versions prior to 15.2(5)E2c. If the IOS on the switch is upgraded to 15.2(5)E2c or later, this error message does not appear. You can ignore this message; it does not affect the usage of the SD card or any other feature/functionality on the switch. (CSCvi24211).
The following boot loader commands can be executed on the SD card:
■boot—Load and boot an executable IOS image
■cat—Concatenate (type) file or files
■dir—List files in directories
■fsck—Check file system consistency
■more—Concatenate (display) file
■rmdir—Delete empty directories
■sd_init—Initialize sd flash file systems
Important: The switch can be booted from its internal flash memory or from an SD card. The SD card takes precedence over internal flash memory. If an SD card is installed in the switch, the switch attempts to boot in the following order:
1. From the IOS image that is specified in the SD card system boot path
2. From the first IOS image in the SD card
3. From the IOS image that is specified in the internal flash memory system boot path
You can insert or remove an SD card while the IOS is running. If you insert a supported Cisco SD card while the IOS is running, the switch validates the Cisco embedded string in the Product Name (PNM) field and displays the product number and the flash capacity of the SD card. If you remove an SD card while the IOS is running, the switch displays a warning message to alert you that the SD card has been removed.
If syslog is enabled, the system also sends a message when the SD card is inserted or removed.
When an SD card is installed in a switch, the following IOS commands operate as described:
■ write command—Saves the running configuration. If the system boots from an SD card and you run a write command, the system saves the running configuration to the SD card, if the card is still installed. If the SD card has been removed, the system saves the running configuration to the internal flash memory and displays this message:
If the system boots from the internal flash memory and you then insert an SD card and run the write command, the system saves the running configuration to the internal flash memory.
■ boot command—Lets you change the system boot parameters.
If the system boots from an SD card and you run a boot command, the following behavior applies:
–If the SD card is installed and the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is saved to the SD card
–If the SD card is installed and the system boot path or configuration file path points to the internal flash memory, the system boot path or configuration file path is saved to the internal flash memory
–If the SD card has been removed and the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is not saved and the following message displays:
WARNING: The BOOT/config file path points to the
SD flash card and the SD flash card is not present.
The environment variable(s) is not saved.
NOTE: This warning message is displayed only once.
If the system boots from the internal flash memory and you then insert an SD card and run the boot command, the following behavior applies:
–If the system boot path or configuration file path points to the internal flash memory, the system boot path or configuration file path is saved to the internal flash memory
–If the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is saved to the SD card and the following message is displayed:
WARNING: The BOOT/config file path points to the
SD flash card. The environment variable(s) is
saved onto the SD flash card.
NOTE: This warning message is displayed only once.
— If the SD card has been removed and the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is not saved and the following message is displayed:
WARNING: The BOOT/config file path points to the
SD flash card and the SD flash card is not present.
The environment variable(s) is not saved.
NOTE: This warning message is displayed only once.
■ sync command—Copies the IOS image directory (which includes the IOS image file, FPGA image files, Device Manager files, and Profinet/CIP configuration files), the config.text IOS configuration file, the vlan.dat VLAN configuration file, and IOS boot parameters from the internal flash memory to the SD card or from the SD card to the internal flash memory. This command verifies that the IOS image is appropriate for the switch model and that enough destination flash memory is present, and aborts the sync process if a potential problem is detected. The sync command obtains the source IOS image directory path and source IOS configuration files path from the IOS boot parameters on the source flash device that is specified in the sync command. By default, this command overwrites the destination IOS image directory and IOS configuration files. The “save-old-files” option can be used to override this default behavior. If the running configuration has not been saved and you run the sync command, the switch provides the option for you to save the running configuration before the command executes.
–Switch# sync flash: sdflash: —Sync IOS image directory, configuration files, and boot parameters from internal flash memory to SD card.
–Switch# sync sdflash: flash: —Sync IOS image directory, configuration files, and boot parameters from SD card to internal flash memory.
–Switch# sync flash: sdflash: ios-image-name IOS_image_path —Sync the designated IOS image directory, configuration files, and boot parameters from internal flash memory to SD card. For example, IOS_image_path might be f lash:/ie2000-universalk9-mz.150-2.EA1/ie2000-universalk9-mz.150-2.EA1.bin.
–Switch# sync sdflash: flash: ios-image-name IOS_image_path —Sync the designated IOS image directory, configuration files, and boot parameters from SD card to internal flash memory. For example, IOS_image_path might be f lash:/ie2000-universalk9-mz.150-2.EA1/ie2000-universalk9-mz.150-2.EA1.bin.
–Switch# sync flash: sdflash: skip config.text vlan.dat —Sync only IOS image directory from internal flash memory to SD card.
–Switch# sync sdflash: flash: skip config.text vlan.dat —Sync only IOS image directory from SD card to internal flash memory.
–Switch# sync flash: sdflash: skip ios-image —Sync only IOS configuration files from internal flash memory to SD card.
–Switch# sync sdflash: flash: skip ios-image —Sync only IOS configuration files from SD card to internal flash memory.
–Switch(config)# auto sync enable —Auto sync SD card (described below).
The auto sync feature automatically copies the IOS image directory (which includes the IOS image file, FPGA image files, Device Manager files, and Profinet/CIP configuration files), the config.text IOS configuration file, the vlan.dat VLAN configuration file, and IOS boot parameters from the internal flash memory to the SD card or from the SD card to the internal flash memory at a given specific time every day or when the device boots up. When auto sync is in progress, the Express Setup LED on the switch blinks red.
Common Industrial Protocol (CIP) provides support for the auto sync feature.
Use the auto sync command and options to enable and configure auto sync. Use the no form of the commands to disable auto sync or the options. auto sync must be enabled for the auto sync command options to have effect.
■Switch(config)# [ no ] auto sync enable —Enable or disable the auto sync feature. The default is disabled.
■Switch(config)# [ no ] auto sync run no-flash-cfg-at-boot —Auto sync from SD flash to flash every time the device is booted up when the config.text file is not present in flash: drive. The default is disabled (no auto sync run no-flash-cfg-at-boot). If config.text file is present in the flash: drive, auto sync at boot does not occur.
■Switch(config)# auto sync [ sdflash | flash ]: [ flash | sdflash ]: [ ios-image-name | save-old-files|skip filename ]—Specifies the configuration to use for the auto sync:
–If ios-image-name is not specified, the image to copy is based on the boot system configuration.
–Primary storage is where the boot image resides. Sync is from the primary to secondary storage.
–If the destination is flash:, the contents are overwritten. If the destination is SD flash: no files are overwritten.
–The skip option skips sync of the specified file(s).
■Switch(config)# [ no ] auto sync run time [ hh : mm : ss ]—Run auto sync at the specified time every day. If no time is specified, auto sync runs every day at midnight.
When auto sync is triggered at the set time, it runs with the auto sync configuration options that you configured. If optional parameters are not configured, auto sync runs with the default configuration (see table below). If SD Flash is not present, auto sync is not triggered.
■Switch# show auto sync configuration —Display configuration settings. Example:
■Switch# show auto sync status —Display last auto sync time and status. Example:
The switch supports the following SD card alarms:
■SD Card Alarm—Enabled when the SD card is removed and cleared when the SD card is inserted
■SD Card Unsupported Alarm—Enabled when an unsupported SD card is detected
■SD Card Corrupt Alarm—Enabled when an SD card DOSFS corruption is detected
■SD Card Files Corrupt Alarm—Enabled when the IOS image specified in the SD Card system boot path is corrupted
It takes approximately 2 minutes to trigger the alarm relay (LED output) after an SD card is inserted or removed.
You also can configure alarms and traps that are associated with the SD card alarm to be sent to syslog and the SNMP server.
SD card alarms are disabled by default.
To use alarms, enter the alarm facility sd-card enable global configuration command to enable alarms, then enter the alarm f acility sd-card global configuration commands to associate the alarm to the relay:
Switch(config)# alarm facility sd-card enable
Switch(config)# alarm facility sd-card notifies
Switch(config)# alarm facility sd-card sysm
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
All printed copies and duplicate soft copies are considered un-Controlled copies and the original on-line version should be referred to for latest version.
Cisco has more than 200 offices worldwide. Addresses, phone numbers, and fax numbers are listed on the Cisco website at www.cisco.com/go/offices.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1721R)