Guest User

Untitled

a guest
May 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # CISCO EEM autowrite
  3. # Justin Guagliata
  4. # ensgrp.com
  5. #-------------------------------------------------------------------------------
  6. namespace import ::cisco::eem::*
  7. namespace import ::cisco::lib::*
  8.  
  9. set CURTIME [clock format [clock seconds] -format "%Y-%m-%d.%H:%M:%S"]
  10. set CURUSER $tcl_platform(user)
  11.  
  12. proc tftp{CURTIME CURUSER} {
  13.  
  14. exec[copy run tftp://10.0.0.1/$CURTIME.$CURUSER.working.cfg]
  15. }
Add Comment
Please, Sign In to add comment