Month: June 2017

awk statistical functions

We had already written an awk script to pull durations for a particularly slow web service call. We wanted to understand the distribution of the response times. Often, the average is high, but it is skewed by a number of…

Setting up a simple linux DNS server

yum install bind service named start sample zone file is shown below. This must be located in /etc/named $TTL 3600 ; 1 hour default TTL mydomain.com. IN SOA ns1.mydomain.com. admin.mydomain.com. ( 2006051501 ; Serial 10800 ; Refresh 600 ; Retry…

Finding client side port in Oracle

select machine||’:’||port from gv\$active_session_history where machine like ‘%app01%’ and inst_id = 1″ | sort -u ———————————————————— MACHINE||’:’||PORT             hostname.domain:34218 MACHINE||’:’||PORT             hostname.domain:34252 MACHINE||’:’||PORT             hostname.domain:34312 MACHINE||’:’||PORT             hostname.domain:34313 MACHINE||’:’||PORT             hostname.domain:34314 MACHINE||’:’||PORT             hostname.domain:34317 MACHINE||’:’||PORT             hostname.domain:34319 MACHINE||’:’||PORT             hostname.domain:34326 MACHINE||’:’||PORT             hostname.domain:34328 MACHINE||’:’||PORT             hostname.domain:34331 MACHINE||’:’||PORT             hostname.domain:34332 MACHINE||’:’||PORT             hostname.domain:34334…