autosave

Automatically saves learned secure MAC addresses to the startup configuration at specified intervals.
Syntax
autosave time
no autosave time
Command Default

By default, secure MAC addresses are not autosaved to the startup-config file.

Parameters
time
The interval between two autosaves, in minutes. The valid range is from 15 through1440 minutes.
Modes

Port security configuration mode

Port security interface configuration mode

Usage Guidelines

The autosave feature saves learned MAC addresses by copying the running configuration to the startup configuration.

If you change the autosave interval, the next save occurs according to the old interval, and then the new interval takes effect. To change the interval immediately, disable autosave by entering the no autosave command, and then configure the new autosave interval using the autosave command.

The no form of the command disables autosave.

Examples

The following example saves learned secure MAC addresses every 20 minutes automatically.

device(config)# port security
device(config-port-security)# autosave 20

The following example saves learned secure MAC addresses every 20 minutes automatically on an interface.

device(config)# port security
device(config-port-security)# interface ethernet 1/1/1
device(config-port-security-e1000-1/1/1)# autosave 20