07-01-2011 10:01 AM
Hi NG,
HW: WS-C2960S-48FPS-L
IOS: c2960s-universalk9-mz.122-58.SE1.bin
config:
archive
log config
logging enable
logging size 10
notify syslog contenttype plaintext
hidekeys
path tftp://IP.IP.IP.IP/path/$h.cfg
now show archive shows me following:
sh archive:
The next archive file will be named tftp://IP.IP.IP.IP/path/hostname.cfg-<timestamp>-0
a) what if i do not wish to have the timestamp appended?
if i specify the path like following i can atleast choose where the timestamp is inserted:
path tftp://IP.IP.IP.IP/path/$h__$t.cfg
now the file received on the tftp server looks like the following:
hostname__Jul--1-18-48-20.cfg-0
i don't like the format, is there any way to change or set it manually?
if not, i come back to question a), can i somehow turn it off?
thank you
Solved! Go to Solution.
07-01-2011 03:54 PM
Bad news all around. First, the archive code now always inserts the timestamp. The timestamp format cannot be changed.
07-02-2011 01:32 PM
I could not find any requests or bugs relating to making the date format customizable.
07-01-2011 03:54 PM
Bad news all around. First, the archive code now always inserts the timestamp. The timestamp format cannot be changed.
07-02-2011 02:07 AM
thanks joseph,
do you know if there are plans in order to have a customizable timestamp format such as
dd/mm/yyyy MIN/SEC done via variables?
thank you
07-02-2011 01:32 PM
I could not find any requests or bugs relating to making the date format customizable.
07-31-2014 05:43 AM
thanks for looking it up, much appreciated.
02-19-2013 06:49 PM
The overall s***y format cannot be changed, but the 'service timestamps log' can change some of what gets logged.
I would find the people responsible and fire them. While I commend the adding of a timestamp, the absolute lack of control over it's format and usage is absolutely horrible. Who in their right mind thinks that's a good format? Add to it, there's no way to turn off the now completely unnecessary revision tag. (the "-#" at the end.)
If I had a covered (read: non-EOL'd) device, you bet there'd be bugs logged against it.
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