This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> ethtool -g eth1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> ethtool -i eth2 | |
driver: e1000e | |
version: 2.3.2-k | |
firmware-version: 5.10-2 | |
bus-info: 0000:03:00.1 | |
supports-statistics: yes | |
supports-test: yes | |
supports-eeprom-access: yes | |
supports-register-dump: yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Linux source code | |
>> cd linux-3.16 | |
# File : /net/core/dev.c | |
>> vim /net/core/dev.c | |
dev_hard_start_xmit() | |
printk(KERN_DEBUG "DANX: start %s:%s:%d\n" ,__FILE__ , __func__ ,__LINE__ ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependency | |
>> sudo apt-get install libcap-dev | |
# Create directory for installed | |
>> mkdir /proj/USC558L/exp/drehman/usr | |
# Download the legacy ntp source code | |
>> wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p5.tar.gz | |
# Configure | |
>> ./configure --prefix=/proj/USC558L/exp/drehman/usr --sysconfdir=/proj/USC558L/exp/drehman/etc --enable-linuxcaps --with-binsubdir=sbin --with-lineeditlibs=readline | |
# Compile | |
>> make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go the directory containing the executables | |
>> cd /proj/USC558L/exp/drehman/usr/sbin | |
# l - path to the log file | |
# d - debug mode on | |
>> ./ntpd -l path_to_logfile -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit the code | |
>> vim ntpd/ntpd_conf.c | |
>> make | |
>> make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change date on ubuntu | |
>> sudo date --set "8 Nov 2014 14:41:33" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install NTP from ubuntu repository | |
>> sudo apt-get install ntp | |
# View all the NTP master and their offset recieved | |
>> ./ntpd -p | |
# Exactly like the above command but with no ip address rather then name | |
>> ./ntpd -n | |
# Query a NTP master server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change master NTP server | |
>> vim /etc/ntp.conf | |
server node2.test1.usc558l | |
# Change source code for ntpupdate | |
>> vim ntpdate / ntpdate.c | |
grep "static int clock_adjust(void)" | |
# Change source code to stop NTP from changing time | |
# Add "return 0" as soon as the function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defaults to 256 descriptors | |
>> ethtool -g eth4 | |
Ring parameters for eth4: | |
Pre-set maximums: | |
RX: 4096 | |
RX Mini: 0 | |
RX Jumbo: 0 | |