The best situation is to know the VTP password. So changing it during the next maintainance window will be the best solution.
As a quick and dirty workaround you could copy the vlan.dat file from an existing switch in your production environment into the new switch in a lab environment, as it contains the VTP config. Then do a manual cleanup BEFORE you add the switch to the existing network. Make sure you follow the guidelines described in the "Configuring VTP" section of the appropriate configuration guide when adding the new switch to your network.
ok mohammed, but this seems to be a new introduced command, because in my current (old)switches: cisco WS-C3548-XL ( Version 12.0(5)WC10) this command does not exist.
CS-BR-EG-03#sho vtp ?
counters VTP statistics
status VTP domain status
Ok, you are right, i tried it on one of my old 3548-XL and it didn't work, but you can do the following:
and you can find the password in the second line of the output (note that the output will contain a lot of scrambled strings).
No, the service password encryption affects the passwords saved on the startup/running configuration, and has nothing to do with the info stored in the vlan.dat file.