Posts Tagged ‘utility’

Running nwdiag on Mac OS X

Tuesday, January 31st, 2012

nwdiag is a tool written in python for generating network diagrams from text files, rack diagrams can also be built using the bundled rackdiag utility.
nwdiag requires PIL built with freetype2 support, if this is missing you’ll receive the following error when you try to generate a diagram:
ERROR: The _imagingft C module is not installed.

Following the instructions in the README file included with PIL, once the build process completes you’ll receive a summary:
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform darwin 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
--------------------------------------------------------------------
--- TKINTER support available
*** JPEG support not available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------

It appears that freetype2 support is not built by default & I wasn’t paying enough attention so I missed the notice following the summary
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
.
After a brief search I came across this blog post which covered how to define the paths for the freetype library & header files.
Setting FREETYPE_ROOT in setup_site.py to
FREETYPE_ROOT = "/usr/X11/lib", "/usr/X11/include"
solved the problem & the summary listed --- FREETYPE2 support available when I reran the build process.
After that everything worked fine, the following config generated the image at the bottom of the page:
nwdiag {
inet [shape = cloud];
inet -- router;
router;
network office {
router;
"Mail server";
"Web server";
}
}

Network diagram generated using nwdiag

The project is still in its infancy and there are features missing for implementing common elements from a cisco discipline (like representing etherchannel) but it’s promising as you can put a simple diagram together very quickly.

Fetching logs and generating stats from a Google Search Appliance

Thursday, September 21st, 2006

Blake Crosby has a collection of scripts on his site which are handy for fetching logs and generating stats from a Google Search Appliance (the mini GSA aswell).
You’ll need to install some modules from CPAN before you get started, all the required moduled are included in a comment on each script.

Cygwin Alternative PT2

Sunday, February 12th, 2006

It seems that AT&T have a opensource Unix Posix environment for Windows called UWIN
The makers of SFU (Services For Unix) Interop Systems have a vast set of native ports called the Unix Tool Warehouse

Cygwin alternative UNXutils

Thursday, December 29th, 2005

I’ve never been fond of cygwin, I find it a extremely poor permforming environment, UNXutils suite offers native Win32 binaries of GNU utils :)

Typo in Webalizer manpage

Tuesday, July 5th, 2005

Whilst writing the weblizer.conf file for this site I came across a typo in the man page. The keyword Hostname listed in the manpage is wrong, if used the following error is spat out when webalizer is run:
Warning: Invalid keyword 'Hostname' (/etc/webalizer.conf)

The correct keyword is: HostName

More stat goodness

Tuesday, July 5th, 2005

I’ve setup Webalizer to generate stats on the hour for this site, you can reach them via the link at the bottom of the sidebar.

Getting MRTG running

Sunday, July 3rd, 2005

I came across this 4 part guide by Michael Lucas on SNMP & MRTG, the series starts by covering the concept of SNMP & installing ucd-snmp (now net-snmp) through to configuring & customising it on the 2nd article. The 3rd & 4th articles cover installation, configuration & customisation of MRTG.

Part 1: Walk the SNMP Walk
Part 2: Talk the SNMP Talk
Part 3: Longterm monitoring with SNMP
Part 4: Customising MRTG

PF Statistics

Sunday, July 3rd, 2005

I’ve gone stat & monitoring crazy in the past few weeks, using Hatchet you can generate graphs & charts from the PF log files on the state of PF. Another tool is also available called pfrtg which does a similar job.

Connecting to Apple Remote Desktop with VNCviewer

Thursday, March 31st, 2005

To access you mac’s desktop remotely using vncviewer you’ll need to install the Apple Remote Desktop Client 2.1 update which you can download from here
Then goto the Sharing preferences panel located in System Preferences, tick the Apple Remote Desktop tick box under the Services Tab & press the Access Priveleges button, set the permissions as you’d like & tick the VNC viewers can control screen with password box & specify a password in the box provided.
You can now connect to your mac using vncviewer from any machine :)

WPA support for Pre XP clients (98/ME/2000)

Thursday, March 31st, 2005

The odyssey client adds WPA & WPA2 support to wireless clients running Windows prior to XP. You can download a trial version here

Orinoco Silver to Gold Firmware hack

Wednesday, March 30th, 2005

A few years too late :) but anyways, If you’ve got any old Orinoco based chipset cards that you’d like 128 bit WEP encryption on you can use a tool called alchemy to mod the firmware so the card is ID’d as a Gold card, then reflash the firmware to have full 128 bit wep.

You can grab a copy of Alchemy here or here

Then use the Agere firmware flash util filename wsuags454c-872.zip to reflash the card (as It’ll flash just about any Orinoco based card), grab a copy of the tool here

Exchange Mail Box / Store Disaster Recovery

Thursday, March 17th, 2005

I cant recommend Ontracks PowerControls Exchange recovery tool enough, I was cought out by a exchange server last week which had gone into meltdown, PowerControls let me mount the mailstore & dump the contents of the mail boxes & public folders to pst, it also has the option to dump the contents of a store to a exchange mailbox aswell which is extremly handy if you have another server live elsewhere (which I didnt!!! but I do now :D )

OSX Boot CD Creator

Wednesday, November 3rd, 2004

I came across this neat util today called BootCD which lets you create a bootable OSX cd with your choice of tools for those emergancy situations!!