System administration can be made simple through some general tricks that are used by experts. Below, I have given some useful tips for easy Solaris system management.
• The run level that the system is running in can be checked with the who –r command.
• You can use the snoop command to snoop an active interface.
• Diskless clients can be managed using smosservice and smdiskless utilities.
• Inorder to create a file system that can be expanded in future into a bigger one you can use newfs –T command. Expansion can be done using the growfs command.
• If you need some information about the CPU use the psrinfo command. And inorder to take the CPU online or offline use psradm command.
• In order to set the default gateway, follow these steps.
Edit /etc/defaultrouter and add the following lines
Default Gateway IP Metric
Example: 10.2.0.1 1
Use /etc/rc2.d/S69inet stop
/etc/rc2.d/S69inet start to enable the default gateway without rebooting
• If you have a file like this ‘--file1’ entered into one of your directories, then you will sure have problem deleting it. The rm command cannot remove it as usual. Try unlinking the file.
If you wish, try these two optioins
#rm -- --file1
• When you have some problem with the system you are managing, make sure you always check the log files first. On Solaris you find the standard logs in /var/log/syslog and /var/adm/messages.