Bagamana cara Setting Remote, Telnet, SSH, FTP, Xbrowser, IP, Hostnamem, Patch, Alias setelah Install Solaris 8, 9, 10
Solaris |
Sample IP 10.10.10.10 netmask 255.255.255.0 gateway 10.10.10.1
1. Check Netmask
bash-3.00# more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
10.10.10.0 255.255.255.0
bash-3.00#
2. Check Hostname
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
10.10.10.10 teguht teguht. loghost
bash-3.00# more /etc/hostname
teguht
3. Check IP Gateway /Router
bash-3.00# more /etc/defaultrouter
10.10.10.1
bash-3.00#
4. Mengaktifkan remote
bash-3.00# more /etc/default/login
di ubah dari CONSOLE=/dev/console menjadi #CONSOLE=/dev/console
bash-3.00# more /etc/default/login
#ident "@(#)login.dfl 1.14 04/06/25 SMI"
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Set the TZ environment variable of the shell.
#
#TIMEZONE=EST5EDT
# ULIMIT sets the file size limit for the login. Units are disk blocks.
# The default of zero means no limit.
#
#ULIMIT=0
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
#CONSOLE=/dev/console
.............
bash-3.00#
5. Mengaktifkan SSH
bash-3.00# more /etc/ssh/sshd_config
Ubah # PermitRootLogin no menjadi # PermitRootLogin yes
bash-3.00# more /etc/ssh/sshd_config
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)sshd_config 1.8 04/05/10 SMI"
#
.....................
# Are root logins permitted using sshd.
# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user
# maybe denied access by a PAM module regardless of this setting.
# Valid options are yes, without-password, no.
PermitRootLogin yes
# sftp subsystem
Subsystem sftp /usr/lib/ssh/sftp-server
...................
bash-3.2# svcadm restart svc:/network/ssh:default
or
bash-3.2# svcadm restart svc:/network/ssh:default
or
bash-3.00# init 6
The command to restart sshd service in Solaris is :
Usage: /lib/svc/method/sshd { start | restart }
Usage: /lib/svc/method/sshd { start | restart }
6. Mengaktifkan FTP (File Transfer Protocol)
bash-3.00# more /etc/ftpd/ftpusers
Ubah root menjadi #root
bash-3.00# more /etc/ftpd/ftpusers
# ident "@(#)ftpusers 1.5 04/02/20 SMI"
#
# List of users denied access to the FTP server, see ftpusers(4).
#
#root
daemon
bin
sys
adm
lp
uucp
nuucp
smmsp
listen
gdm
webservd
nobody
noaccess
nobody4
bash-3.00#
bash-3.00# more /etc/services
tambahkan port 177/udp , 177/tcp & 6000-6010/tcp
bash-3.00# more /etc/services
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)services 1.34 08/11/19 SMI"
#
# Network services, Internet style
#
tcpmux 1/tcp
.........
xxxx_5006 5006/tcp
xxxx_161 161/udp
xxxx_162 162/udp
#======== Teguh Triharto Corporation reserved ports ends ========
bash-3.00#
bash-3.00# svcadm enable telnet
bash-3.00# svcadm enable ssh
bash-3.00# svcadm enable ftp
bash-3.00# /usr/dt/bin/dtconfig -e
done
desktop auto-start enabled.
bash-3.00#
tidak perlu di restart kecuali untuk mgaktifkan SSH <bash-3.00#init 6>
6. Patching
====================================================
untuk patching< contoh untuk mengecek SUNWi15cs>
#pkginfo SUNWi15cs atau bisa pakai #pkginfo | grep SUNWi15cs
bash-3.00# pkginfo SUNWi15cs
ERROR: information for "SUNWi1s5cs" was not found
bash-3.00#
Hasil di atas. bahwa patch SUNWi15cs belum ada
untuk patching< contoh untuk install SUNWi15cs> cara 1
bash-3.00# pkginfo SUNWi15cs
system SUNWi15cs X11 ISO8859-15 Codeset Support
Hasil di atas. bahwa patch SUNWi15cs belum ada
bash-3.00# pkgadd -d /cdrom/sol_10_1009_x86/Solaris_10/Product/ SUNWi15cs
Processing package instance <SUNWi15cs> from </cdrom/sol_10_1009_x86/Solaris_10/Product>
X11 ISO8859-15 Codeset Support(i386) 2.0,REV=2004.10.17.15.04
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
21 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWi15cs> [y,n,?] y
====================================================
untuk patching< contoh untuk install SUNWi15cs> cara 2<masuk ke directory /cdrom/sol_10_1009_x86/Solaris_10/Product/>
bash-3.00# cd /cdrom/sol_10_1009_x86/Solaris_10/Product/
bash-3.00# pwd
/cdrom/sol_10_1009_x86/Solaris_10/Product
bash-3.00# pkgadd -d . SUNWi15cs
Processing package instance <SUNWi15cs> from </cdrom/sol_10_1009_x86/Solaris_10/Product>
X11 ISO8859-15 Codeset Support(i386) 2.0,REV=2004.10.17.15.04
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
21 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWi15cs> [y,n,?] y
7. name alias ( Mengubah Tampilan Name Command Promt /CLI)
Untuk Manual dimana jika ada perubahan Hostname maka .profile harus di ubah manual
Connected to 10.10.10.10 (10.10.10.10).
Escape character is '^]'.
login: root
Password:
Last login: Fri Jul 1 09:05:58 from 202.134.3.122
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
bash-3.00# bash
bash-3.00# vi .profile
".profile" 2 lines, 34 characters
PS1='root@teguht #'
export PS1
~
~
:wq!
Escape character is '^]'.
login: root
Password:
Last login: Fri Jul 1 09:05:58 from 202.134.3.122
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
bash-3.00# bash
bash-3.00# vi .profile
".profile" 2 lines, 34 characters
PS1='root@teguht #'
export PS1
~
~
:wq!
close CLI / Terminal and then open CLI /Terminal
root@teguht #more .profile
PS1='root@teguht #'
export PS1
root@teguht #
Untuk Automatis dimana jika ada perubahan Hostname maka Command Prompt/Terminal akan berubah sesuai hostname tanpa perlu mengubah .profile
Download .profile and .profile-EIS adn copy .profile and .profile-EIS and extract ke directory root ( / )
bash-3.00#pwd
/
bash-3.00#
sample command ada di bawah.
bash-3.00# cat .profile
#
# Initial EIS settings for user root
# This file is set up by the setup-standard script.
#
# In the unlikely event that the EIS profile settings are not
# required, comment out the few lines below.
#
# Version 11JUL05
#
#
# Source the EIS settings if present
#
if [ -f $HOME/.profile-EIS ]
then
echo "Sourcing $HOME/.profile-EIS....."
. $HOME/.profile-EIS
fi
#
# Remove #NOHEAD from next section for cluster node or domain
# If you do not use a vt100 change it to your terminal type.
#
#NOHEAD if [ "`tty`" != "not a tty" ]
#NOHEAD then
#NOHEAD if [ "`tty`" = "/dev/console" ]
#NOHEAD then
#NOHEAD TERM=vt100
#NOHEAD export TERM
#NOHEAD echo ""
#NOHEAD echo "TERM=$TERM"
#NOHEAD echo ""
#NOHEAD else
#NOHEAD LOGINFROM=`who am i | cut -f2 -d"(" | cut -f1 -d")"`
#NOHEAD DISPLAY=${LOGINFROM}:0.0
#NOHEAD export LOGINFROM DISPLAY
#NOHEAD echo ""
#NOHEAD echo "DISPLAY=$DISPLAY"
#NOHEAD echo ""
#NOHEAD fi
#NOHEAD fi
bash-3.00 #
bash-3.00 # cat .profile-EIS
#
# Initial EIS settings for user root
# This file is expected to be sourced by root's .profile.
# This file can be overwritten by EIS at any time.
# This file is set up by the setup-standard script.
#
# It is expected that Solaris 8 or higher is being used.
#
# Version 10NOV10
#
OPENWINHOME=/usr/openwin; export OPENWINHOME
MANPATH=${MANPATH}:/usr/share/man
EDITOR=vi
export EDITOR
if [ -z "${LD_LIBRARY_PATH}" ]
then
LD_LIBRARY_PATH=/usr/openwin/lib
else
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/openwin/lib
fi
if [ -z "${PATH}" ]
then
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin
else
PATH=${PATH}:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin
fi
#
# Ensure that /usr/sbin is in PATH - missing for Solaris 9 / SSH
#
PATH=${PATH}:/usr/platform/`uname -i`/sbin
echo $PATH | grep /usr/sbin > /dev/null 2>&1
if [ $? = 1 ]
then
PATH=/usr/sbin:${PATH}
fi
#
# Add the EIS scripts
#
if [ -d /opt/sun/bin ]
then
PATH=${PATH}:/opt/sun/bin
fi
#
# Veritas Volume Manager 3.0 - 3.1
#
VXVM3_BASE=/opt/VRTSvxvm
VMSA_BASE=/opt/VRTSvmsa
if [ -d ${VXVM3_BASE} ]
then
MANPATH=${VXVM3_BASE}/man:${MANPATH}
PATH=${PATH}:/etc/vx/bin
fi
if [ -d ${VMSA_BASE} ]
then
VMSAHOME=${VMSA_BASE}
export VMSAHOME
MANPATH=${VMSA_BASE}/man:${MANPATH}
PATH=${PATH}:${VMSA_BASE}/bin
fi
#
# Veritas Volume Manager 3.1.1 onwards or Veritas Filesystem 3.4 onwards
#
VXVM_MAN=/opt/VRTS/man
if [ -d ${VXVM_MAN} ]
then
MANPATH=${VXVM_MAN}:${MANPATH}
fi
#
# Veritas 3.5
#
if [ -d /opt/VRTS/bin ]
then
PATH=${PATH}:/opt/VRTS/bin:/etc/vx/bin
fi
#
# Veritas 3.5 GUI
#
if [ -d /opt/VRTSob/bin ]
then
PATH=${PATH}:/opt/VRTSob/bin
MANPATH=/opt/VRTSob/man:${MANPATH}
fi
#
# Veritas Licensing
#
if [ -d /opt/VRTSvlic/bin ]
then
PATH=${PATH}:/opt/VRTSvlic/bin
fi
#
# Sun VTS 6.4 & before
#
if [ -d /opt/SUNWvts/bin ]
then
PATH=${PATH}:/opt/SUNWvts/bin
MANPATH=${MANPATH}:/opt/SUNWvts/man
fi
#
# Sun VTS 7.0 onwards - we deliberately do NOT add the bin directory to PATH
#
if [ -d /usr/sunvts/man ]
then
MANPATH=${MANPATH}:/usr/sunvts/man
fi
#
# PCNFS
#
if [ -d /opt/SUNWpcnfs/bin ]
then
PATH=${PATH}:/opt/SUNWpcnfs/bin
fi
#
# RAID Manager for A1000, A3x00
#
if [ -d /usr/sbin/osa ]
then
PATH=${PATH}:/usr/sbin/osa
fi
#
# Networker / Solstice Backup
#
if [ -d /usr/sbin/nsr ]
then
PATH=${PATH}:/usr/bin/nsr
PATH=${PATH}:/usr/sbin/nsr
fi
#
# Sun Cluster 2.2 Software
#
if [ -d /opt/SUNWcluster/bin ]
then
PATH=${PATH}:/opt/SUNWcluster/bin
MANPATH=${MANPATH}:/opt/SUNWcluster/man
fi
if [ -d /opt/SUNWpnm/bin ]
then
PATH=${PATH}:/opt/SUNWpnm/bin
MANPATH=${MANPATH}:/opt/SUNWpnm/man
fi
#
# Sun Cluster 3.x Software
#
if [ -d /usr/cluster/bin ]
then
PATH=${PATH}:/usr/cluster/bin:/usr/cluster/lib/sc
MANPATH=/usr/cluster/man:${MANPATH}
if [ -d /opt/cluster/man ]
then
MANPATH=${MANPATH}:/opt/cluster/man
fi
fi
#
# Sun Cluster 3.0 DTK Software
#
if [ -d /usr/cluster/dtk ]
then
PATH=${PATH}:/usr/cluster/dtk/bin
MANPATH=${MANPATH}:/usr/cluster/dtk/man
fi
#
# Component Manager
#
if [ -d /opt/SUNWesm/bin ]
then
PATH=${PATH}:/opt/SUNWesm/bin
MANPATH=${MANPATH}:/opt/SUNWesm/man
fi
#
# Availibility Suite AVS 3.x
#
if [ -d /usr/opt/SUNWesm/sbin ]
then
PATH=${PATH}:/usr/opt/SUNWesm/sbin:/usr/opt/SUNWscm/sbin
MANPATH=${MANPATH}:/usr/opt/SUNWesm/man
fi
#
# StorADE
#
if [ -d /opt/SUNWstade/bin ]
then
PATH=${PATH}:/opt/SUNWstade/bin
MANPATH=${MANPATH}:/opt/SUNWstade/man
fi
#
# SunRay
#
if [ -d "/opt/tarantella" ]
then
PATH=$PATH:/opt/tarantella/bin
fi
if [ -d /opt/SUNWut ]
then
PATH=${PATH}:/opt/SUNWut/bin:/opt/SUNWut/sbin
MANPATH=${MANPATH}:/opt/SUNWut/man
fi
if [ -d "/opt/SUNWuttsc" ]
then
PATH=$PATH:/opt/SUNWuttsc/bin
MANPATH=$MANPATH:/opt/SUNWuttsc/man
fi
#
# SMS Software for SunFire 15K System Controllers
#
if [ -d /opt/SUNWSMS ]
then
PATH=/opt/SUNWSMS/bin:${PATH}
MANPATH=/opt/SUNWSMS/man:${MANPATH}
fi
#
# Explorer
#
if [ -d /opt/SUNWexplo/bin ]
then
PATH=${PATH}:/opt/SUNWexplo/bin
MANPATH=${MANPATH}:/opt/SUNWexplo/man
fi
#
# Sneep
#
if [ -d /opt/SUNWsneep/bin ]
then
PATH=${PATH}:/opt/SUNWsneep/bin
MANPATH=${MANPATH}:/opt/SUNWsneep/man
fi
#
# Automated Crash Analysis tool
#
if [ -d /opt/CTEact/bin ]
then
PATH=${PATH}:/opt/CTEact/bin
MANPATH=${MANPATH}:/opt/CTEact/man
fi
#
# SUNWqfs 4.0
#
if [ -d /opt/SUNWsamfs/bin ]
then
PATH=${PATH}:/opt/SUNWsamfs/bin:/opt/SUNWsamfs/sbin
MANPATH=${MANPATH}:/opt/SUNWsamfs/man
fi
#
# SSCS
#
if [ -d /opt/SUNWsscs/man ]
then
MANPATH=${MANPATH}:/opt/SUNWsscs/man
fi
#
# Sun Enterprise Storage Management
#
if [ -d /opt/SUNWstm/bin ]
then
PATH=${PATH}:/opt/SUNWstm/bin
MANPATH=${MANPATH}:/opt/SUNWstm/man
fi
#
# Add (SUNW) JET Packages
#
if [ -d /opt/SUNWjet/bin ]
then
PATH=${PATH}:/opt/SUNWjet/bin
fi
#
# Add N1PS (Provisioning Server) Packages (prepending is intended)
#
if [ -d /opt/terraspring/bin ]
then
PATH=/opt/terraspring/sbin:/opt/terraspring/bin:${PATH}
MANPATH=${MANPATH}:/opt/terraspring/man
fi
#
# Net Connect Proxy Directory
#
if [ -d /opt/SUNWsrspx/bin ]
then
PATH=${PATH}:/opt/SUNWsrspx/bin
fi
#
# CEDIAG - for FIN I0760-2
#
if [ -d /opt/SUNWcest/bin ]
then
PATH=${PATH}:/opt/SUNWcest/bin
MANPATH=${MANPATH}:/opt/SUNWcest/man
fi
#
# Sun Remote System Control RSC
#
if [ -d /opt/rsc/bin ]
then
PATH=${PATH}:/opt/rsc/bin
fi
#
# Sun Cacao
#
if [ -d /opt/SUNWcacao/bin ]
then
PATH=${PATH}:/opt/SUNWcacao/bin
MANPATH=${MANPATH}:/opt/SUNWcacao/man
fi
#
# UCE
#
if [ -d /opt/SUNWuce/console/bin ]
then
PATH=${PATH}:/opt/SUNWuce/console/bin
fi
if [ -d /opt/SUNWuce/cli/bin ]
then
PATH=${PATH}:/opt/SUNWuce/cli/bin
fi
# SFW
#
if [ -d /opt/sfw/bin ]
then
PATH=${PATH}:/opt/sfw/bin
fi
#
# Sun LDM
#
if [ -d /opt/SUNWldm/bin ]
then
PATH=${PATH}:/opt/SUNWldm/bin
MANPATH=${MANPATH}:/opt/SUNWldm/man
fi
#
# Sun CAM/sscs
#
if [ -d /opt/SUNWsesscs/cli/bin ]
then
PATH=${PATH}:/opt/SUNWsesscs/cli/bin
MANPATH=${MANPATH}:/opt/SUNWsesscs/cli/man
fi
#
# Auto Service Request ASR
#
if [ -d /opt/SUNWswasr/bin ]
then
PATH=${PATH}:/opt/SUNWswasr/bin/asr
fi
export PATH MANPATH LD_LIBRARY_PATH
#
# Ignore next steps if running from CRON
#
if [ "`tty`" != "not a tty" ]
then
#
# Requested by many colleagues - uncomment as needed
#
# stty erase \^h #for backspace
# stty erase \^? #for delete
#
#
# Set shell prompts - special for N1PS
#
PS1="`id |cut -d '(' -f2|cut -d ')' -f1' '`@`uname -n` # "
PS2="`id |cut -d '(' -f2|cut -d ')' -f1' '`@`uname -n` > "
if [ -d /opt/terraspring/bin ]
then
PS1="N1adm # "
PS2="N1adm > "
fi
export PS1 PS2
fi
bash-3.00#
#
# Initial EIS settings for user root
# This file is set up by the setup-standard script.
#
# In the unlikely event that the EIS profile settings are not
# required, comment out the few lines below.
#
# Version 11JUL05
#
#
# Source the EIS settings if present
#
if [ -f $HOME/.profile-EIS ]
then
echo "Sourcing $HOME/.profile-EIS....."
. $HOME/.profile-EIS
fi
#
# Remove #NOHEAD from next section for cluster node or domain
# If you do not use a vt100 change it to your terminal type.
#
#NOHEAD if [ "`tty`" != "not a tty" ]
#NOHEAD then
#NOHEAD if [ "`tty`" = "/dev/console" ]
#NOHEAD then
#NOHEAD TERM=vt100
#NOHEAD export TERM
#NOHEAD echo ""
#NOHEAD echo "TERM=$TERM"
#NOHEAD echo ""
#NOHEAD else
#NOHEAD LOGINFROM=`who am i | cut -f2 -d"(" | cut -f1 -d")"`
#NOHEAD DISPLAY=${LOGINFROM}:0.0
#NOHEAD export LOGINFROM DISPLAY
#NOHEAD echo ""
#NOHEAD echo "DISPLAY=$DISPLAY"
#NOHEAD echo ""
#NOHEAD fi
#NOHEAD fi
bash-3.00 #
bash-3.00 # cat .profile-EIS
#
# Initial EIS settings for user root
# This file is expected to be sourced by root's .profile.
# This file can be overwritten by EIS at any time.
# This file is set up by the setup-standard script.
#
# It is expected that Solaris 8 or higher is being used.
#
# Version 10NOV10
#
OPENWINHOME=/usr/openwin; export OPENWINHOME
MANPATH=${MANPATH}:/usr/share/man
EDITOR=vi
export EDITOR
if [ -z "${LD_LIBRARY_PATH}" ]
then
LD_LIBRARY_PATH=/usr/openwin/lib
else
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/openwin/lib
fi
if [ -z "${PATH}" ]
then
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin
else
PATH=${PATH}:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin
fi
#
# Ensure that /usr/sbin is in PATH - missing for Solaris 9 / SSH
#
PATH=${PATH}:/usr/platform/`uname -i`/sbin
echo $PATH | grep /usr/sbin > /dev/null 2>&1
if [ $? = 1 ]
then
PATH=/usr/sbin:${PATH}
fi
#
# Add the EIS scripts
#
if [ -d /opt/sun/bin ]
then
PATH=${PATH}:/opt/sun/bin
fi
#
# Veritas Volume Manager 3.0 - 3.1
#
VXVM3_BASE=/opt/VRTSvxvm
VMSA_BASE=/opt/VRTSvmsa
if [ -d ${VXVM3_BASE} ]
then
MANPATH=${VXVM3_BASE}/man:${MANPATH}
PATH=${PATH}:/etc/vx/bin
fi
if [ -d ${VMSA_BASE} ]
then
VMSAHOME=${VMSA_BASE}
export VMSAHOME
MANPATH=${VMSA_BASE}/man:${MANPATH}
PATH=${PATH}:${VMSA_BASE}/bin
fi
#
# Veritas Volume Manager 3.1.1 onwards or Veritas Filesystem 3.4 onwards
#
VXVM_MAN=/opt/VRTS/man
if [ -d ${VXVM_MAN} ]
then
MANPATH=${VXVM_MAN}:${MANPATH}
fi
#
# Veritas 3.5
#
if [ -d /opt/VRTS/bin ]
then
PATH=${PATH}:/opt/VRTS/bin:/etc/vx/bin
fi
#
# Veritas 3.5 GUI
#
if [ -d /opt/VRTSob/bin ]
then
PATH=${PATH}:/opt/VRTSob/bin
MANPATH=/opt/VRTSob/man:${MANPATH}
fi
#
# Veritas Licensing
#
if [ -d /opt/VRTSvlic/bin ]
then
PATH=${PATH}:/opt/VRTSvlic/bin
fi
#
# Sun VTS 6.4 & before
#
if [ -d /opt/SUNWvts/bin ]
then
PATH=${PATH}:/opt/SUNWvts/bin
MANPATH=${MANPATH}:/opt/SUNWvts/man
fi
#
# Sun VTS 7.0 onwards - we deliberately do NOT add the bin directory to PATH
#
if [ -d /usr/sunvts/man ]
then
MANPATH=${MANPATH}:/usr/sunvts/man
fi
#
# PCNFS
#
if [ -d /opt/SUNWpcnfs/bin ]
then
PATH=${PATH}:/opt/SUNWpcnfs/bin
fi
#
# RAID Manager for A1000, A3x00
#
if [ -d /usr/sbin/osa ]
then
PATH=${PATH}:/usr/sbin/osa
fi
#
# Networker / Solstice Backup
#
if [ -d /usr/sbin/nsr ]
then
PATH=${PATH}:/usr/bin/nsr
PATH=${PATH}:/usr/sbin/nsr
fi
#
# Sun Cluster 2.2 Software
#
if [ -d /opt/SUNWcluster/bin ]
then
PATH=${PATH}:/opt/SUNWcluster/bin
MANPATH=${MANPATH}:/opt/SUNWcluster/man
fi
if [ -d /opt/SUNWpnm/bin ]
then
PATH=${PATH}:/opt/SUNWpnm/bin
MANPATH=${MANPATH}:/opt/SUNWpnm/man
fi
#
# Sun Cluster 3.x Software
#
if [ -d /usr/cluster/bin ]
then
PATH=${PATH}:/usr/cluster/bin:/usr/cluster/lib/sc
MANPATH=/usr/cluster/man:${MANPATH}
if [ -d /opt/cluster/man ]
then
MANPATH=${MANPATH}:/opt/cluster/man
fi
fi
#
# Sun Cluster 3.0 DTK Software
#
if [ -d /usr/cluster/dtk ]
then
PATH=${PATH}:/usr/cluster/dtk/bin
MANPATH=${MANPATH}:/usr/cluster/dtk/man
fi
#
# Component Manager
#
if [ -d /opt/SUNWesm/bin ]
then
PATH=${PATH}:/opt/SUNWesm/bin
MANPATH=${MANPATH}:/opt/SUNWesm/man
fi
#
# Availibility Suite AVS 3.x
#
if [ -d /usr/opt/SUNWesm/sbin ]
then
PATH=${PATH}:/usr/opt/SUNWesm/sbin:/usr/opt/SUNWscm/sbin
MANPATH=${MANPATH}:/usr/opt/SUNWesm/man
fi
#
# StorADE
#
if [ -d /opt/SUNWstade/bin ]
then
PATH=${PATH}:/opt/SUNWstade/bin
MANPATH=${MANPATH}:/opt/SUNWstade/man
fi
#
# SunRay
#
if [ -d "/opt/tarantella" ]
then
PATH=$PATH:/opt/tarantella/bin
fi
if [ -d /opt/SUNWut ]
then
PATH=${PATH}:/opt/SUNWut/bin:/opt/SUNWut/sbin
MANPATH=${MANPATH}:/opt/SUNWut/man
fi
if [ -d "/opt/SUNWuttsc" ]
then
PATH=$PATH:/opt/SUNWuttsc/bin
MANPATH=$MANPATH:/opt/SUNWuttsc/man
fi
#
# SMS Software for SunFire 15K System Controllers
#
if [ -d /opt/SUNWSMS ]
then
PATH=/opt/SUNWSMS/bin:${PATH}
MANPATH=/opt/SUNWSMS/man:${MANPATH}
fi
#
# Explorer
#
if [ -d /opt/SUNWexplo/bin ]
then
PATH=${PATH}:/opt/SUNWexplo/bin
MANPATH=${MANPATH}:/opt/SUNWexplo/man
fi
#
# Sneep
#
if [ -d /opt/SUNWsneep/bin ]
then
PATH=${PATH}:/opt/SUNWsneep/bin
MANPATH=${MANPATH}:/opt/SUNWsneep/man
fi
#
# Automated Crash Analysis tool
#
if [ -d /opt/CTEact/bin ]
then
PATH=${PATH}:/opt/CTEact/bin
MANPATH=${MANPATH}:/opt/CTEact/man
fi
#
# SUNWqfs 4.0
#
if [ -d /opt/SUNWsamfs/bin ]
then
PATH=${PATH}:/opt/SUNWsamfs/bin:/opt/SUNWsamfs/sbin
MANPATH=${MANPATH}:/opt/SUNWsamfs/man
fi
#
# SSCS
#
if [ -d /opt/SUNWsscs/man ]
then
MANPATH=${MANPATH}:/opt/SUNWsscs/man
fi
#
# Sun Enterprise Storage Management
#
if [ -d /opt/SUNWstm/bin ]
then
PATH=${PATH}:/opt/SUNWstm/bin
MANPATH=${MANPATH}:/opt/SUNWstm/man
fi
#
# Add (SUNW) JET Packages
#
if [ -d /opt/SUNWjet/bin ]
then
PATH=${PATH}:/opt/SUNWjet/bin
fi
#
# Add N1PS (Provisioning Server) Packages (prepending is intended)
#
if [ -d /opt/terraspring/bin ]
then
PATH=/opt/terraspring/sbin:/opt/terraspring/bin:${PATH}
MANPATH=${MANPATH}:/opt/terraspring/man
fi
#
# Net Connect Proxy Directory
#
if [ -d /opt/SUNWsrspx/bin ]
then
PATH=${PATH}:/opt/SUNWsrspx/bin
fi
#
# CEDIAG - for FIN I0760-2
#
if [ -d /opt/SUNWcest/bin ]
then
PATH=${PATH}:/opt/SUNWcest/bin
MANPATH=${MANPATH}:/opt/SUNWcest/man
fi
#
# Sun Remote System Control RSC
#
if [ -d /opt/rsc/bin ]
then
PATH=${PATH}:/opt/rsc/bin
fi
#
# Sun Cacao
#
if [ -d /opt/SUNWcacao/bin ]
then
PATH=${PATH}:/opt/SUNWcacao/bin
MANPATH=${MANPATH}:/opt/SUNWcacao/man
fi
#
# UCE
#
if [ -d /opt/SUNWuce/console/bin ]
then
PATH=${PATH}:/opt/SUNWuce/console/bin
fi
if [ -d /opt/SUNWuce/cli/bin ]
then
PATH=${PATH}:/opt/SUNWuce/cli/bin
fi
# SFW
#
if [ -d /opt/sfw/bin ]
then
PATH=${PATH}:/opt/sfw/bin
fi
#
# Sun LDM
#
if [ -d /opt/SUNWldm/bin ]
then
PATH=${PATH}:/opt/SUNWldm/bin
MANPATH=${MANPATH}:/opt/SUNWldm/man
fi
#
# Sun CAM/sscs
#
if [ -d /opt/SUNWsesscs/cli/bin ]
then
PATH=${PATH}:/opt/SUNWsesscs/cli/bin
MANPATH=${MANPATH}:/opt/SUNWsesscs/cli/man
fi
#
# Auto Service Request ASR
#
if [ -d /opt/SUNWswasr/bin ]
then
PATH=${PATH}:/opt/SUNWswasr/bin/asr
fi
export PATH MANPATH LD_LIBRARY_PATH
#
# Ignore next steps if running from CRON
#
if [ "`tty`" != "not a tty" ]
then
#
# Requested by many colleagues - uncomment as needed
#
# stty erase \^h #for backspace
# stty erase \^? #for delete
#
#
# Set shell prompts - special for N1PS
#
PS1="`id |cut -d '(' -f2|cut -d ')' -f1' '`@`uname -n` # "
PS2="`id |cut -d '(' -f2|cut -d ')' -f1' '`@`uname -n` > "
if [ -d /opt/terraspring/bin ]
then
PS1="N1adm # "
PS2="N1adm > "
fi
export PS1 PS2
fi
bash-3.00#
buka Terminal CLI lalu telnet ke server dan hasilnya
root@teguht #
8. Check Alias (Tampilan CLI)
buka Terminal CLI lalu telnet ke server dan hasilnya
root@teguht #
login: root
Password:
Last login: Tue Jun 28 16:00:12 from 10.10.10.20
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
Sourcing //.profile-EIS.....
root@teguht # bash
root@teguht # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index
1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index
2
inet 10.10.10.10 netmask ffffffe0 broadcast 10.10.10.255
ether 0:14:4f:af:2a:60
root@teguht #
No comments:
Post a Comment