Saturday, August 20, 2011

Solaris Basic System Administration Commands

Solaris Basic System Administration Commands

1. Bash Shell Command to Find or Get IP address

How do I find out my System ip address, subnet and related networking information from a command prompt?
IP Address
#cat  /etc/hosts to see current settings
Subnet Mask
#cat /etc/netmasks to see current settings
Name Service ie., DNS
#cat /etc/nswitch.conf  to see current settings

2. Solaris Create User Account

Now type these command in exactly as shown below.

useradd -m -d  /usr/yuva yuva
cp /usr/yuva/local.profile /usr/yuva/.profile
passwd yuva

3. Graceful Shutdown of Solaris
This shows how to gracefully shutdown Solaris from the console login.

#init 0
The command init 0 is used to bring the operation system down gracefully.

4.START/STOP Login Manager (X11) on Solaris

For Some Reason Login manager does not appear after the login name and password are entered, type the command to start and stop the login manager.

#/etc/init.d/dtlogin start
#/etc/init.d/dtlogin stop

To make sure that the Login Manager starts every time, type the command

#/usr/dt/bin/dtconfig -e

 


No comments:

Post a Comment