How to determine what IPs are being used for incoming / outgoing server communication
- Product: Aleph
- Product Version: 20, 21, 22, 23
- Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care
Description
The following Unix commands are executed via the command line and will allow the user to determine what IPs are being used for various incoming and outgoing communication on a server.
Resolution
ping:
The ping command returns the incoming IP of the device or server, so if a ping is run on an incoming hostname the incoming hostname's IP will be returned.
Examples:
primo@fe0101(p4_1):~...pds/conf_table$ping ldap.exl.edu
PING ldap.exl.edu (129.110.10.41) 56(84) bytes of data.
64 bytes from ldap.exl.edu (129.110.10.41): icmp_seq=1 ttl=241 time=25.4 ms
64 bytes from ldap.exl.edu (129.110.10.41): icmp_seq=2 ttl=241 time=25.4 ms
64 bytes from ldap.exl.edu (129.110.10.41): icmp_seq=3 ttl=241 time=25.1 ms
curl:
When an Ex Libris hosted server attempts to talk to an external server (e.g. customer's server) it will head outbound as the IP address that is returned when the curl command is used.
Example:
primo@fe0101(p4_1):~...pds/conf_table$curl icanhazip.com
64.74.237.229
showurl:
The showurl command allows the user to retrieve the URLs that are utilized for accessing the User Interfaces of that environment. For Primo if the Front End, Back End, or the PDS URLs are needed, running showurl on the command line will return these URLs. This is helpful in the case where several servers comprise an environment (e.g. multiple Front Ends), but are all behind a Load Balancer and the Load Balancer uses one hostname (in the URL) for external access to these servers.
Example:
primo@fe0101(p4_1):~...pds/conf_table$showurl
BE http://primo-pmtna01.hosted.exlibrisgroup.com:1601/primo_publishing/admin/acegilogin.jsp
FE http://primo-pmtna01.hosted.exlibrisgroup.com/primo_library/libweb/action/search.do?vid=default
PDS https://primo-pmtna01.hosted.exlibrisgroup.com/pds
nslookup:
If nslookup is used on the command line with a server's hostname, the result is that server's hostname and its associated IP. This can be used to find the external IP that is seen outside of a network, and that is used to receive incoming request from outside traffic. In that sense it is similar to the 'ping' command.
Example:
primo@fe0101(p4_1):~...pds/conf_table$nslookup primo-pmtna01.hosted.exlibrisgroup.com
Server: 10.28.244.11
Address: 10.28.244.11#53
Non-authoritative answer:
Name: primo-pmtna01.hosted.exlibrisgroup.com
Address: 64.74.237.193
Additional information
Acronyms Legend:
BE = Back End server
DB = Database server
FE = Front End server
SE = Search Engine server
- Article last edited: 16-Mar-2016