Using service RPM ping probe to detect link congestion

In Junos, we can use RPM (real-time performance monitoring) to monitor link quality.

1. give a name to the ping probe and test name

edit services rpm probe ping-probe test test-ping

 

2. set probe type

set probe-type icmp-ping

 

3. set probe count for each test and interval between each ping (in second)

set probe-count 10
set probe-interval 1

4. set source and target address (must be the interconnect IPs if you want to detect link quality)

Tags

Using FreeRadius for Supermicro IPMI

1. Create a new FreeRadius Virtual site for Supermicro IPMI (without enabling SQL support)

https://pangnet.net/freeradius-sql

2. Edit /usr/local/etc/raddb/dictionary and add a new attribute

ATTRIBUTE	IPMI-radius		26	octets

3. Edit /usr/local/etc/raddb/policy.d/foo and add

foo {
      update reply {
        # Vendor-Specific = "H=4"
        &Attr-26 = 0x483D34
      }
}

0x483D34 is Hex Code for String "H=4"

If you need other type of permission (e.g. H=3) just change the string to hex code.

Drupal Update with Drush

1. cd to Drupal installation Directory

2. Backup Drupal

drush archive-dump

3. Check Drupal Update and get the list of modules that have update

drush ups

4. Set Drupal Website to maintenance mode

drush sset system.maintenance_mode 1

5. Clear Drupal Cache

drush cr

6. Update Drupal and press "Y" when asked

drush up drupal

7. Update Drupal Database

Tags

Setting Up VLAN for ToR Switch (Junos)

1. Set up all VLANs and assign VLAN to access port

set vlan VLAN01 vlaid-id 1000
set vlan VLAN01 interface ge-0/0/0

2. Set the Trunk Port

set interfaces ge-0/1/3 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/1/3 unit 0 family ethernet-switching vlan member [ VLAN01 VLAN02 VLAN03 ]

3. Add a description to each ports

set interface ge-0/0/0 description "Server Name A"
set interface ge-0/0/1 description "Server Name B"

4. Set the port speed and duplex mode

Tags

Certbot usage (Free SSL certificate generation)

Generate and install SSL certifcate using Certbot:

1. Install Certbot from FreeBSD ports:

cd /usr/ports/security/py-certbot
make install clean

2. Generate a free SSL

certbot certonly --webroot

3. Enter the web root and hostname for certificate

4. Make change to Apache configration and restart Apache

5. Add the following command to cron and run once a day

Running Custom php script within Drupal Directory

By default, Drupal will not allow running of any other PHP scripts within Drupal directory. It will return "403 Forbidden", if anybody trying to access the PHP scripts.

To by pass this constraint, we will need to add 2 lines in .htaccess. .htaccess is in Drupal root directory.

1. Open .htaccess with a text editor

2. Find the section below:

Tags