Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Using LMS 3.2 to setup switches for archive config

Is there a way in LMS 3.2 to setup switches for using the archive config feature such that the filename could be automatically set to be the switch mgmt address or hostname?

So for the below example:

archive
log config
  logging enable
  notify syslog contenttype plaintext
path disk0:switch01.archive
write-memory
time-period 1440

Would there be a way to set (I'm guessing in netconfig) "path disk0:switch01.archive" with something like "path disk0:$HOSTNAME.archive" or "path disk0:$IP.archive" ?

-Dave

1 REPLY
New Member

Re: Using LMS 3.2 to setup switches for archive config

Nevermind. Figured out that there are variables in the path that I can use for this:

$h - hostname

$t - timestamp

archive
log config
  logging enable
  notify syslog contenttype plaintext
path disk0:$h-Backup-$t
write-memory
time-period 1440

152
Views
0
Helpful
1
Replies