How to register a Unix agent using a resource name