Configuring a Solaris 11 DNS client
Oracle, you are seriously harshing my squee.
You must use SMF to configure name resolution.
Solaris 11 11/11 Disable nwam revisited
This one is quick. So, when Solaris 11 was released last November, we discovered that to disable NWAM, you simply executed:
svcadm disable network/physical:nwam
svcadm enable network/physical:default
Well, that doesn’t work anymore. Network profiles will automagic your stuff anyways, leading you to pull out your hair. Instead, run the following:
netadm enable -p ncp DefaultFixed
Barring any errors, you may then proceed with your dladm / ipadm / static file configuration.
Please refer to http://docs.oracle.com/cd/E23824_01/html/821-1458/gjbmq.html#scrolltoc for further.
FreeBSD8.0 on Hyper-V
Yes, it works. I’ve recently decided it was about time to get to know a bit more about BSD. I’ve built ZFS boxes on OpenSolaris before, but CARP and PF kind of sealed the deal for me. So I decided to build a test VM on my Hyper-V server. There are some quirks however.
As I’m finding to be a trend for Linux guests, you must replace the default virtual NIC with the “Legacy Network Adapter” (you have to do this for Debian as well). Just follow the installer’s guidelines for the rest of the installation.
After it is installed, rebooting the OS becomes a problem. Hyper-V doesn’t seem to agree very well with the FreeBSD’s ACPI calls so in the interim, you can identify the hung VM by logging into powershell and running the following:
Get-WmiObject -Namespace root\virtualization msvm_computersystem | Format-Table ElementName,ProcessId
Then kill the process id with “kill [pid]“
In task manager,
- Inspect the “Command Line” field from the open vmconnect.exe process. Note the GUID of the VM (after the -G switch).
- Look for that GUID in the vmwp.exe “Command Line” field.
- Right click > End Process
The folks at peach.ne.jp have released a patch to correct this. Fetch it from here or failing that, locally.
On the VM, perform the following:
cd /usr/src
bzcat < /path/to/fbs80-200911-hvpatch.bz2 | patch -p1
make buildkernel
make installkernel
shutdown -r now
More to come as I start wading in.
Originals:
* http://shell.peach.ne.jp/aoyama/archives/577
* http://blogs.technet.com/abeshkov/archive/2008/12/15/3169299.aspx
Preview: Handy Netstat Commands
This is a preview, which will be updated as I collect a more comprehensive collection. Basically, I just want to publish this so I have it handy =P:
To get IPs grouped by number of connections :
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
To get a summation of the various states of connections (HTTP specific):
netstat -tan | grep ':80 ' | awk '{print $6}' | sort | uniq -c
To get a summation of the various states of connections (all):
netstat -tan | awk '{print $6}' | sort | uniq -c
Original authors: concorde, sailorFred, from http://www.webhostingtalk.com/archive/index.php/t-493735.html