I'd like my wsadmin script to verify that it is talking to a Deployment Manager as opposed to a Node Agent or App Server.

Is there a way to tell that you are connected to a DM? I don't think that can be done but it would be nice.