Setting up a new infrastructure and their switches have an archival config like this, meaning that the config is written to the ftp path nominated every time a user issues the "wr mem" command and otherwise every 12 hours if there are changes. The "path" uses 2 variables namely $h == hostname of swtich and $t == time of archive upload.
archive
log config
logging enable
notify syslog contenttype plaintext
hidekeys
path ftp://windows-ftp-server/$h-$t
write-memory
time-period 720
Noticed however that this was not working on 2 out of 3 switches... when i looked into it it turned out to be only an issue when the $t variable was used.
After a quick pcap of what was going on (cisco's logs didnt give any info about this) i found the format of the time specified by $t on 2 of the swtiches was like this "Aug-27-07:37:06.147" while on the other it was in the format "Aug-27-12-01-16.548"... This was preventing the upload from working on 2 switches as there wree colons : in the file name, which arent a valid character for a windows filename. Given a windows FTP server was in use the upload failed. :(
I noticed that this was an issue on :
- c3750-advipservicesk9-mz.122-44.SE.bin
- c3750e-universalk9-mz.122-50.SE3.bin
But not on:
- c3750-ipservicesk9-mz.122-52.SE.bin
Upgraded all switches to 12.2(52) and things are looking better now.
No comments:
Post a Comment