mac
Comments

Mounting NFS Shares on OSX

Having little time to update my blog, I’ve been updating a wiki I keep with various tidbits, so I thought I might as well share a few, they will be appearing on here over the next few days.

First off you will want to open the “Terminal” application, not so much a play on words it is really called Terminal.

Applications -> Utilities -> Terminal

showmount -e aaa.bbb.ccc.ddd

Where aaa.bbb.ccc.ddd is the IP or FQDN of your NFS server, this command will show a list of mountable exports on the device.

sudo mount -t ntfs aaa.bbb.ccc.ddd:/exported/path ~/Desktop/nfs_folder

If you look on your desktop you will now see that the folder icon has changed to an aliased drive icon alias drive icon

NOTE: These changes will not persist through a reboot, I have not yet found a way of doing this short of some apple / automator script to remount the drives on startup.

Comments

Flowplayer for Wordpress Splash Image Patch

A user contributed patch from James Partington can be found Here

When applied you can specify a splash image to user and your media by seperating them with a “|”

/path/to/my/spash.jpg|/path/to/my/media.flv,300,150

This will be rolled into the next update, as soon as I can get some time to actually work on it!!

EDIT: despite the date of this post, no it’s not a joke ;-)

Comments

RedHat Cluster OID’s

Following on from the python bindings post I found myself with a real problem,

the netsnmp bindings I could not for the life of me get to take the redhat cluste MIB files, so what did that leave me with, walking the entire parent cluster OID, manually matching the returned OID’s to their MIB names based on the value returned as I couldn’t find a decent mib browser or script to convert them …

At any rate here is a subset of OID’s for polling the redhat cluster service using snmp, please note that are more OID’s but these vary on your cluster config.

Python code:

rhc_oid = '.1.3.6.1.4.1.2312.8'
        data_oids = {
                                'rhcMIBVersion':'.1.1',
                                'rhcClusterName':'.2.1',
                                'rhcClusterStatusCode':'.2.2',
                                'rhcClusterStatusDesc':'.2.3',
                                'rhcClusterVotesNeededForQuorum':'.2.4',
                                'rhcClusterVotes':'.2.5',
                                'rhcClusterQuorate':'.2.6',
                                'rhcClusterNodesNum':'.2.7',
                                'rhcClusterNodesNames':'.2.8',
                                'rhcClusterAvailNodesNum':'.2.9',
                                'rhcClusterAvailNodesNames':'.2.10',
                                'rhcClusterUnavailNodesNum':'.2.11',
                                'rhcClusterUnavailNodesNames':'.2.12',
                                'rhcClusterServicesNum':'.2.13',
                                'rhcClusterServicesNames':'.2.14',
                                'rhcClusterRunningServicesNum':'.2.15',
                                'rhcClusterRunningServicesNames':'.2.16',
                                'rhcClusterStoppedServicesNum':'.2.17',
                                'rhcClusterStoppedServicesNames':'.2.18',
                                'rhcClusterFailedServicesNum':'.2.19',
                                'rhcClusterFailedServicesNames':'.2.20'}

        for item in data_oids:
                oid = '%s%s' % (rhc_oid,data_oids[item])
                print item,oid
Comments

Net-snmp Python Bindings

UPDATE 28/06/10: added –libdir=/usr/lib64 –enable-shared otherwise shared libs are not built at all!

Having spent a few hours trying to get this working on CentOS 5.4 x64 I am posting this blog entry for others to reference:

Download and complie net-snmp >= 5.4.2.1 https://net-snmp.sourceforge.net/

./configure --with-python-modules --libdir=/usr/lib64 --enable-shared
make && make install
cd /path/to/net-snmp-src/python/
python ./setup.py build
python ./setup.py test

You may get ImportError: libnetsnmp.so.20, this is due to x64 build creating as /usr/lib64/libnetsnmp.so.10

ln -s /usr/lib64/libnetsnmp.so.10.0.3 /usr/lib64/libnetsnmp.so.20
python ./setup.py install

And you are done, you can now use the netsnmp python bindings, I’d recomend seeing the examples here: https://www.ibm.com/developerworks/aix/library/au-netsnmpnipython/

Comments

All Quiet on the Front ….

No I have not faded into cyber oblivion, things have just been way to busy on the work front to post any updates.

Such is the case with project deadlines, and frankly I’d rather be rushed off my feet than unemployed at the moment :-)

That said I do have a few projects in the works first and foremost is the Wordpress-Flowplayer 2.1.0.0 release,

  1. I have secured the latest version of flowplayer courtesy of the guys over at flowplayer.org,
  2. I am working on integrating the mediamelon CDN service, which will be bundled with 2.1.0.0
  3. With any luck provided I can get the code right this will also allow the use of 3rd party plugins
  4. Working on an advance ‘scripting’ area to allow you to embed your own syntax in the plugin hook.

I am also redeveloping Froomi at present to add in some additional features, which will be served using a RESTful API, more on that soon,

Lastly there will be a new blog appearing soon geared mainly toward security and pen testing, following a nickname I have now picked up from work ‘the sith admin’ I’ve registered an appropriate domain and will be setting up on there soon.