Miscellaneous FAQ
From Genunix
Questions that don't have a home of their own right now.
Contents |
ping on opensolaris is not descriptive enough as in linux
Use the -s ( ping -s ) option and this makes the output identical to that on linux.
ping -s <Addr> hangs while ping <Addr> works
This is almost certainly a name service issue and not a ping issue. ping -s does a reverse name lookup of the IP address that it extracts from the received packets. To turn off the lookup, use the -n option ( ping -sn <Addr> ).
How do I force a kernel crash on Solaris/x86?
First, a sub question - why the hell do I want to do that? The answer is that this is helpful in analysing certain system anomalies. If the system is so dead that you can't even type, forget the rest of this.
There are a few ways of doing it.
- Use the command "uadmin" as : uadmin 5 1. Refer uadmin(1M) and uadmin(2) for details.
- Use "reboot -d" to dump during the reboot process.
- Enter kmdb using mdb -K. Then type $<systemdump. (This actually sets the eip (instruction pointer) to 0 and continues).
If you only want a crash dump without interrupting service, run "savecore -L" as root, and the kernel will write a crash dump of the running system.
When I connect my iPod to the system for charging, I lose the GUI on the iPod.
Use the "rmformat" command and figure out the device node associated with the iPod. Then, use "eject <device node>" and lo, you get the GUI on the iPod and it continues to charge.
How to manually mount a CDROM device?
iostat -En
Identify your CDROM drive by looking at the "Vendor:" and "Product:" name in the iostat output. In front of the entry for the CDROM you'll find a name "cXtYdZ" (where X, Y, Z are some small numbers). That's the device name for the CDROM device.
For a mount command prefix the CDROM device name with "/dev/dsk/" and append "p0".
mount -F hsfs /dev/dsk/cXtYdZp0 /mnt
(From Jürgen Keil's email on the OpenSolaris Discussion List
