Pbsnodes Error Message Cannot resolve default server host

After I installed torque whenever I tried pbsnodes I got the the following error message
#pbsnodes
Cannot resolve default server host 'master.rhel5.com' - check server_name file.
pbsnodes: cannot connect to server master.rhel5.com, error=15008 (Access from host not allowed, or unknown host)
(or)
Cannot connect to default server host 'master.rhel5.com' - check pbs_server daemon.
pbsnodes: cannot connect to server master.nice.com, error=111 (Connection refused)
change the /etc/sysconfig/network change the hostname
PROBLEM
while Installed and configured pbs torque in the /var/spool/torque/server_name we will add there
server name For here I entered the wrong server Host name.
SOLUTION
we need to confirm whether Master Server Host name and /var/spool/torque/server_name both are same or not.It is not same then we need maintain the same host name for server and /var/spool/troque/server_name, then check it the problem has been resolved.
NOTE: we need to maintain the same Host name in /var/spool/torque/server_name for node (client system) also. Error Message :Cannot resolve default server host 'master.rhel5.com' - check server_name file.
pbsnodes: cannot connect to server master.rhel5.com, error=15008 (Access from host not allowed, or unknown host)
(or)
Cannot connect to default server host 'master.rhel5.com' - check pbs_server daemon.
pbsnodes: cannot connect to server master.nice.com, error=111 (Connection refused)
change the /etc/sysconfig/network change the hostname

Related post