cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
512
Views
5
Helpful
2
Replies

Scripting

User_4444_2
Level 1
Level 1

I want to use "cli var" command to setup a variable for the sh clock command, "cli var name time sh clock".

So I can run a script and use the variable to add the output of sh clock to "copy run tftp://10.*.*.*/Switch1A-$ time" so the sh clock would get added to the end of the file. I'm not a scripting person, so I might be talking rubbish.

Thanks


1 Accepted Solution

Accepted Solutions

dynamoxxx
Level 5
Level 5

how about you use built-in timestamp variable, like this:

copy startup-config tftp://192.168.1.7/switchA1.$(TIMESTAMP)

@dynamoxxx

View solution in original post

2 Replies 2

dynamoxxx
Level 5
Level 5

how about you use built-in timestamp variable, like this:

copy startup-config tftp://192.168.1.7/switchA1.$(TIMESTAMP)

@dynamoxxx

That did the trick.

Thanks

Review Cisco Networking for a $25 gift card