cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
419
Views
0
Helpful
1
Replies

Using LMS 3.2 to setup switches for archive config

david.fernandes
Level 1
Level 1

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 1

david.fernandes
Level 1
Level 1

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