02-17-2009 09:04 PM
Hi all,
Can anyone tell me the list of variables created by a MDS9000 switch by default?
So far I have found:
$(SWITCHNAME)
$(TIMESTAMP)
What else is there?
Sid
02-17-2009 09:34 PM
Why you ask?
Nice for scripting across multiple switches eg.
In my schedule jobs
copy startup-config tftp://xxx.xxx.xxx.xxx/$(TIMESTAMP).start.$(SWITCHNAME)_cfg.txt
I use it to backup my configs.
Sid
02-18-2009 02:55 AM
Those are the 2 default variables. You can add your own with the command 'cli var name
Once set, you can issue the command 'show cli variables' to see the names and values currently in place.
Hope this helps,
Mike
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide