define procedure to get hostname for cisco ucs and nexus devices