Using FreeRadius for Supermicro IPMI

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

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


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


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:


Cacti Graph no data randomly for some graphs


Cacti Blank


Data Collector reachs max run time (polling interval). Remaining SNMP data will not be collected.


1. Use spine instead of cmd.php

2. Increase "Processes" and "Threads" setting under "Data Collection" --> "Data Collectors"

Recommend Setting for

"Processes" = 2 * no. Of Cores available

"Threads" = 10 - 15