rhncfg command not work !!

Posted on

sudo rhncfg-manager add --channel=channel-label /tmp/dcc_files.tar.gz

i tried to create new file inside rhncfg network but
i cant able to create the files even i tried create the sudo
user also
please let me know any one know about that !!!!!!!


sudo rhncfg-manager add --channel=config-dcc-rhel6-perf /tmp/dcchome.tar.gz


[ansibletest@shlpfdcas002 tmp]$ rhncfg-manager add --channel=config-dcc-rhel6-perf /tmp/dcchome.tar.gz
Using server name xmlrpc.rhn.redhat.com
Traceback (most recent call last):
File "/usr/bin/rhncfg-manager", line 46, in
sys.exit(Main().main() or 0)
File "/usr/share/rhn/config_common/rhn_main.py", line 197, in main
repo = getattr(repo_module, self.repository_class_name)()
File "/usr/share/rhn/config_management/rpc_repository.py", line 34, in init
repository.RPC_Repository.init(self, setup_network)
File "/usr/share/rhn/config_common/repository.py", line 306, in init
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in call
return self.__send(self.__name, args)
File "/usr/share/rhn/config_common/rpc_wrapper.py", line 192, in _request
return self._call_function(rpclib.Server._request, (self, methodname, params))
File "/usr/share/rhn/config_common/rpc_wrapper.py", line 186, in _call_function
raise_with_tb(e, save_traceback)
File "/usr/share/rhn/config_common/rpc_wrapper.py", line 168, in _call_function
ret = function(*arglist, **kwargs)
File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 386, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 171, in request
headers, fd = req.send_http(host, handler)
File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 721, in send_http
File "/usr/lib/python2.6/site-packages/rhn/connections.py", line 225, in connect
raise socket.error("Unable to connect to the host and port specified")
socket.error: Unable to connect to the host and port specified
[ansibletest@shlpfdcas002 tmp]$ sudo rhncfg-client channels
Using server name rhn.tvlport.com