[PTA] - How to check connectivity to the Vault

[PTA] - How to check connectivity to the Vault

86
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:03 PM


Objective


The standard OVF image does not provide tools like telnet / nc / nmap to test connectivity.
We can use python to test the connectivity..


Environment


9.7;9.9;9.10;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10

Procedure


Start Python:
[root@PTAServer /]# python
Python 2.7.5 (default, Apr  9 2019, 14:30:50)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> conn=socket.create_connection(('<vault IP>',<port>))
>>> 

Example:
>>> conn=socket.create_connection(('vault-ip-address',1858))

If the connection is successful, then there will be no error and just:
>>>>

Otherwise you will get:
>>> conn=socket.create_connection(('10.10.1.27',1858))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/socket.py", line 571, in create_connection
    raise err
socket.error: [Errno 111] Connection refused
>>>

Exit Python with exit()
>>>> exit()



 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj000000161nCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail