SA-299 day 4
---------------------
========================================================== ==============
Syslogd
Macro Processor
/Usr/CCS/bin/M4
/Etc/rc2.d/s74syslog stop
/Etc/rc2.d/s74syslog start
Pkill-hup syslogd
VI/etc/init. d/inetsvc
# Changed:
/Usr/sbin/inetd-s-t
/Etc/default/inetd
Type: (due to bug of Solaris 9)
Enable_connection_logging = Yes
/Etc/init. d/inetsvc stop
/Etc/init. d/inetsvc start
Tail-F/var/adm/messages
New Terminal
Do:
FTP 10.1.101.70
========================================================== ==============
Logger command
Tail-F/var/adm/messages
Logger-I-P err-T "tag" "This is my message! "
Logger-I-P Err "this is my message"
========================================================== ==============
Nscd daemon
Getent passwd Root
Getent group Root
Getent hosts sun70
Getent services Telnet
Getent ethers sun70
Getent protocols ICMP
========================================================== ==============
Name Client
VI/etc/resolv. conf
Type:
Nameserver 10.1.101.1
Nameserver 202.106.0.20
Domain digitalchina.com
MV/etc/nsswitch. CONF/etc/nsswitch. orig
CP/etc/nsswitch. NIS/etc/nsswitch. conf
========================================================== ==============
Configure the NIS Service
Configure the NIS Server
-------------
Touch/etc/ethers/etc/bootparams/etc/locale/etc/timezone/etc/netgroup/etc/netmasks
Domainname Training
VI/etc/defadomain domain
Type:
Training
VI/etc/locale
Type:
Training Zh. GBK
CD/etc
Ypinit-m
/Usr/lib/netsvc/yp/ypstop
/Usr/lib/netsvc/yp/ypstart
Testing the NIS Service
-----------------------
Ypcat hosts
Ypcat services
Ypmatch root passwd
Configure NIS client
-------------
CD/var/yp/training
Ls-l
Ypinit-C
# Select master server
-------------
VI/etc/hosts
Comment:
#10.1.101.70 sun70
Ping-I1 sun70
Init as slave server
--------------------
# Sun70 is Master
Ypinit-s sun70