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,

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 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

[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 ( icmp_seq=1 ttl=64 time=0.018 ms

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

aliases: server
address length: 4 bytes
address: (16779786 dec) name: server
address: (3355701258 dec) name: server
[root@server ~]# cat /etc/hosts | grep server server 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