dscacheutil -flushcacheNews for September 2008
Flush DNS on MacOS X Leopard
Convert sar text to RRDTool Graphs
sar2rrd.pl by Jerome Delamarche converts the sar text to useful RRDTool graphs. Visit http://www.trickytools.com/php/sar2rrd.php to download the latest sar2rrd.pl and for more information about sar2rrd.
Network & System Monitoring with UNNOC
Here’s a new network & system monitoring tool that I like for the simplicity.
Unnoc is a NOC network monitoring application that is designed to integrate traffic graphs (RRDTool) with SNMP host checking, monitoring and graphing. It uses native SNMP to monitor servers, Wireless Access Points, UPS’s, routers, firewalls, network switches–anything SNMP-enabled, and will send out pages and email alerts if something is wrong.
Visit http://unnoc.org/ for more info or better yet visit http://unnoc.org/demo for a live demo.
ÂÂ
Exclusive NIC for a Solaris Zone
By default, when you setup a Solaris Zone the ip-type will be set to shared.
Now, you can setup exclusive access to a Solaris Zone. This means only the Zone can communicate with the NIC. Even the global zone will NOT be able to communicate on the specified NIC.
You can use DHCP, static IPs and manage routing.
global# zonecfg -z myzone zonecfg:myzone> set ip-type=exclusive zonecfg:myzone> add net zonecfg:myzone:net> set physical=bge1 zonecfg:myzone:net> end zonecfg:myzone:>exit
Physical, Virtual & Locked Memory Settings for Zones
Physical Memory:
global# zonecfg -z myzone zonecfg:myzone> add capped-memory zonecfg:myzone:capped-memory> set physical=500m zonecfg:myzone:capped-memory> end zonecfg:myzone> exit
Same but while the zone is running:
global# rcapadm -z myzone -m 600mWarning: Paging will occur if you over-subscribe.
Virtual Memory:
global# zonecfg -z myzone zonecfg:myzone> add capped-memory zonecfg:myzone:capped-memory> set swap=1g zonecfg:myzone:capped-memory> end zonecfg:myzone> exit
Same but while the zone is running:
global# prctl -n zone.max-swap -v 2g -t privileged -r -e deny -i zone myzoneLocked Memory:
global# zonecfg -z myzone zonecfg:myzone> add capped-memory zonecfg:myzone:capped-memory> set locked=100m zonecfg:myzone:capped-memory> end zonecfg:myzone> exit
Installing Solaris Package to Global Zone Only
When you install a package on the global zone, pkgadd will install the package to the global and non-global zones unless you use the -G attribute.
For example:
pkgadd -G -d SUNWtest
Installation of Collabnet Subversion on Solaris
- Download the Subversion Binaries for Solaris from Collab
http://www.collab.net
- Download the certificate from CollabÂÂ
wget http://www.collab.net/nonav/downloads/subversion/certificate/certificate.pem - Install the certificate
pkgadm addcert -ty certificate.pem - Install the packages
pkgadd -G -d CSVNclnt-1.5.2.1-sparc-local
pkgadd -G -d CSVNsrvr-1.5.2.1-sparc-local
pkgadd -G -d CSVNxtrs-1.5.2.1-sparc-local
Satellite Radio Playlists
To find out the playlist of any satellite radio station, visit the following url below.
- http://www.mmr247.com/mmrweb/AllAccess/
- Select 7 Days Reports
- Select Station Playlists
Popular Stations:
- “X081″ for BPM (XM’s BPM Station on 81)
- “S036″ (Sirius The Beat on 36)
Secure SNMP on the Cisco router
Below is an example where the router is only allowing host 10.10.10.20 to make snmp calls.
access-list 10 permit 10.10.10.20 snmp-server community public ro 10
Changing the default message size limit in Postfix
The default message size limit for postfix is 10 megabytes. Modify your main.cf file and use the message_size_limit =
Don’t forget to reload postfix once your done.