Wrong switch (-f) was used to retrive short hostname should have been -s