Using LMS 3.2 to setup switches for archive config

Unanswered Question
Jan 22nd, 2010

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
david.fernandes... Fri, 01/22/2010 - 12:32

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

Actions

This Discussion