WTVT Tampa, when it was a CBS affiliate, used to identify itself, then run the commercials before going straight to the network. That means that many times they would punch up the network and WCBS's ID would come up seconds before the program started. That was not a one-time-only thing either.
And I have seen at least one occasion when a local station managed to get the ID of a neighboring station. One Sunday night, just before The FBI, then-ABC affiliate WBRC in Birmingham got the audio of Channel 11 Atlanta's ID (this is when 11 was also ABC). At school the next day those of us with ties to Atlanta couldn't resist talking about it.
My favorite story about ID snafus happened at the "little station that could," WYMT Hazard. KY. When it was an NBC affiliate the network would not run land lines into the underpopulated, mountainous terrain, and many times the outdated equipment would conk out, forcing the station to pick up by microwave either WCYB in Bristol, VA or WLEX Lexington. Whoever was in the control room was notorious for not cutting the out-of-town station's commercials or ID, so viewers in Hazard kept seeing ads for a particular auto dealer in Johnson City, TN. Within a short time the owner of the dealership began noticing cars coming in from Perry County, KY (where Hazard is) and he finally asked one driver how he knew about the place. We see your commercials all the time, the man said. I guess the car dealer wasn't too unhappy; he never took action against the station and he might have sold a few cars to boot.