Could not connect

Hi All,
I m trying to create new queue and it gives me this out put msg:

server@server1# qmgr -c “c q workq queue_type=e,enabled=t, started=t”
unknown host. qmgr: cannot connect to server q unknown host.

—>connected as root

Kind Regards,
Md

Please check whether PBS Server service is up and running
ps -ef | grep pbs_

yes the pbs is running…on this machine

  1. Please check the DNS ( hostname resolution)
  2. ping -c 4 cat /etc/pbs.conf | grep PBS_SERVER | cut -d"=" -f2

[root@server~]# ps -ef | grep pbs_
root 12633 1 0 Sep12 ? 00:00:21 /opt/pbs/sbin/pbs_comm
root 12648 1 0 Sep12 ? 00:00:33 /opt/pbs/sbin/pbs_sched
root 12953 1 0 Sep12 ? 00:02:16 /opt/pbs/sbin/pbs_ds_monitor monitor
postgres 13045 13013 0 Sep12 ? 00:00:42 postgres: postgres pbs_datastore 10.10.0.1(38433) idle
root 13069 1 0 Sep12 ? 00:02:45 /opt/pbs/sbin/pbs_server.bin
root 17509 10217 0 09:06 pts/2 00:00:00 grep pbs_


[root@server ~]# cat /etc/pbs.conf | grep PBS_SERVER | cut -d"=" -f2
server

[root@server ~]# ping -c 4 cat /etc/pbs.conf | grep PBS_SERVER | cut -d"=" -f2
ping: unknown host cat

Back tick is missing before “cat” and after “f2”

Please check:

  1. ping server
  2. pbs_hostn -v server
  3. cat /etc/hosts | grep server

To make sure “server” is resolved .

Hi adarsh,
[root@server ~]# ping server
64 bytes from server (172.16.0.1): icmp_seq=1 ttl=64 time=0.018 ms

[root@server ~]# pbs_hostn -v server
primary name: server (from gethostbyname())
aliases: server.local.com

aliases: server
aliases: server.local.com
address length: 4 bytes
address: 172.16.0.1 (16779786 dec) name: server
address: 172.17.0.200 (3355701258 dec) name: server
[root@server ~]# cat /etc/hosts | grep server
172.16.0.1 server server.local.com
172.17.0.200 server.local.com server

Best Regards,

This is the problem. “server” is assigned to two IP addresses.
IP ADDRESS <canonical_hostname > < alias >
The IP address should reverse resolve to the same hostname.

Adrash ,
So it is better to do it with qmgr prompt and run the commands that I sent before ?

Please try to execute those commands in the QMGR prompt on the PBS Server host itself.
Try to correct the /etc/hosts with respect to hostname of the PBS Server, make is unique to the IP address

1 Like