Skip to content

Instantly share code, notes, and snippets.

@ncopa
Created June 18, 2014 08:39
Show Gist options
  • Save ncopa/4759ec3d9c9023baf02f to your computer and use it in GitHub Desktop.
Save ncopa/4759ec3d9c9023baf02f to your computer and use it in GitHub Desktop.
a-edge:~$ strace fping vg.no
execve("/usr/sbin/fping", ["fping", "vg.no"], [/* 11 vars */]) = 0
mprotect(0xb7753000, 4096, PROT_READ) = 0
mprotect(0x746000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb775470c, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
set_tid_address(0xb7754724) = 1454
socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = -1 EPERM (Operation not permitted)
socket(PF_INET, SOCK_DGRAM, IPPROTO_ICMP) = 3
getuid32() = 1000
getuid32() = 1000
getuid32() = 1000
setuid32(1000) = 0
getpid() = 1454
open("/etc/hosts", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
readv(4, [{"", 0}, {"127.0.0.1\ta-edge.my.domain a-edg"..., 1024}], 2) = 66
readv(4, [{"", 0}, {"127.0.0.1\ta-edge.my.domain a-edg"..., 1024}], 2) = 0
close(4) = 0
clock_gettime(CLOCK_REALTIME, {1403080660, 931545877}) = 0
open("/etc/resolv.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
readv(4, [{"", 0}, {"nameserver 10.65.0.1\nWq\267\324\334\212\277\0\0\0\0"..., 248}], 2) = 21
readv(4, [{"", 0}, {"nameserver 10.65.0.1\nWq\267\324\334\212\277\0\0\0\0"..., 248}], 2) = 0
close(4) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 4
bind(4, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
clock_gettime(CLOCK_REALTIME, {1403080660, 931766947}) = 0
sendto(4, "z\233\1\0\0\1\0\0\0\0\0\0\2vg\2no\0\0\1\0\1", 23, MSG_NOSIGNAL, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.65.0.1")}, 16) = 23
poll([{fd=4, events=POLLIN}], 1, 2500) = 1 ([{fd=4, revents=POLLIN}])
recvfrom(4, "z\233\201\200\0\1\0\2\0\0\0\0\2vg\2no\0\0\1\0\1\300\f\0\1\0\1\0\1^"..., 512, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.65.0.1")}, [16]) = 55
close(4) = 0
rt_sigprocmask(SIG_UNBLOCK, [33 34], NULL, 8) = 0
rt_sigaction(SIGINT, {0x741c9f, [], SA_RESTORER|SA_RESTART, 0xb77141d8}, {SIG_DFL, [], 0}, 8) = 0
clock_gettime(CLOCK_REALTIME, {1403080660, 932646509}) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75d2000
clock_gettime(CLOCK_REALTIME, {1403080660, 932696118}) = 0
sendto(3, "\10\0\362Q\5\256\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, 16) = 64
select(4, [3], [], NULL, {0, 500050}) = 1 (in [3], left {0, 488320})
recvfrom(3, "\0\0\377\373\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, [16]) = 64
clock_gettime(CLOCK_REALTIME, {1403080660, 944578548}) = 0
select(4, [3], [], NULL, {0, 0}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080660, 944623209}) = 0
select(4, [3], [], NULL, {0, 488070}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080661, 433331914}) = 0
clock_gettime(CLOCK_REALTIME, {1403080661, 433359885}) = 0
sendto(3, "\10\0\362P\5\256\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, 16) = 64
select(4, [3], [], NULL, {0, 750020}) = 1 (in [3], left {0, 740936})
recvfrom(3, "\0\0\377\372\0\4\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, [16]) = 64
clock_gettime(CLOCK_REALTIME, {1403080661, 442614305}) = 0
select(4, [3], [], NULL, {0, 0}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080661, 442659081}) = 0
select(4, [3], [], NULL, {0, 740700}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080662, 184245754}) = 0
clock_gettime(CLOCK_REALTIME, {1403080662, 184274038}) = 0
sendto(3, "\10\0\362O\5\256\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, 16) = 64
select(4, [3], [], NULL, {1, 125020}) = 1 (in [3], left {1, 113095})
recvfrom(3, "\0\0\377\371\0\4\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, [16]) = 64
clock_gettime(CLOCK_REALTIME, {1403080662, 196369325}) = 0
select(4, [3], [], NULL, {0, 0}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080662, 196413943}) = 0
select(4, [3], [], NULL, {1, 112860}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080663, 310524405}) = 0
clock_gettime(CLOCK_REALTIME, {1403080663, 310551963}) = 0
sendto(3, "\10\0\362N\5\256\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, 16) = 64
select(4, [3], [], NULL, {1, 687520}) = 1 (in [3], left {1, 673330})
recvfrom(3, "\0\0\377\370\0\4\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 0, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("195.88.54.16")}, [16]) = 64
clock_gettime(CLOCK_REALTIME, {1403080663, 324912932}) = 0
select(4, [3], [], NULL, {0, 0}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080663, 324972894}) = 0
select(4, [3], [], NULL, {1, 673070}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080664, 999868910}) = 0
select(4, [3], [], NULL, {0, 25000}) = 0 (Timeout)
clock_gettime(CLOCK_REALTIME, {1403080665, 25076087}) = 0
clock_gettime(CLOCK_REALTIME, {1403080665, 25095598}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
writev(1, [{"vg.no is unreachable", 20}, {"\n", 1}], 2vg.no is unreachable
) = 21
exit_group(1) = ?
+++ exited with 1 +++
a-edge:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment