I came accross a little problem and wondered if anyone else had also found this...
When installing a 3560G using the auto configure option (so the switch obtains a IP address and hostname from the DHCP server and then downloads the config from a tftp server)
(For reference, the doco is here http://www.cisco.com/en/US/products/hw/switches/ps5528/products_configuration_guide_chapter09186a0080878d41.html)
We found that the switch would boot up and straight away start CDP and at this point it does not have a hostname so the CDP advertisements are sending a hostname of switch. Once the IP address and hostname have been obtained via DHCP, the CDP advertisements do not change to the correct hostname, in fact it still shows switch. The only way to get the CDP advertisements correct is to save the config to NVRAM and reboot the switch.
Doing this, when the switch reboots, it would turn off the ports untill it has read all the config (thus stopping the wrong CDP advertisements going out any interface)
If anyone has come accross this before or has a fix, please let me know. Otherwise we think it to be a bug on the 3560G
The 3560G is running 12.2 (35)