Tag Archive | Bash

Verify NTP Status on Linux

1
2
3
4
5
6
7
# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+name1.glorb.com 128.10.19.24     2 u  729 1024  377   64.538    3.350   1.540
+142.54.181.202  64.113.32.5      2 u   78 1024  377   46.030    2.374   1.829
*ntp.glorb.com   128.10.19.24     2 u 1003 1024  377   83.714   -2.968   1.872
-mailserv1.phoen LOCAL(0)         2 u  437 1024  377   13.746   -4.769   3.006

Display File System Types using df -T

1
2
3
4
5
6
7
8
9
10
root@x61:~# df -T
Filesystem               Type     1K-blocks     Used Available Use% Mounted on
/dev/mapper/x61--vg-root ext4     149399852 18707700 123079944  14% /
none                     tmpfs            4        0         4   0% /sys/fs/cgroup
udev                     devtmpfs   1975452        4   1975448   1% /dev
tmpfs                    tmpfs       397332     1216    396116   1% /run
none                     tmpfs         5120        0      5120   0% /run/lock
none                     tmpfs      1986644      144   1986500   1% /run/shm
none                     tmpfs       102400       28    102372   1% /run/user
/dev/sda1                ext2        240972    36912    191619  17% /boot
This entry was posted on July 22, 2014, in Linux and tagged , .

Goal: Write a BASH Script that traverses the DNS Tree

Goal: Write a BASH Script that traverses the DNS Tree and validates responses from Name Servers at the same level are providing the same response.

DNSStuff.com provides this service for their paid offerings, however it should be fairly straightforward to script.

Once the BASH script has been written, it would be really cool to have a tool visualize the output in a web browser using some kind of Javascript.

Update: I started writing a set of DNS tools in PHP with calls to dig and they are available at http://dns.winvive.com