Author Archives: moti

Enable support for 3rd party gbic on Cisco 3750

no errdisable detect cause gbic-invalid
service unsupported-transceiver

Setup DNS on macos from command line

If you get to remotely manage mac users over ssh, the networksetup command is a great tool.

The full manual is here : https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/networksetup.8.html

Here’s how to setup a dns server:
1. find the interface name

networksetup -listnetworkserviceorder

2. your output would look similiar to this:

(1) Bluetooth DUN
(Hardware Port: Bluetooth DUN, Device: Bluetooth-Modem)

(2) Ethernet
(Hardware Port: Ethernet, Device: en0)

(3) AirPort
(Hardware Port: AirPort, Device: en1)

3.choose the device you want to apply the dns settings to and run this command ( in this example were applying it to the AirPort interface ), change the google dns addresses to your preferred ones.

networksetup -setdnsservers AirPort 8.8.8.8 8.8.8.4

4. verify your changes using :

scutil –dns

Allow mysql connection over php/apache

If you’re running selinux and cant connect to your db , try this :

# setsebool -P httpd_can_network_connect 1

Pacemaker – remove node

cibadmin –delete –obj_type nodes –crm_xml ‘

Join multiple lines together using TR

tr “\\n” “,”