07-11-2013 10:44 AM
Hello I try found easy way add current data and time stamp to my file (generated from TCL script)
syslog message type is:
Jul 11 21:39:31: %ILPOWER-5-IEEE_DISCONNECT: Interface Fa0/6: PD removed
I plan do it uses
regular variables
array set arr_einfo $marr_einfo(1)
set syslog_msg [regexp {first 17 simbols}$arr_einfo(msg)]
Maybe I not see more easy way?
Thank you.
Solved! Go to Solution.
07-11-2013 11:30 AM
Just use arr_einfo(event_pub_time).
07-11-2013 11:30 AM
Just use arr_einfo(event_pub_time).
07-11-2013 11:26 PM
Hello Joseph, thank you for reply. I try use this erly and i recieve not regular data (unix time)
It is normal?
1373609941.467
07-11-2013 11:48 PM
I cannot fount, than format Cisco provide for this variable arr_einfo(event_pub_time) [current time or unix epoch timestamp]
But on my devise work this code:
set syslog_time [clock format $arr_einfo(event_pub_sec)]
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