I have an Array that I have setup in a bash script. My goal is to ping through a particular port on a a server with many network interfaces. For example the ping -I eth3 172.26.0.1 command to force ping through eth3 When I setup a bash Array I can get code to work if I call the Elements (ports)
Tag: networking
auditing opened/closed ports on Linux
Is there an auditing tool to check which and when ports are opened and closed on Linux? My goal is to run my application and check its ports usage. lsof or netstat don’t fit because they just tell me which ports are currently opened, and looping on such command won’t give me accurate results… Answer strace will displays the bind
How does netstat determine symbolic hostname?
I was trying to understand what the –numeric/-n flag of netstat does? Manual says the following about –numeric/-n –numeric , -n Show numerical addresses instead of trying to determine symbolic host, port or user names. Following is a line of output with “-n” option Following is the same line as in A but without “-n” option port 8080 in my
How to add a name to namespace?
As I know, I can use the “clone” to create a process and a namespace, but the namespace created in this way has no name. For example, I create a network namespace with the parameter: CLONE_NEWNS, but in the command “ip netns list”, there is no namespace list because the namespace created has no name. But I can use the
DHClient override renewal time
My ubuntu machine is receiving a renewal time of 7000 seconds from the DNS server. I want to change this on the ubuntu machine to be longer via the dhclient.conf. I can’t change the dhcp sever. However all the examples I try don’t seem to be the correct syntax. For instance if I add at the top of the .conf
Cannot send or receive packets from my VirtualBox debian linux VM using UDP
For the sake of simplicity, I will refer you to http://en.wikipedia.org/wiki/Berkeley_sockets and the UDP server and client source code there. I am trying to send a packet using UDP protocol to a linux VirtualMachine server program. Both my host and VM ping well; all packets sent are received in both directions. However my server program is either not receiving any
Combining sento() write writev()?
I’ve set a udp socket and call sendto() with a different recipient at each call. I would like to use writev() in order to benefit scater/gather io but writev() does not allows me to specify the recipient addr/port as in sendto(). Any suggestions? Answer You can use writev to send a coalesced set of buffers to a single end point
ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Minimizing copies when writing large data to a socket
I am writing an application server that processes images (large data). I am trying to minimize copies when sending image data back to clients. The processed images I need to send to clients are in buffers obtained from jemalloc. The ways I have thought of sending the data back to the client is: 1) Simple write call. 2) I obtain
Linux Mandriva: Tomcat can not get MySQL database connection, why?
I installed Tomcat 7 and MySQL database on Linux Mandriva, but the application is deployed in the container can not get a connection. I wrote two simple tests, and when to run them from the client, I get the connection – Part of HibernateUtil – Jdbc test – In these cases, I get a connection and can work with the