Thursday, December 29, 2016

Script - Collects log message for 2 days - today and the day before from /var/adm/messages

Tested on Solaris 10
[sam@sinf-mg-v01]$ cat var_messages.sh
#!/bin/bash
# @expanor, LLC
# Sam Bhusal
# Collects log message for 2 days - today and the day before from /var/adm/messages
# Thu Dec 29 13:21:57 EST 2016
#
LOGFILE="logs/MESSAGES/messages_`date "+%m%d%y_time.%H-%M-%S.log"`"
#SUDO=/usr/local/bin/sudo
# Need to get log file for two days.
AAJA="`date '+%b %e'`"
# Assume GNU coreutils is present on the system
HIJO=`TZ=GMT+24 date +'%b %e'`
#for i in 10.22.112.11 10.22.112.11
for i in `cat ../etc/hosts.ip | grep -v "#" | awk '{print$1}'`
do
        echo "                    " >>$LOGFILE
        echo "                    "
        echo "Please wait ... Checking on $i server" >> $LOGFILE
        echo "Please wait ... Checking on $i server"
        ssh -q $i /usr/local/bin/sudo /usr/bin/cat /var/adm/messages | egrep "$HIJO|$AAJA" >> $LOGFILE
        echo "__________________________End of the Log FIle_____________________">> $LOGFILE
        echo "                     " >>$LOGFILE
done
echo "Reading Log file"
echo "Please wait ...."
echo ""
more $LOGFILE
[sam@my-sunserv-v01]$

Friday, December 23, 2016

Solaris11 - set up


# crle
# which gcc
# gcc -v
# ./configure --prefix=/usr/local/net-snmp
# mkdir -p /usr/local/net-snmp
# make
# ls agent
# pwd
# cd ../
# cd net-snmp
# cd sbin
# ./snmpd -v
# ./snmpd -V
# crle
# ls
# cd ../
# ls
# pwd
# cd ..
# ls
# tar cf - net-snmp | ( cd /usr/local; tar xfBp - )
# cd /usr/local
# ls
# cd net-snmp
# ls
# cat S99sma
# pwd
# ls
# cd sbin
# ls
# ./snmpd -v
# pwd
# ls
# cd ../
# ls
# cp S99sma /etc/rc3.d
# cd share
# ls
# cd snmp
# ls
# cat snmpd.conf |more
# pwd
# cd ../..
# ls
# cd bin
# ls
# ./net-snmp-create-v3-user
# /etc/rc3.d/S99sma start
# cat /etc/rc3.d/S99sma
# ps -ef | grep -i snmp
# ps -ef | grep -i snmp
# /usr/sfw/bin/snmpget -v 3 -u snmpv3 -l authNoPriv -a MD5 -A SC3Soracle localhost sysUpTime.0
# which snmpget
# /usr/bin/snmpget -v 3 -u snmpv3 -l authNoPriv -a MD5 -A SC3Soracle localhost sysUpTime.0
# ps -ef | grep -i snmp
# crle
# ls /usr/local/lib
# /usr/local/net-snmp/sbin/snmpd -v
# exit
# svcs -a | grep -i snmp
# ps -ef | grep -i snmp
# /usr/local/net-snmp/sbin/snmpd -v
# cd /etc/rc3.d
# ls
# cat S99sma
# ps -ef | grep -i snmp
# cd ../rc2.d
# ls
# df -k
# ps -ef |more
# ntpq -p
#  ps -ef | grep -i snmp
# df -k
# crontab -l
# cd /var/audit/BART
# cd /usr/local/ssh6.6p1/sbin
# ./sshd -V
# ./sshd -v
# ifconfig -a
# ipmpstat -g
# ipmpstat -i
# df -k
# crontab -l
# cd /var/tmp/CAC/DEV/DEV_AD-KRB5-LDAP-Bundle09122016/
# rm ssh6.6p1.tar
  149  ls -al
  150  rm sudo-pam
  151  ls -al
  152  ls -l libraries
  153  ls -al /usr/local/lib/security/
  154  pwd
  155  ls -al
  156  rm -fr libraries
  157  ls -al
  158  ls -l ad
  159  ls ldap
  160  cat ldap_add-tlsPREF.sh |more
  161  pwd
  162  cd ldap
  163  ls
  164  ls -al
  165  cat ldap_add-tlsPREF.sh |more
  166  cat /etc/hosts |more
  167  who
  168  w
  169  df -k
  170  pwd
  171  cd ../..
  172  ls
  173  cd ..
  174  ls
  175  cd TEST
  176  ls -al
  177  cd TEST_AD-KRB5-LDAP-Bundle10052016/
  178  ls
  179  ls -al
  180  rm -fr libraries
  181  rm ssh6.6p1.tar sudo-pam
  182  ls -al
  183  pwd
  184  ls -al
  185  cat sshd |more
  186  pwd
  187  ls -al
  188  cd ../
  189  ls
  190  vi ldap_inst_test.sh

  204  cd ../
  205  ls
  206  cd PROD
  207  ls
  208  cd PROD_AD-KRB5-LDAP-Bundle11072016/
  209  ls
  210  ls -al
  211  rm sudo-pam ssh6.6p1.tar
  212  ls -al
  213  rm -fr libraries
  214  ls -al
  215  ls -al ldap
  216  cd ldap
  217  ls
  218  cat ldap_add-tlsPREF.sh |more
  219  df -k
  220  ps -ef |more
  221  who
  222  w
  223  ps -ef | grep -i snmp
  224  crontab -l
  225  df -k
# ipadm show-if
# ifpadm show-addr
# ipadm show-addr
# cat /etc/netmasks
# ifconfig -a
# ps -ef |more
# df -k
# ls /usr/jdk
# cd /var/tmp
# df -k
# ps -ef |more
# zfs list
# zfs get all rpool/export/home
# which rsync
# cat /var/opt/BART/bart.sh |more
# pkg info entire
# zfs set quota=7G rpool/export/home
# cd /var/audit
# svcs -a | grep -i audit
# svcadm disable auditd
# rm 20161206154209.20161207125214.sol11-test-serv
# zfs list
# cd /var/audit
# cd ../
# zfs list
# zfs create rpool/VAR-AUDIT
# zfs list
# zfs set quota=3G rpool/VAR-AUDIT
# zfs list
# zfs set mountpoint=/var/audit rpool/VAR-AUDIT
# zfs list
# zfs set mountpoint=/var/audit rpool/VAR-AUDIT
# zfs list
# cd /var
# ls -al |more
# cd /var/share
# svcs -a | grep -i audit
# svcadm enable auditd
# ls -al /var/share/audit
# zfs get all rpool/VARSHARE
# ipmpstat -g
# ipmpstat -a
# ipmpstat -g
# ipmpstat -i
# hostname
# svcs -a | grep -i identity
# svcprop  svc:/system/identity:node
# which gcc
# which bart
# cd /var/share/audit
# mkdir -p BART
# cd BART
# mkdir compare manifest
# cd ../
# ls
# ifconfig -a
# ipmpstat -i
# crle
# vi /etc/ssh/sshd_config
# svcadm refresh ssh
# cd local/ssh6.6p1/etc
# rm ssh_host_rsa_key ssh_host_rsa_key.pub ssh_host_dsa_key ssh_host_dsa_key.pub
# vi sshd_config
# cd ad/krb5
# beadm list
# beadm destroy altSolaris
# beadm list
# beadm create altSolaris
# unzip SCC_4.1.1_solaris_sparc.zip
# ls -al
# cd SCC_4.1.1_solaris_sparc
# ls
# gunzip scc-4.1.1_solaris_sparc.tar.gz
# ls -al
# tar tvf scc-4.1.1_solaris_sparc.tar |more
# gunzip scc-4.1.1-solaris-sparc.gz
# pkgadd -d scc-4.1.1-solaris-sparc
# cd /opt/scc
# ./cscc --config
# ./cscc
# cd /export/home/
# cd SCC
# chmod 755 Results/
# cd Results/
# ls -al
# chmod -R 755 SCAP
# ls -al
# cd SCAP/2016-12-14_230413/XML
# cd ../
# cd ..
# ls -al
# cd 2016-12-14_230413/
# svcs -a | grep -i ftp
# ps -ef | more

Solaris11/11: - vnc server set up

Running VNC on solaris 10 server. Look below for solaris 11



10.222.102.64[jay@ddnp-rd-v06]$ vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth:  creating new authority file /home/jay/.Xauthority
New 'ddnp-rd-v06:1 ()' desktop is ddnp-rd-v06:1
Creating default startup script /home/jay/.vnc/xstartup
Starting applications specified in /home/jay/.vnc/xstartup
Log file is /home/jay/.vnc/ddnp-rd-v06:1.log

- Download vnc viewerfrom readvnc or tigervnc or tightvnc
- open your vnc client, enter your ipaddress and password and connect
192.168.10.20:2
will prompt for pw, enter the password

make sure you have session started.
if there is no session, run vncserver. if its first time, it will ask for password.
$ vncserver
^^^^^^^^^^^^^^^^^^^^^^^
if you need to change, use vncpasswd command
kbhusal@ddrp-nd-v:~$ which vncpasswd
/usr/bin/vncpasswd




^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Repo install failed on solaris-auto_install package check
root@ddrp-nd-v:/export/home/kbhusal/repo_dec_2016# ./install-repo.ksh -d /opt/OS_Repo/  -v -c
Using p24921515_1100_SOLARIS64 files for sol-11_3_14_6_0-incr-repo download.
IPS repository exists at destination /opt/OS_Repo/
Current version: 0.175.3.1.0.5.0
Do you want to add to this repository? (y/n)[n]: y
Comparing checksums of downloaded files...done. Checksums match.
Uncompressing p24921515_1100_SOLARIS64_1of4.zip...done.
Uncompressing p24921515_1100_SOLARIS64_2of4.zip...done.
Uncompressing p24921515_1100_SOLARIS64_3of4.zip...done.
Uncompressing p24921515_1100_SOLARIS64_4of4.zip...done.
Repository can be found in /opt/OS_Repo/.
Initiating repository rebuild.
Initiating repository verification.
pkg://solaris/install-image/solaris-auto-install                 4890/6694 /



root@ddrp-nd-v:~# pkg install solaris-desktop
           Packages to install: 317
            Services to change:  12
       Create boot environment:  No
Create backup boot environment: Yes
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            317/317   46429/46429  532.0/532.0    0B/s


PHASE                                          ITEMS
Installing new actions                   77186/77186
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1

root@ddrp-nd-v:~# inetadm
ENABLED   STATE          FMRI
disabled  disabled       svc:/application/cups/in-lpd:default
disabled  disabled       svc:/network/telnet:default

disabled  disabled       svc:/application/x11/xvnc-inetd:default



root@ddrp-nd-v:~# inetadm | grep xvnc
disabled  disabled       svc:/application/x11/xvnc-inetd:default

start it
root@ddrp-nd-v:~# inetadm -e xvnc-inetd
root@ddrp-nd-v:~# inetadm | grep xvnc
enabled   disabled       svc:/application/x11/xvnc-inetd:default
root@ddrp-nd-v:~#

root@ddrp-nd-v:~#

root@ddrp-nd-v:~# svcadm restart svc:/application/x11/xvnc-inetd:default
root@ddrp-nd-v:~# inetadm | grep xvnc
enabled   online         svc:/application/x11/xvnc-inetd:default
root@ddrp-nd-v:~#


check any trouble services
root@ddrp-nd-v:~# svcs -xv





Thursday, December 22, 2016

Solaris 10 - RBAC - granting read only access to files and directories using RBAC and sudo

pprev


Giving user a read only access to a directory in SOlaris 10
1. Create a user account
# useradd -d /export/home/sam -m -c "Sam Sharma" -s /bin/bash sam
# passwd sam
# passwd -f sam
# groups sam
other
2. Enable cac login
# vi /etc/passwd-login.allow
# vi /etc/cac-login.allow
# id abinitio
uid=1006(abinitio) gid=102(dba)
Note: Record UID of the user.
^^^^^^^^^^^^^^^^^^^ RBAC ^^^^^^^^^^^^^^
3. Create a role
# roleadd -c "Abinitio Read only access" -u 5006 -d /export/home/abinitio_ro -m abinitio_ro
# passwd abinitio_ro
# tail -f /etc/user_attr
3. Create profile and add priviledge to profile
# cd /etc/security
# cp -p prof_attr prof_attr.11292016
# cp -p exec_attr exec_attr.11292016
# vi prof_attr and add the line below
Abinitio_ro:::Abinitio Read Only Rights:
# grep Abinitio_ro /etc/security/prof_attr
Abinitio_ro:::Abinitio Read Only Rights:
# vi exec_attr
# grep Abinitio_ro /etc/security/exec_attr
Abinitio_ro:suser:cmd:::/usr/bin/cat:uid=1006
Abinitio_ro:suser:cmd:::/usr/bin/more:uid=1006
Abinitio_ro:suser:cmd:::/usr/bin/less:uid=1006

4. Assign profile to the role and add role to the user
# rolemod -P Abinitio_ro abinitio_ro
# usermod -R abinitio_ro sam
Keep adding user to the file.

5. Verify the entry
# tail -f /etc/user_attr
abinitio_ro::::type=role;profiles=Abinitio_ro
sam::::type=normal;roles=abinitio_ro
kbhusal::::type=normal;roles=abinitio_ro
6. When user assume the role, it will prompt for role password. So, allow user to access role without supplying password.
a. Using sudo
Now, Create user alias and allow user to su to role user without password.
# visudo
user alias
User_Alias ABINITIO_RO = sam
User privilege
ABINITIO_RO ALL=NOPASSWD: /usr/bin/su - abinitio_ro
b. Using RBAC
Enable a User to Use Own Password to Assume a Role
$ rolemod -K roleauth=user rolename
$ rolemod -K roleauth=sam rolename
Note: WE are using sudo for this task.
7. Add read and execute bit to the directories to allow read and execute to others.
# cd /data/abinitio/sd/ai_data_mount/data/serial
# find . -type f -perm 770 -print
# find . -type f -perm 660 -print
# find . -type d -print | more
# find . -type d -print -exec ls -l {}\; | more
# find . -type d -print -exec ls -ld {} \; | more
# find . -type d -perm -005  -exec ls -ld {} \; | more
# find . -type d ! -perm -005  -exec ls -ld {} \; | more
# find . -type d ! -perm -005  -exec chmod o+rx {} \;
# find . -type d ! -perm -005  -exec ls -ld {} \; | more

$ profiles abinitio_ro
$ roles
Now, login as a normal user and run the following command
$ profiles abinitio_ro
$ profiles -l abinitio_ro
$ roles
and access the role
$ sudo su - abinitio_ro







find folder -type d -exec chmod 750 "{}" \;
find folder -type f -exec chmod 640 "{}" \;

Tuesday, December 13, 2016

Python3 - Variable assignment and printing ..

#for i in range(5, 10):
  #print(i)
 
#for y in range(-5,-20,-3):
#  print(y)
a = ["Dog", "cat", "rat", "goat"]
for i in range(len(a)):
  print(i, a[i])
 
 
print(range(10))

1. Python3 - Hello world example

Introduction to Python


1. Go to https://repl.it/languages/python3 and start programming. Its an awesome place to get started.
2. Go to python.org and go to documentation
3. Click on tutorial and read and practice.


4. Once you have some familiarity with the content and the coding, you can install on your windows machine or use your Linux/UNIX.


5. Please note, by default on Unix/Linux, it comes with 2.x version, install 3.x and start practicing.
Here is the first example.


$ cat hello.py


print("Hello, World")
print("This is cool !!")
print("What can I do for you?")




6. Running on Linux/Unix systems

$ vi hellp.py
#!/python_location
print("Hello, World !!!")


$ python3 help.py





Python3 - Prompting user to enter something.


Prompting user to supply input at the prompt and displaying on the screen


x=input("Please enter your name")
print(x)
print("Hi,", x, "How are you?")

Sunday, December 11, 2016

Python3 - Compile, install and configure python 3 on Centos 7.x

Python3 - Compile and install =>
Prerequisite tasks:
a. Set up your yum repo and make sure you can install packages.
b. Install following packages:
#  yum groupinstall "Development tools"
# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel


Note: You need to have development tools installed otherwise, you will get your compile failed near the end of the line. If you already have LDAP server setup, you will get an warning related to Kerberos, just ignore.




1. Download the source code
# wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz



2. Extract the package
# cd /var/tmp; mkdir python; cd python/
# ls -ltr ../Python-3.5.2.tgz
# tar -xzvf ../Python-3.5.2.tgz






3. Compile and install
# cd Python-3.5.2/
# ./configure --prefix=/usr/local --enable-shared
# make
# make install
# cd /usr/local/
# cd bin
# ls -lh




4. Make python library available so that you can use python3.

# python3
python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory


# ls -l /usr/local/lib/libpython3.5m.so.1.0

# echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf
# ldconfig
# which python3
/usr/local/bin/python3
# export PATH=$PATH:/usr/local/bin
# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin






5. Check the version you install and start interactive console to start using it.
Note: as of now, most of the system defaults to 2.x version.



# python3 --version
Python 3.5.2
# python3
Python 3.5.2 (default, Dec 11 2016, 12:47:09)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>




6. Print hello world !!!
>>> print("Hello, World!!! \n Welcome to Python")
Hello, World!!!
 Welcome to Python




>>> msg="Hello, World!!! \n Welcome to Python"
>>> print(msg)
Hello, World!!!
 Welcome to Python
>>>


Thursday, December 8, 2016

OpsCenter - Installation on Solaris 11 x64 server



Raw install data ->


Installation of OpsCenter 12c


host =Solarisx64
ip = 192.168.10.20
OS=Solaris11.3


A. Create a repo
root@opscenter:~# zfs set atime=off datapool/FS_Opt_Repo






root@opscenter:/export/home/kamal# ./install-repo.ksh -d /opt/repo/ -I -v -c
Using sol-11_3-repo download.
Comparing checksums of downloaded files...done. Checksums match.
Uncompressing sol-11_3-repo_1of5.zip...done.
Uncompressing sol-11_3-repo_2of5.zip...done.
Uncompressing sol-11_3-repo_3of5.zip...done.
Uncompressing sol-11_3-repo_4of5.zip...done.
Uncompressing sol-11_3-repo_5of5.zip...done.
Repository can be found in /opt/repo/.
Initiating repository verification.
pkg://solaris/system/storage/scsi-target-mode-framework           666/5480 -



root@opscenter:/export/home/kamal# ./install-repo.ksh -d /opt/repo/ -I -v -c
Using sol-11_3-repo download.
Comparing checksums of downloaded files...done. Checksums match.
Uncompressing sol-11_3-repo_1of5.zip...done.
Uncompressing sol-11_3-repo_2of5.zip...done.
Uncompressing sol-11_3-repo_3of5.zip...done.
Uncompressing sol-11_3-repo_4of5.zip...done.
Uncompressing sol-11_3-repo_5of5.zip...done.
Repository can be found in /opt/repo/.
Initiating repository verification.
Building ISO image...done.
ISO image can be found at:
/export/home/kamal/sol-11_3-repo.iso
Instructions for using the ISO image can be found at:
/opt/repo//README-repo-iso.txt
root@opscenter:/export/home/kamal#




B. Refresh the repo to make it available
root@opscenter:~# pkgrepo -s /opt/repo/ refresh
Initiating repository refresh.


C. Share across the network
root@opscenter:~# zfs set share=name=s11repo,path=/opt/repo,prot=nfs datapool/FS_Opt_Repo
name=s11repo,path=/opt/repo,prot=nfs
root@opscenter:~# dfshares solaris
nfs dfshares:solaris: RPC: Unknown host
root@opscenter:~# dfshares solaris
nfs dfshares:solaris: RPC: Unknown host
root@opscenter:~# svcs -a | grep -i bind
online         17:57:10 svc:/network/rpc/bind:default
root@opscenter:~#



root@opscenter:/export/home/kamal/xvmoc_full_bundle# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://pkg.oracle.com/solaris/release/
root@opscenter:/export/home/kamal/xvmoc_full_bundle# pkg set-publisher -G '*' -M '*' -g /opt/repo/
solaris
root@opscenter:/export/home/kamal/xvmoc_full_bundle#


#!/bin/bash
# Count the number of word that is being searched on the file
# date:
FileName="greetings.txt"
FindWord="greet"
wcount="`tr" " "\n" < $fileName| grep$strToFind| wc-w`"
echo "The word '$FindWord is fount on $wcount times in the file $FileName."


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


Run OCdoctor


# ./OCDoctor.sh --ec-prereq




Got following error, and added following entries to /etc/system and /etc/host file.



error: Need to update/set /etc/system. Add: 'set pidmax=60000' to /etc/system.
        The system will require a reboot after making this change!
error: Need to update/set /etc/system. Add: 'set zfs:zfs_arc_max=6764412928' to
        /etc/system. The system will require a reboot after making this change!
error: Swap:  12G free needed as minimum, 2048M present - swap min equals RAM
        size up to 16G of swap
Number of precheck error messages: 7, number of warnings: 1
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *



root@opscenter:~# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 285,1         8  4194296  4194296
root@opscenter:~# swap -d /dev/zvol/dsk/rpool/swap
root@opscenter:~# zfs set volsize=12G rpool/swap
root@opscenter:~# swap -a /dev/zvol/dsk/rpool/swap
root@opscenter:~# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 285,1         8 25165816 25165816
root@opscenter:~# df -h /tmp
Filesystem             Size   Used  Available Capacity  Mounted on
swap                    12G    12M        12G     1%    /tmp
root@opscenter:~#
root@opscenter:~# swap -d /dev/zvol/dsk/rpool/swap
root@opscenter:~# zfs set volsize=12G rpool/swap
root@opscenter:~# swap -a /dev/zvol/dsk/rpool/swap
root@opscenter:~# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 285,1         8 33554424 33554424
root@opscenter:~# df -h /tmp
Filesystem             Size   Used  Available Capacity  Mounted on
swap                    26G     4K        26G     1%    /tmp
root@opscenter:~#



root@opscenter:/export/home/kamal/OCDoctor# ulimit -Sn 1024

root@opscenter:/export/home/kamal/OCDoctor# ulimit -Hn 65536


root@opscenter:/export/home/kamal/xvmoc_full_bundle# zfs set quota=70G rpool/ROOT/solaris/var






* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
error: Need to update/set /etc/system. Add: 'set max_nprocs=50000' to
        /etc/system. The system will require a reboot after making this change!
error: Need to update/set /etc/system. Add: 'set maxuprc=50000' to /etc/system.
        The system will require a reboot after making this change!
error: Need to update /etc/system. Update zfs_arc_max to: 'set
        zfs:zfs_arc_max=3006477107' in /etc/system. The system will require a
        reboot after making this change!
Number of precheck error messages: 4, number of warnings: 1
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Please fix the problem and then try this step again.
For a full log of the failed install see the file: /var/tmp/opscenter/installer.log.1330.
t. Try this step again (correct the failure before proceeding)
x. Exit
Enter selection: (t/x)



after changing the parameter, and rebooting, it didn't throw error any more




You may choose to ignore this warning by selecting to continue.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Kernel is currently configured with max_nprocs:  50000
max_nprocs value found in or under /etc/system:    50000
This vers, 0.175.3.1.0.5.0, is greater than or equal to 0.175.2.0.0.42.0
/usr/bin/pkgrepo list -s file:///opt/repo/  pkg://solaris/entire@0.5.11,5.11-0.175.3.1.0.5.0:           
                                                               20151006T140051Z
The configured solaris publisher supports this version of Oracle Solaris 11
Testing Shell Limits
localhost is alive
warning: Filesystem: /var - 85G recommended, 39G available.
Number of precheck error messages: 0, number of warnings: 1
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Please fix the problem and then try this step again.
For a full log of the failed install see the file: /var/tmp/opscenter/installer.log.1361.
t. Try this step again (correct the failure before proceeding)
c. Continue (ignore the warning)
x. Exit
Enter selection: (t/c/x) c
Continuing step:  Check for installation prerequisites.
Completed current step:  Check for installation prerequisites.
                                                               Ops Center Enterprise Controller
Installer
                                                                     (version 12.3.2.1113 on SunOS)

Executing current step:  Configure file systems...
Completed current step:  Configure file systems.
                                                               Ops Center Enterprise Controller
Installer
                                                                     (version 12.3.2.1113 on SunOS)




..........................


root@opscenter:/export/home/kamal/xvmoc_full_bundle# ./install






21. Initialize and start services.                                                                      
                                               [Not Completed]
Failed Step:  Install and Configure Oracle Database.
The following is a portion of the installer
log which may indicate the cause of the error.
If this does not indicate the cause of the
error, you will need to view the full log
file. More information on how to do that is
available below.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
System parameter file is
/var/opt/sun/xvm/oracle/app/oracle/product/12.1.0/ocdbhome/network/admin/listener.ora
Log messages written to /var/opt/sun/xvm/oracle/diag/tnslsnr/opscenter/oclistener/alert/log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=opscenter)(PORT=11176)))
TNS-12545: Connect failed because target host or object does not exist
 TNS-12560: TNS:protocol adapter error
  TNS-00515: Connect failed because target host or object does not exist

Listener failed to start. See the error message(s) above...
12-06-2016:18:54:00 ERROR: Could not start listener: OCLISTENER
Error: 256 when executing: cd /opt/ORCLsysman-db; ./cmd/createOCDB.sh 0 2000 6143
/var/tmp/opscenter/installer.prereq
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Please fix the problem and then try this step again.
For a full log of the failed install see the file: /var/tmp/opscenter/installer.log.1361.
t. Try this step again (correct the failure before proceeding)
x. Exit
Enter selection: (t/x)




D. added opscenter [hostname] on hostfile and continue, start working fine....

detail log, check at
# more /var/tmp/opscenter/installer.log.1361



....




Executing current step:  Seed Ops Center Database Schema..




Executing current step:  Initialize and start services...
Completed current step:  Initialize and start services.
                                                               Ops Center Enterprise Controller
Installer
                                                                     (version 12.3.2.1113 on SunOS)
 1. Check for installation prerequisites.                                                               
                                                   [Completed]
 2. Configure file systems.                                                                             
                                                   [Completed]
 3. Install prerequisite packages.                                                                      
                                                   [Completed]
 4. Install Agent components.                                                                           
                                                   [Completed]
 5. Create Deployable Proxy Bundles.                                                                    
                                                   [Completed]
 6. Install application packages.                                                                       
                                                   [Completed]
 7. Run postinstall tasks.                                                                              
                                                   [Completed]
 8. Install Expect.                                                                                     
                                                   [Completed]
 9. Install IPMI tool.                                                                                  
                                                   [Completed]
10. Set database credentials.                                                                           
                                                   [Completed]
11. Install and Configure Oracle Database.                                                              
                                                   [Completed]
12. Seed Ops Center Database Schema                                                                     
                                                   [Completed]
13. Install Service container components.                                                               
                                                   [Completed]
14. Install Core Channel components.                                                                    
                                                   [Completed]
15. Install Proxy Core components.                                                                      
                                                   [Completed]
16. Set Proxy database credentials.                                                                     
                                                   [Completed]
17. Install Enterprise Controller components.                                                           
                                                   [Completed]
18. Install Update Connection - Enterprise.                                                             
                                                   [Completed]
19. Install Ops Center BUI components.                                                                  
                                                   [Completed]
20. Install OS provisioning components.                                                                 
                                                   [Completed]
21. Initialize and start services.                                                                      
                                                   [Completed]


21. Initialize and start services.                                                                      
                                                   [Completed]

Ops Center Enterprise Controller installation is complete.
Please point your browser to:
        http://opscenter.expanor.local
to begin using Ops Center Enterprise Controller.
root@opscenter:/export/home/kamal/xvmoc_full_bundle#



complaining about /var fs
root@opscenter:/export/home/kamal/xvmoc_full_bundle# zfs set quota=70G rpool/ROOT/solaris/var
root@opscenter:/export/home/kamal/xvmoc_full_bundle#






login to the opscenter
http://opscenter.expanor.local
http://192.168.10.20
login with your OS root/pw
and follow the prompt to continue.
1. prerequisite check list
it complained for /var fs and increase to 70 G


2. Enterprise controller set up


3. proxy controller status
Proxy Controller Status
This table shows Proxy Controllers registered with this Ops Center, including the current status. A
Proxy must be online to be able to perform jobs such as discovery. If Proxy registration/startup is
still ocurring the status will update automatically. If the Proxy startup failed you can click Back to
retry the Proxy deployment.
For enabled Proxies you may perform a remote connectivity check. A job will be sent to the specified
Proxy, which will attempt to connect to a system in the Proxy's subnet using various discovery protocols
and will report the status. You will be prompted for the remote system to check when you launch the
operation.
Proxy Controller Status
Hostname Status IP/Subnet Mask  Connectivity
opscenter.expanor.local ONLINE 192.168.10.20/255.255.255.0 check
click on check to verify it.
next to continue ..


4. connection mode
Two mode
- connected mode
- Disconnected mode
we will be using disconnected mode since we will not be directly connected.



5. create software libraries
- select the default
Enter the URL location for the following component libraries. The Enterprise Controller creates the
libraries locally or connects to NAS libraries in the specified locations.

Software Library: file:///var/opt/sun/xvm/locallib/swlib0
*Oracle Solaris 11 Software Update Library: file:///var/opt/sun/xvm/locallib/
*Linux and Oracle Solaris 8-10 Software Update Library: file:///var/opt/sun/xvm/locallib/swlib2
Example of local library URL: file://var/opt/sun/xvm/locallib/swlib0
Example of NAS library URL: nfs://192.168.1.1/fso



6. configure dhcp for os provisining
7. Summary

Tuesday, November 29, 2016

Daily Check List for system administrator


Daily Check List for system administrator


1. Check your email and calendar
   - reply your mail right away
   - mark for important meetings


2. Check your ticket queue
   - find the urgency of the ticket.
   - priorotise the task


3. Make a list of servers with problems. Check log /var/adm/messages
    # tail -2000 /var/log/messages


4. Also check the following,


 a. Disk and Filesystem utilization issue
    # df -h
    # cd /mountpoint; du -sh *
    # iostat -En
    # iostat -Exn
    # zpool status
    # zfs list


 b. CPU utilization
    # w
    # prstat
    # vmstat
    # sar -u


 c. Memory utilization
    # prstat
    # vmstat
    # swap -s; swap -l
    # top -> if you have one installed. [check under /usr/sfw/bin]


 d. Network Statistics
    # netstat -rn
    # netstat -an
    # netstat -in
    # netstat -m




5. Once you are familar with the manual process, write all steps into a file and develop a script.
   - if your place allows emailing, put it on cron and send it through email
   - or use monitoring tools to check the status of your system.

Solaris 10 - Q4, 2016 patching Instructions



Solaris 10 Q4, 2016 patching Instructions
1. List and Delete old Boot Environment
# lustatus
# ludelete aBE01252016
# lustatus
# zfs list

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if you fail to delete BE, perform the following.
# ludelete aBE01252016
ERROR: boot environment </.alt.tmp.b-X1f.mnt> does not exist
ERROR: </.alt.tmp.b-X1f.mnt> is not a valid root device (not a block device)
ERROR: no file system is mounted on </.alt.tmp.b-X1f.mnt>
ERROR: </.alt.tmp.b-X1f.mnt> is not a root device, mount point, or name of
a currently mounted boot environment
ERROR: environment <aBE01252016>.
ERROR: boot environment </.alt.tmp.b-X1f.mnt> does not exist
ERROR: </.alt.tmp.b-X1f.mnt> is not a valid root device (not a block device)
ERROR: no file system is mounted on </.alt.tmp.b-X1f.mnt>
ERROR: </.alt.tmp.b-X1f.mnt> is not a root device, mount point, or name of a
currently mounted boot environment

# cp -rp /etc/lu /var/tmp/lu.deleted.BE.10182016
# cd /etc/lu
# rm ICF.* INODE.* rm .??* ./.alt.* tmp/*
# mv  /etc/lutab /var/tmp/lutab.deleted.BE.10182016
# lustatus
# zfs list -t snapshot
# zfs destroy -R rpool2/ROOT/aBE01252016@pBE04212016
# zfs destroy -R rpool2/ROOT/aBE01252016@pBE04212016

# lucreate -c aBE01252016 -n aBE07202016
# lumount aBE07202016 /alt
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2. Back up configuration and remove old logs
a. /etc/hosts, /etc/nsswitch.conf, /etc/mail/sendmail.cf
b. df -h >/var/tmp/df.out
c. zfs list >/var/tmp/myzfs.out
d. zpool list> /var/tmp/zpool.list
e. zpool status >/var/tmp/zpool.status
cp -p /etc/hosts /etc/hosts.10182016
cp -p /etc/nsswitch.conf /etc/nsswitch.conf.10182016
cp -p /etc/mail/sendmail.cf /etc/mail/sendmail.cf.10182016
df -h >/var/tmp/df.out.10182016
zfs list >/var/tmp/myzfs.out.10182016
zpool list> /var/tmp/zpool.list.10182016
zpool status >/var/tmp/zpool.status.10182016
cat /etc/lu/ICF.1>/var/tmp/ICF1.bk.10182016
cat /etc/lu/ICF.2>/var/tmp/ICF2.bk.10182016
cd /var/adm; rm pacct.* auditlog.0 auditlog.1
cd /var/tmp; rm -fr DCE* SPX* TCP* US* RAW* NMP* net* ISPX* VI* BEQ* DEC* ITCP*
cd /var/audit; /usr/local/bin/purge_audit.sh; cd /var/tmp
 
3. Create New BE
# lucreate -n pBE_10182016
4. extract patch
# cd /data/patch_sol; unzip /repository/Solaris/10_Recommended_CPU_2016-10.zip
Note: Verify the space: # df -h /
5. Mount  new BE under /alt
# lumount pBE_10182016 /alt
6. Apply OS patches to /alt.  Apply Pre-Req first and Patch cluster
# cd /data/patch_Sol/10_Recommended_CPU_2016-10
# ./installcluster --apply-prereq --s10patchset
7. Then Apply Patch cluster to AltBE
# nohup ./installcluster -R /alt --s10patchset --disable-space-check > /alt/opt/Patches/10_Recommended.out 2>&1 &
# tail -f /alt/opt/Patches/10_Recommended.out
or
# nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
# df -h / /alt

------------------JAVA patch------------------------
8. Apply java patch
# unzip -q 147692-82.zip; unzip -q 147693-82.zip; unzip -q 151672-03
# patchadd -R /alt 147692-82; patchadd -R /alt 147693-82; patchadd -R /alt 151672-03
# for i in 147692-82 147693-82 151672-03; do  patchadd -R /alt $i ; done
9. Verify patch
#  showrev -p -R /alt | grep 150400-40
10. Re-link default java and verify the version
/usr/bin/java
cd /alt/usr;rm java;ln -s jdk/latest java;./java/bin/java -version; /usr/java/bin/java -version
/usr/java/bin/java -version; /alt/usr/java/bin/java -version
-----------------------------------------------
11. After patching completes, run bootadm on the alternate mount (Must Do)
# bootadm update-archive -R /alt
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Now, On control domain,
# ldm list
# ldm list | egrep -v "inactive|NAME|primary" | awk '{print $1 "\t" $4}' | tee /var/tmp/LDOM_with_Port.txt /alt/var/tmp/LDOM_with_Port.txt

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12. Unmount the new BE  (be sure you're out of /alt dir)
# luumount pBE_10182016

13. Remove Patch Folder
# cd /var/tmp/patches
# rm -fr 10_Recommended
14. Activate BE
# luactivate <BE>
# luactivate pBE_10182016


15. If its a physical server and you have LDOM, please shutdown LDOM first.
Verify that all ldoms are down now.
On control domain,
# for i in `cat /var/tmp/LDOM_with_Port.txt | awk '{print $1}'`
> do
> ldm stop $i
> done
#
# for i in `cat /var/tmp/LDOM_with_Port.txt | awk '{print $1}'`; do ldm stop $i; done
# for i in `cat /var/tmp/LDOM_with_Port.txt | awk '{print $2}'`; do telnet 0 $i; done
Wait until all LDOMs are down.
Once all LDOMs are down, use init 6 or init 0 to boot your physical system.
If some reason you can't see LDOMs, power cycle the host.
Login to console and peroform the following tasks,
stop /SYS
start /SYS
start /SP/console
will help you to bring up the LDOM.
This is always a good practice.

16. Reboot the system and verify the patch level
# sync;sync;sync
# init 0
note: do not use reboot command it does not update the boot environment.
upon reboot verify the kernel (patch) lavel
# uname -a
SunOS serp-mw-v12 5.10 Generic_150400-38 sun4v sparc sun4v

17. Once control domain comes online and you verify it, and bring the LDOM up.
# svcs -a | grep -i mile
make sure all are online.
Once your physical system is fully up, login to LDOM, all ldoms are at ok prompt. use boot command to boot the servers. Wait until you can login through ssh.
# for i in `cat /var/tmp/LDOM_with_Port.txt | awk '{print $1}'`; do ldm start $i; done
# for i in `cat /var/tmp/LDOM_with_Port.txt | awk '{print $2}'`
> do
> telnet 0 $i
> done
#


==============================================

# luactivate aBE_072016
A Live Upgrade Sync operation will be performed on startup of boot environment <aBE_072016>.

**********************************************************************
The target boot environment has been activated. It will be used when you
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
MUST USE either the init or the shutdown command when you reboot. If you
do not use either init or shutdown, the system will not boot using the
target BE.
**********************************************************************
In case of a failure while booting to the target BE, the following process
needs to be followed to fallback to the currently working boot environment:
1. Enter the PROM monitor (ok prompt).
2. Boot the machine to Single User mode using a different boot device
(like the Solaris Install CD or Network). Examples:
     At the PROM monitor (ok prompt):
     For boot to Solaris CD:  boot cdrom -s
     For boot to network:     boot net -s
3. Mount the Current boot environment root slice to some directory (like
/mnt). You can use the following commands in sequence to mount the BE:
     zpool import rpool
     zfs inherit -r mountpoint rpool/ROOT/pBE04212016
     zfs set mountpoint=<mountpointName> rpool/ROOT/pBE04212016
     zfs mount rpool/ROOT/pBE04212016
4. Run <luactivate> utility with out any arguments from the Parent boot
environment root slice, as shown below:
     <mountpointName>/sbin/luactivate
5. luactivate, activates the previous working boot environment and
indicates the result.
6. umount /mnt
7. zfs set mountpoint=/ rpool/ROOT/pBE04212016
8. Exit Single User mode and reboot the machine.
**********************************************************************


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sendmail issue after patching

# cp submit.cf submit.cf.bad.08232016
# cp sendmail.cf sendmail.cf.bad.08232016
# cp -p sendmail.cf.old sendmail.cf
# cp -p submit.cf.old submit.cf
# svcs -a | grep mail
online         Aug_19   svc:/network/sendmail-client:default
online         Aug_19   svc:/network/smtp:sendmail
# svcadm restart  svc:/network/sendmail-client:default
#  mail -s "Test mail from `hostname`" testuser@testdomain.com
Test mail
# mailq
/var/spool/mqueue is empty
                Total requests: 0
#
Verify mail is delivered.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Solaris 10 - RBAC --> Giving user a read only access to a directory



Giving user a read only access to a directory in SOlaris 10
1. Create a user account
# useradd -d /export/home/jmiles -m -c "John  Miles" -s /bin/bash jmiles
# passwd jmiles
# passwd -f jmiles
# groups jmiles
other
2. Enable cac login
# vi /etc/passwd-login.allow
# vi /etc/cac-login.allow
# id abinitio
uid=1006(abinitio) gid=102(dba)
Note: Record UID of the user.
^^^^^^^^^^^^^^^^^^^ RBAC ^^^^^^^^^^^^^^
3. Create a role
# roleadd -c "Abinitio Read only access" -u 5006 -d /export/home/abinitio_ro -m abinitio_ro
# passwd abinitio_ro
# tail -f /etc/user_attr
3. Create profile and add priviledge to profile
# cd /etc/security
# cp -p prof_attr prof_attr.11292016
# cp -p exec_attr exec_attr.11292016
# vi prof_attr and add the line below
Abinitio_ro:::Abinitio Read Only Rights:
# grep Abinitio_ro /etc/security/prof_attr
Abinitio_ro:::Abinitio Read Only Rights:
# vi exec_attr
# grep Abinitio_ro /etc/security/exec_attr
Abinitio_ro:suser:cmd:::/usr/bin/cat:uid=1006
Abinitio_ro:suser:cmd:::/usr/bin/more:uid=1006
Abinitio_ro:suser:cmd:::/usr/bin/less:uid=1006

4. Assign profile to the role and add role to the user
# rolemod -P Abinitio_ro abinitio_ro
# usermod -R abinitio_ro jmiles
Keep adding user to the file.

5. Verify the entry
# tail -f /etc/user_attr
abinitio_ro::::type=role;profiles=Abinitio_ro
jmiles::::type=normal;roles=abinitio_ro
kbhusal::::type=normal;roles=abinitio_ro
6. When user assume the role, it will prompt for role password. So, allow user to access role without supplying password.
a. Using sudo
Now, Create user alias and allow user to su to role user without password.
# visudo
user alias
User_Alias ABINITIO_RO = jmiles
User privilege
ABINITIO_RO ALL=NOPASSWD: /usr/bin/su - abinitio_ro
b. Using RBAC
Enable a User to Use Own Password to Assume a Role
$ rolemod -K roleauth=user rolename
$ rolemod -K roleauth=jmiles rolename
Note: WE are using sudo for this task.
7. Change the permission of the directories to allow read and execute bit
# cd /data/abinitio/sd/ai_data_mount/data/serial
# find . -type f -perm 770 -print
# find . -type f -perm 660 -print
# find . -type d -print | more
# find . -type d -print -exec ls -l {}\; | more
# find . -type d -print -exec ls -ld {} \; | more
# find . -type d -perm -005  -exec ls -ld {} \; | more
# find . -type d ! -perm -005  -exec ls -ld {} \; | more
# find . -type d ! -perm -005  -exec chmod o+rx {} \;
# find . -type d ! -perm -005  -exec ls -ld {} \; | more

$ profiles abinitio_ro
$ roles
Now, login as a normal user and run the following command
$ profiles abinitio_ro
$ profiles -l abinitio_ro
$ roles
and access the role
$ sudo su - abinitio_ro

Tuesday, July 26, 2016

Solaris 10 - Send break on t-series servers from SP

System State - bringing system to ok prompt
To send system to ok prompt, perform the following.

1. From system shell prompt, use the commands shutdown or init 0
# init 0
# shutdown -y -i0 -g0

2. From system processor (the ILOM ->) prompt, type
-> set /HOST send_break_action=break

and login to console to go to ok prompt.
-> start /SP/console

If system is keep rebooting, set auto-boot to false.
From the ILOM -> prompt, type:
-> set /HOST/bootmode script=”setenv auto-boot? false”

and then reset the system.

-> reset /SYS
-> start /SP/console

If you have to power off your unresponsive system and need to power off, stop it from SP
-> Stop /SYS

Monday, July 25, 2016

Solaris 11 - Installing Solaris 11 on Solaris 10 Contrl Domain

Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
CPM UART driver version 0.03
ttyS00 at 0x0100 is apty: 256 Unix98 ptys configured
Generic RTC Driver v1.07
eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 6, addr 00:21:28:15:a9:e5
RAMDISK driver initialized: 16 RAM disks of 18432K size 1024 blocksize
eth0: Phy @ 0x0, type DM9161 (0x0181b881)
loop: loaded (max 8 devices)
physmap flash device: 2000000 at fe000000
 Amd/Fujitsu Extended Query Table v1.3 at 0x0040
number of CFI chips: 1
Using command line partition definition
Creating 8 MTD partitions on "Physically mapped flash":
mtdblock1: 0x00000000-0x00060000 : "u1"
mtdblock2: 0x00060000-0x00080000 : "e1"
mtdblock3: 0x00080000-0x00200000 : "k1"
mtdblock4: 0x00200000-0x01000000 : "r1"
mtdblock5: 0x01000000-0x01060000 : "u2"
mtdblock6: 0x01060000-0x01080000 : "e2"
mtdblock7: 0x01080000-0x01200000 : "k2"
mtdblock8: 0x01200000-0x02000000 : "r2"
i2c-core.o: i2c core module version 2.6.1 (20010830)
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)
i2c-rpx.o: i2c MPC8xx module version 2.6.1 (20010830)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
ip_conntrack version 2.1 (1024 buckets, 8192 max) - 292 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/proje              cts/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 68k init
modprobe: modprobe: Can't open dependencies file /lib/modules/2.4.22/modules.dep               (No such file or directory)
Creating /var tmpfsCreating directories in /var ...done.
Creating /var/log tmpfsdone.
Activating swap.
Calculating module dependencies... done.
Loading modules: fpga Warning: loading /lib/modules/2.4.22/misc/fpga/fpga.o will               taint the kernel: non-GPL
license - Proprietary
  See http://www.tux.org/lkml/#export-tainted for information about tainted modu              les
Platform ID      : 1
Minor revision   : 0
Major revision   : 5
FPGA power status : 80
  (SYS_POK_EN  !DC_POK  !POK_OIO  !POK_VMEMR  !POK_VMEML  !POK_VCORE  !POK_PSU1                !POK_PSU0 )
BR2: 0xf2000000/0x1000000/0xf2000401/0xff0001fc
FPGA init OK: base f2000000, size 1000000 (major 120)
Module fpga loaded, with warnings
fpga_flash Warning: loading /lib/modules/2.4.22/misc/fpga_flash/fpga_flash.o wil              l taint the kernel: no license
  See http://www.tux.org/lkml/#export-tainted for information about tainted modu              les
Module fpga_flash loaded, with warnings
immap Warning: loading /lib/modules/2.4.22/misc/immap/immap.o will taint the ker              nel: no license
  See http://www.tux.org/lkml/#export-tainted for information about tainted modu              les
Module immap loaded, with warnings
Checking all file systems...
fsck 1.37 (21-Mar-2005)
Setting kernel variables ...
kernel.core_pattern = /coredump/%h.%e.core
kernel.core_uses_pid = 1
net.ipv4.ip_local_port_range = 3100 7075
... done.
Mounting local filesystems...
Cleaning /tmp /var/run /var/lock.
Identifying DOC Device Type(G3/G4/H3) ...


Using /lib/modules/2.4.22/misc/tffs/tffs_h3.o
tffs: TrueFFS driver 7100.76
tffs: will not use IRQ
tffs: Looking for G4/P4 MDOC Devices while assuming IF_CFG=16.
tffs: Looking for G4/P4 MDOC Devices while assuming IF_CFG=8.
tffs: Flow: G4_docWindowBaseAddress Exit (NOT FOUND).
tffs: Looking for G3/P3 MDOC Devices while assuming IF_CFG=16.
tffs: Looking for G3/P3 MDOC Devices while assuming IF_CFG=8.
tffs: Looking for H1 DOC at address 0xcd159000
tffs: DOCH found
tffs: Socket 0 in addr 0xf4000000
tffs: Device 0x0: size 0xed80000 HW sector 0x200 (recommended 0x1000)
tffs: use major device number 100
Partition check:
 tffsa: tffsa1 tffsa2 tffsa3
tffs:     disk partition: dev_number=0x6401, 65534 sectors, start_sector=1
tffs:     disk partition: dev_number=0x6402, 65536 sectors, start_sector=65535
tffs:     disk partition: dev_number=0x6403, 112000 sectors, start_sector=131071
Loaded TFFS kernel module /lib/modules/2.4.22/misc/tffs/tffs_h3.o
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on tffs(100,1), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,0), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,1), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on tffs(100,3), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
Checking DOC size...
Mounted all disk partitions.
Setting the System Clock using the Hardware Clock as reference...
System Clock set. Local time: Mon Jul 25 22:45:51 GMT 2016
Setting up networking...done.
Running ldconfig...done
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces...Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
Listening on LPF/eth0/00:21:28:15:a9:e5
Sending on   LPF/eth0/00:21:28:15:a9:e5
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
Hostname: SUNSP00212815A9E5.
Starting portmap daemon: portmap.
Initializing random number generator...done.
INIT: Entering runlevel: 3
Starting system log daemon: syslogd and klogd.
Starting periodic command scheduler: cron.
Starting IPMI Stack...... Done.
Starting portmap daemon: portmap.
Starting OpenBSD Secure Shell server: sshd.
Starting Servicetags discoverer: stdiscoverer.
Starting Servicetags listener: stlistener.
Starting FRU update program: frutool.
frutool::assert::serialize_conf: (ft_conf.c:544) '0'
frutool::assert::serialize_conf: (ft_conf.c:544) '0'
SUNSP00212815A9E5 login: root
Password:
Waiting for daemons to initialize...
...
Daemons ready
Sun(TM) Integrated Lights Out Manager
Version 2.0.4.27.g

Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Third-party software, including font technology, is copyrighted and licensed
from Sun suppliers.
Portions may be derived from Berkeley BSD systems, licensed from U. of CA.
Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks
of Sun Microsystems, Inc. in the U.S. and other countries.
Federal Acquisitions: Commercial Software -- Government Users Subject to
Standard License Terms and Conditions.

Copyright 2008 Sun Microsystems, Inc. Tous droits réservés.
Distribué par des licences qui en restreignent l'utilisation.
Le logiciel détenu par des tiers, et qui comprend la technologie relative
aux polices de caractères, est protégé par un copyright et licencié par
des fournisseurs de Sun.
Des parties de ce produit pourront être dérivées des systèmes Berkeley BSD
licenciés par l'Université de Californie.
Sun, Sun Microsystems, et le logo Sun sont des marques de fabrique ou des
marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pa               s.

Warning: password is set to factory default.
->
U-Boot 1.1.1 (Feb 13 2009 - 10:56:58)
CPU:   MPC885ZPnn at 133 MHz: 8 kB I-Cache 8 kB D-Cache FEC present
Board: SPARC885
       Watchdog enabled
I2C:   ready
DRAM:
trying 128 MBytes
(128 MB SDRAM) 128 MB
Memory Tests: DA A1 A2 00 FF 55 AA T2 T3 T4
POST memory PASSED
FLASH: 32 MB
In:    serial
Out:   serial
Err:   serial
Net:   FEC ETHERNET
POST i2c  c  d 18 20 23 2a 2d 2e 30 40 43 46 51 53 54 56 68 69 6a 6b 70 71 PASS               ED
POST cpu PASSED
POST ethernet PASSED
Booting linux in 5 seconds...
## Booting image at fe080000 ...
   Image Name:   Linux-2.4.22
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    814991 Bytes = 795.9 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
do_bootm_linux():
  argv[0]=bootm
  argv[1]=0xfe080000
## Current stack ends at 0x07D38B70 => set upper limit to 0x00800000
No initrd
## cmdline at 0x007FFF00 ... 0x007FFF80
memstart    = 0x00000000
memsize     = 0x08000000
flashstart  = 0xFE000000
flashsize   = 0x02000000
flashoffset = 0x0004C000
sramstart   = 0x00000000
sramsize    = 0x00000000
EnvAddr     = 0x7C6B492E
EnvSize     = 0x4BFFFEB8
sectorsize  = 0x00020000
sectorcount = 0x00000100
booted      = 0xFE080000
boottype    = 0x00000000
primary     = 0xFFFFFFFF
pritype     = 0x00000000
secondary   = 0xFFFFFFFF
sectype     = 0x00000000
image0      = 0xFE000000
image1      = 0xFF000000
maximage    = 0x01000000
immr_base   = 0xF0000000
bootflags   = 0x00000001
intfreq     =    133 MHz
busfreq     = 66.500 MHz
ethaddr     = 00:21:28:15:A9:E5
IP addr     = 0.0.0.0
baudrate    =   9600 bps
## Transferring control to Linux (at address 00000000) ...
## parameters(007ffe90,00000000,00000000,007fff00,007fff80)
Linux version 2.4.22 (cb75630@sanpen-rh5-1) (gcc version 3.3.4) #2 Fri Feb 13 1               1:01:36 PST 2009 r42235
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock4 rootfstype=squashfs ro mtdparts=phys:3               84K(u1),128k(e1),1536K(k1),14M
(r1),384K(u2),128K(e2),1536K(k2),14M(r2)
Decrementer Frequency = 498750000/60
m8xx_wdt: active wdt found (SWTC: 0xFFFF, SWP: 0x1)
m8xx_wdt: keep-alive trigger installed (PITC: 0x1000)
Calibrating delay loop... 132.71 BogoMIPS
Memory: 127592k available (1416k kernel code, 444k data, 68k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
CPM UART driver version 0.03
ttyS00 at 0x0100 is apty: 256 Unix98 ptys configured
Generic RTC Driver v1.07
eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 6, addr 00:21:28:15:a9:e5
RAMDISK driver initialized: 16 RAM disks of 18432K size 1024 blocksize
eth0: Phy @ 0x0, type DM9161 (0x0181b881)
loop: loaded (max 8 devices)
physmap flash device: 2000000 at fe000000
 Amd/Fujitsu Extended Query Table v1.3 at 0x0040
number of CFI chips: 1
Using command line partition definition
Creating 8 MTD partitions on "Physically mapped flash":
mtdblock1: 0x00000000-0x00060000 : "u1"
mtdblock2: 0x00060000-0x00080000 : "e1"
mtdblock3: 0x00080000-0x00200000 : "k1"
mtdblock4: 0x00200000-0x01000000 : "r1"
mtdblock5: 0x01000000-0x01060000 : "u2"
mtdblock6: 0x01060000-0x01080000 : "e2"
mtdblock7: 0x01080000-0x01200000 : "k2"
mtdblock8: 0x01200000-0x02000000 : "r2"
i2c-core.o: i2c core module version 2.6.1 (20010830)
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)
i2c-rpx.o: i2c MPC8xx module version 2.6.1 (20010830)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
ip_conntrack version 2.1 (1024 buckets, 8192 max) - 292 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/proj               ects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 68k init
modprobe: modprobe: Can't open dependencies file /lib/modules/2.4.22/modules.de               p (No such file or directory)
Creating /var tmpfsCreating directories in /var ...done.
Creating /var/log tmpfsdone.
Activating swap.
Calculating module dependencies... done.
Loading modules: fpga Warning: loading /lib/modules/2.4.22/misc/fpga/fpga.o wil               l taint the kernel: non-GPL
license - Proprietary
  See http://www.tux.org/lkml/#export-tainted for information about tainted mod               ules
Platform ID      : 1
Minor revision   : 0
Major revision   : 5
FPGA power status : 80
  (SYS_POK_EN  !DC_POK  !POK_OIO  !POK_VMEMR  !POK_VMEML  !POK_VCORE  !POK_PSU1                 !POK_PSU0 )
BR2: 0xf2000000/0x1000000/0xf2000401/0xff0001fc
FPGA init OK: base f2000000, size 1000000 (major 120)
Module fpga loaded, with warnings
fpga_flash Warning: loading /lib/modules/2.4.22/misc/fpga_flash/fpga_flash.o wi               ll taint the kernel: no license
  See http://www.tux.org/lkml/#export-tainted for information about tainted mod               ules
Module fpga_flash loaded, with warnings
immap Warning: loading /lib/modules/2.4.22/misc/immap/immap.o will taint the ke               rnel: no license
  See http://www.tux.org/lkml/#export-tainted for information about tainted mod               ules
Module immap loaded, with warnings
Checking all file systems...
fsck 1.37 (21-Mar-2005)
Setting kernel variables ...
kernel.core_pattern = /coredump/%h.%e.core
kernel.core_uses_pid = 1
net.ipv4.ip_local_port_range = 3100 7075
... done.
Mounting local filesystems...
Cleaning /tmp /var/run /var/lock.
Identifying DOC Device Type(G3/G4/H3) ...


Using /lib/modules/2.4.22/misc/tffs/tffs_h3.o
tffs: TrueFFS driver 7100.76
tffs: will not use IRQ
tffs: Looking for G4/P4 MDOC Devices while assuming IF_CFG=16.
tffs: Looking for G4/P4 MDOC Devices while assuming IF_CFG=8.
tffs: Flow: G4_docWindowBaseAddress Exit (NOT FOUND).
tffs: Looking for G3/P3 MDOC Devices while assuming IF_CFG=16.
tffs: Looking for G3/P3 MDOC Devices while assuming IF_CFG=8.
tffs: Looking for H1 DOC at address 0xcd159000
tffs: DOCH found
tffs: Socket 0 in addr 0xf4000000
tffs: Device 0x0: size 0xed80000 HW sector 0x200 (recommended 0x1000)
tffs: use major device number 100
Partition check:
 tffsa: tffsa1 tffsa2 tffsa3
tffs:     disk partition: dev_number=0x6401, 65534 sectors, start_sector=1
tffs:     disk partition: dev_number=0x6402, 65536 sectors, start_sector=65535
tffs:     disk partition: dev_number=0x6403, 112000 sectors, start_sector=131071
Loaded TFFS kernel module /lib/modules/2.4.22/misc/tffs/tffs_h3.o
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on tffs(100,1), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,0), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,1), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on tffs(100,3), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
Checking DOC size...
Mounted all disk partitions.
Setting the System Clock using the Hardware Clock as reference...
System Clock set. Local time: Mon Jul 25 22:51:40 GMT 2016
Setting up networking...done.
Running ldconfig...done
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces...Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
Listening on LPF/eth0/00:21:28:15:a9:e5
Sending on   LPF/eth0/00:21:28:15:a9:e5
Sending on   Socket/fallback
eth0: status: link up.
eth0: status: link up, 100 Mbps Full Duplex, auto-negotiation complete.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
Hostname: SUNSP00212815A9E5.
Starting portmap daemon: portmap.
Initializing random number generator...done.
INIT: Entering runlevel: 3
Starting system log daemon: syslogd and klogd.
Starting periodic command scheduler: cron.
Starting IPMI Stack...... Done.
Starting portmap daemon: portmap.
Starting OpenBSD Secure Shell server: sshd.
Starting Servicetags discoverer: stdiscoverer.
Starting Servicetags listener: stlistener.
Starting FRU update program: frutool.
frutool::assert::serialize_conf: (ft_conf.c:544) '0'
frutool::assert::serialize_conf: (ft_conf.c:544) '0'
SUNSP00212815A9E5 login: root
Password:
Waiting for daemons to initialize...
...
Daemons ready
Sun(TM) Integrated Lights Out Manager
Version 2.0.4.27.g

Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Third-party software, including font technology, is copyrighted and licensed
from Sun suppliers.
Portions may be derived from Berkeley BSD systems, licensed from U. of CA.
Sun, Sun Microsystems, and the Sun Logo are trademarks or registered trademarks
of Sun Microsystems, Inc. in the U.S. and other countries.
Federal Acquisitions: Commercial Software -- Government Users Subject to
Standard License Terms and Conditions.

Copyright 2008 Sun Microsystems, Inc. Tous droits réservés.
Distribué par des licences qui en restreignent l'utilisation.
Le logiciel détenu par des tiers, et qui comprend la technologie relative
aux polices de caractères, est protégé par un copyright et licencié par
des fournisseurs de Sun.
Des parties de ce produit pourront être dérivées des systèmes Berkeley BSD
licenciés par l'Université de Californie.
Sun, Sun Microsystems, et le logo Sun sont des marques de fabrique ou des
marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays.

Warning: password is set to factory default.
-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS
-> cd /HOST
/HOST
-> ls
 /HOST
    Targets:
        bootmode
        diag
        domain
    Properties:
        autorestart = reset
        autorunonerror = false
        hypervisor_version =    Hypervisor 1.6.8.b 2008/11/25 09:05
        macaddress = 00:21:28:15:a9:dc
        obp_version =    OBP 4.29.1 2008/10/29 14:15
        post_version =    POST 4.29.1.d 2009/02/13 09:17
        send_break_action = (none)
        status = Powered on
        sysfw_version =  Sun System Firmware 7.1.7.h 2009/02/13 11:42

    Commands:
        cd
        set
        show
-> cd
Current default target: /HOST
-> pwd
Current default target: /HOST
-> cd /
/
-> ls
 /
    Targets:
        HOST
        SYS
        SP
    Properties:
    Commands:
        cd
        show
-> cd /SP
/SP
-> ls
 /SP
    Targets:
        alertmgmt
        cli
        clients
        clock
        console
        faultmgmt
        logs
        network
        policy
        powermgmt
        serial
        services
        sessions
        users
    Properties:
        customer_frudata = (none)
        hostname = SUNSP00212815A9E5
        reset_to_defaults = none
        system_identifier = (none)
    Commands:
        cd
        reset
        set
        show
        version
-> cd network
/SP/network
-> ls
 /SP/network
    Targets:
    Properties:
        commitpending = (Cannot show property)
        dhcp_server_ip = 192.168.10.1
        ipaddress = 192.168.10.22
        ipdiscovery = dhcp
        ipgateway = 192.168.10.1
        ipnetmask = 255.255.255.0
        macaddress = 00:21:28:15:A9:E5
        pendingipaddress = 192.168.10.22
        pendingipdiscovery = dhcp
        pendingipgateway = 192.168.10.1
        pendingipnetmask = 255.255.255.0
        state = enabled
    Commands:
        cd
        set
        show
-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y
Serial console started.  To stop, type #.
myt5120 console login: rot
Password:
Login incorrect
myt5120 console login: root
Jul 26 10:27:24 myt5120 last message repeated 3 times
Last login: Mon Jul 25 12:03:43 on console
Jul 26 10:28:07 myt5120 login: ROOT LOGIN /dev/console
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
You have new mail.
# bash
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G       0.3%  13m
abc              inactive   ------          2     2G
devchuli         inactive   ------          2     1G
fairfax          inactive   ------          2     2G
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 inde               x 1
        inet 127.0.0.1 netmask ff000000
vsw0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.10.150 netmask ffffff00 broadcast 192.168.10.255
        ether 0:14:4f:f8:5:83
bash-3.2# Jul 26 10:29:25 myt5120 sshd[853]: Failed keyboard-interactive for ka               mal from 192.168.10.21 port
50163 ssh2
Jul 26 10:29:46 myt5120 su: 'su root' succeeded for kamal on /dev/pts/1
Jul 26 10:33:49 myt5120 su: 'su root' succeeded for dneopane on /dev/pts/2
bash-3.2#
bash-3.2# cd /var/tmp
bash-3.2# pwd
/var/tmp
bash-3.2# cd 147307-12/
bash-3.2# ls
147307-12.html
Install.info
LEGAL_LICENSE.TXT
README.147307-12
SPARC_Enterprise_T5120+T5220_metadata.xml
Sun_System_Firmware-7_4_8_a-SPARC_Enterprise_T5120+T5220.pkg
copyright
license.txt
sysfwdownload
sysfwdownload.README
bash-3.2# ./sysfwdownload -g
bash: ./sysfwdownload: Permission denied
bash-3.2# ls l
l: No such file or directory
bash-3.2# ls -l
total 31436
-rw-r--r--   1 dneopane other      24550 Nov 25  2014 147307-12.html
-rw-r--r--   1 dneopane other      11821 Nov 18  2014 Install.info
-rw-r--r--   1 dneopane other        725 Apr 17  2014 LEGAL_LICENSE.TXT
-rw-r--r--   1 dneopane other      16548 Nov 25  2014 README.147307-12
-rw-r--r--   1 dneopane other       1328 Nov 18  2014 SPARC_Enterprise_T5120+T5               220_metadata.xml
-rw-r--r--   1 dneopane other    15990784 Nov 18  2014 Sun_System_Firmware-7_4_               8_a-
SPARC_Enterprise_T5120+T5220.pkg
-rw-r--r--   1 dneopane other         72 Nov 18  2014 copyright
-rw-r--r--   1 dneopane other        713 Nov 18  2014 license.txt
-rw-r--r--   1 dneopane other      21308 Nov 18  2014 sysfwdownload
-rw-r--r--   1 dneopane other       8235 Nov 18  2014 sysfwdownload.README
bash-3.2# sh sysfwdownload -g
sysfwdownload: syntax error at line 1: `(' unexpected
bash-3.2# more sysfwdownload
ELF
   84O,4 (44  Ã”(^L(^L(^L(^LØ)¸)¸Ã€/usr/lib/ld.so.1C?
3459<=
             "#%&(.01678:;*x
bash-3.2# chmod u+x sysfwdownload
bash-3.2# chmod root sysfwdownload
chmod: ERROR: invalid mode
bash-3.2# chown root sysfwdownload
bash-3.2# ./sysfwdownload -g
7.1.7.h
bash-3.2# ./sysfwdownload -g >/var/tmp/fw.version
bash-3.2# ls
147307-12.html
Install.info
LEGAL_LICENSE.TXT
README.147307-12
SPARC_Enterprise_T5120+T5220_metadata.xml
Sun_System_Firmware-7_4_8_a-SPARC_Enterprise_T5120+T5220.pkg
copyright
license.txt
sysfwdownload
sysfwdownload.README
bash-3.2# ./sysfwdownload -u Sun_System_Firmware-7_4_8_a-SPARC_Enterprise_T5120
+T5220.pkg
WARNING: Host will be powered down for automatic firmware update when download                is completed.
Do you want to continue(yes/no)? y
.......... (6%).......... (12%).......... (19%).......... (25%).......... (32%)               .......... (38%)..........
(44%).......... (51%).......... (57%).......... (64%               ).......... (70%).......... (76%)..........
(83%).......... (89%).......... (96               %)....... (100%)
Download completed successfully.
bash-3.2# sh: line 1: /usr/local/bin/autofwupdate: No such file or directory
bash-3.2# pwd
/var/tmp/147307-12
bash-3.2# ls
147307-12.html
Install.info
LEGAL_LICENSE.TXT
README.147307-12
SPARC_Enterprise_T5120+T5220_metadata.xml
Sun_System_Firmware-7_4_8_a-SPARC_Enterprise_T5120+T5220.pkg
copyright
license.txt
sysfwdownload
sysfwdownload.README
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,                                     x 1
        inet 127.0.0.1 netmask ff000000
vsw0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>
        inet 192.168.10.150 netmask ffffff00 broadcast 19
        ether 0:14:4f:f8:5:83
bash-3.2# dladm show-dev
vsw0            link: up        speed: 100   Mbps       d
e1000g0         link: up        speed: 100   Mbps       d
e1000g1         link: unknown   speed: 0     Mbps       d
e1000g2         link: unknown   speed: 0     Mbps       d
e1000g3         link: unknown   speed: 0     Mbps       d
bash-3.2# ifconfig e1000g1 192.100.100.20 up
ifconfig: SIOCGLIFNETMASK: e1000g1: no such interface
bash-3.2# ifconfig e1000g1 plumb
bash-3.2# ifconfig e1000g1 192.100.100.20 up
bash-3.2# ping 192.100.100.1
Jul 26 10:53:32 myt5120 in.routed[395]: route 192.100.100                                     nexthop is not directly
connected
no answer from 192.100.100.1
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY                                        UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G                                            0.3%  42m
abc              inactive   ------          2     2G                                         
devchuli         inactive   ------          2     1G                                         
fairfax          inactive   ------          2     2G                                         
bash-3.2# ldm add-domain devi
bash-3.2# ldm add-vcpu 2 devi
bash-3.2# ldm add-memory 4g devi
bash-3.2# ldm add-vnet vnet0 primary
bash-3.2# ldm list-services | more
VCC
    NAME             LDOM             PORT-RANGE
    primary-vcc0     primary          5000-5100
VSW
    NAME             LDOM             MAC               N                                     ET-DEV   ID   DEVICE    
LINKPROP   DEFAULT-VLAN-ID PVID                                      VID                  MTU   MODE   INTER-VNET-LINK
    primary-vsw0     primary          00:14:4f:f8:05:83 e                                     1000g0   0    switch@0         
    1               1                                                              1500         on
VDS
    NAME             LDOM             VOLUME         OPTI                                     ONS          MPGROUP       
DEVICE
    primary-vds0     primary          FORFAIRFAXLDOM                                                                     
/dev/rdsk/c1t3d0s2
                                      os10-image                                                                         
/opt/OS_Image/sol-10-u11-ga-s                                     parc-dvd.iso
bash-3.2# zpool list
NAME      SIZE  ALLOC   FREE  CAP  HEALTH  ALTROOT
devipool  136G  83.5K   136G   0%  ONLINE  -
dpool     136G  50.0G  86.0G  36%  ONLINE  -
rpool     136G  10.9G   125G   8%  ONLINE  -
bash-3.2# zfslist
bash: zfslist: command not found
bash-3.2# zfs list
NAME                         USED  AVAIL  REFER  MOUNTPOI                                     NT
devipool                    83.5K   134G    31K  /devipoo                                     l
dpool                        126G  7.53G  19.0G  /dpool
dpool/abc                   4.06G  7.53G    32K  /dpool/a                                     bc
dpool/abc/disk0             2.06G  9.60G    16K  -
dpool/abc/disk1             2.00G  7.53G  2.00G  /dpool/a                                     bc/disk1
dpool/devchuli              6.10G  7.53G    32K  /dpool/d                                     evchuli
dpool/devchuli/disk0        3.09G  10.6G    16K  -
dpool/devchuli/disk1        3.00G  7.53G  3.00G  /dpool/d                                     evchuli/disk1
dpool/devi                  5.16G  7.53G    31K  /dpool/d                                     evi
dpool/devi/disk0            5.16G  12.7G    16K  -
dpool/devipool_disk0        2.06G  9.60G    16K  -
dpool/kc                    5.00G  7.53G    32K  /dpool/k                                     c
dpool/kc/kc1                5.00G  7.53G  5.00G  /dpool/k                                     c/kc1
dpool/kcfile                  31K  7.53G    31K  /dpool/k                                     cfile
dpool/light0                10.3G  17.8G    16K  -
dpool/sam                   4.06G  7.53G    32K  /dpool/s                                     am
dpool/sam/disk0             2.06G  9.60G    16K  -
dpool/sam/disk1             2.00G  7.53G  2.00G  /dpool/s                                     am/disk1
dpool/vs01                  20.3G  7.53G    32K  /dpool/v                                     s01
dpool/vs01/disk0            10.3G  17.8G    16K  -
dpool/vs01/disk1            10.0G  7.53G  10.0G  /dpool/v                                     s01/disk1
dpool/vs02                  18.3G  7.53G    32K  /dpool/v                                     s02
dpool/vs02/disk0            10.3G  17.8G    16K  -
dpool/vs02/disk1            8.00G  7.53G  8.00G  /dpool/v                                     s02/disk1
dpool/vs03                  11.3G  7.53G    32K  /dpool/v                                     s03
dpool/vs03/disk0            10.3G  17.8G    16K  -
dpool/vs03/disk1            1.00G  7.53G  1.00G  /dpool/v                                     s03/disk1
dpool/vs04                  10.3G  7.53G    32K  /dpool/v                                     s04
dpool/vs04/disk0            10.3G  17.8G    16K  -
dpool/vs04/disk1              31K  7.53G    31K  /dpool/v                                     s04/disk1
dpool/vs05                  10.3G  7.53G    32K  /dpool/v                                     s05
dpool/vs05/disk0            10.3G  17.8G    16K  -
dpool/vs05/disk1              31K  7.53G    31K  /dpool/v                                     s05/disk1
rpool                       11.0G   123G   107K  /rpool
rpool/ROOT                  7.43G   123G    31K  legacy
rpool/ROOT/s10s_u11wos_24a  7.43G   123G  7.43G  /
rpool/dump                  1.50G   123G  1.50G  -
rpool/export                6.89M   123G    32K  /export
rpool/export/home           6.86M   123G  6.86M  /export/                                     home
rpool/sam                     31K   123G    31K  /rpool/s                                     am
rpool/swap                  2.06G   123G  2.00G  -
bash-3.2# ldm list -l primary
NAME             STATE      FLAGS   CONS    VCPU  MEMORY                                        UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G                                            1.1%  45m
SOFTSTATE
Solaris running
UUID
    ddc71464-2927-c236-f165-86973a3b1883
MAC
    00:21:28:15:a9:dc
HOSTID
    0x8515a9dc
CONTROL
CORE
    CID    CPUSET
    0      (0, 1, 2, 3)
VCPU
    VID    PID    CID    UTIL STRAND
    0      0      0      0.5%   100%
    1      1      0      0.2%   100%
    2      2      0      0.2%   100%
    3      3      0      0.2%   100%
MAU
    ID     CPUSET
    0      (0, 1, 2, 3)
MEMORY
    RA               PA               SIZE
    0x8000000        0x8000000        2G
VARIABLES
    auto-boot-on-error?=true
    boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a disk                                      net
    keyboard-layout=US-English
    nvramrc=." ChassisSerialNumber BEL091764X " cr
IO
    DEVICE                           PSEUDONYM        OPT                                     IONS
    pci@0                            pci
    niu@80                           niu
VCC
    NAME             PORT-RANGE
    primary-vcc0     5000-5100
VSW
    NAME             MAC               NET-DEV   ID   DEV                                     ICE     LINKPROP   DEFAULT-
VLAN-ID PVID VID                                                       MTU   MODE   INTER-VNET-LINK
    primary-vsw0     00:14:4f:f8:05:83 e1000g0   0    swi                                     tch@0              1           
   1                                                              1500         on
VDS
    NAME             VOLUME         OPTIONS          MPGR                                     OUP        DEVICE
    primary-vds0     FORFAIRFAXLDOM                                                                      /dev/rdsk/c1t3d0s2
                     os10-image                                                                          /opt/OS_Image/sol-
10-u11-ga-sparc-dvd.iso
VCONS
    NAME             SERVICE                     PORT
    SP
bash-3.2# echo | format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c1t1d0 <SEAGATE-ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
       2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@2,0
       3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@3,0
       4. c1t4d0 <HITACHI-H103014SCSUN146G-A2A8-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@4,0
       5. c1t5d0 <SEAGATE-ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@5,0
       6. c1t6d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@6,0
       7. c1t7d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@7,0
Specify disk (enter its number): Specify disk (enter its                                      number):
bash-3.2# svc.startd: The system is coming down.  Please                                      wait.
svc.startd: 82 system services are now being stopped.
Jul 26 11:16:27 myt5120 syslogd: going down on signal 15
svc.startd: The system is down.
syncing file systems... done
INIT: Switching tÿel: 6
INIT: Sending processes the TERM signaSending processes t                                     he KILL signal
Stopping portmap daemon: portmap.
Stopping OpenBSD Secure Shell server: sshd.
Stopping Servicetags listener: stlistener.
Saving the System Clock time to the Hardware Clock...
Hardware Clock updated to Tue Jul 26 00:09:05 GMT 2016.
Stopping periodic command scheduler: cron.
.
Sending all processes the TERM signal...done.
Sending all processes the KILL signal...done.
Unmounting remote and non-toplevel virtual filesystems...                                     done.
Deactivating swap...done.
Unmounting local filesystems...umount: /store: device is                                      busy
done.
Swapping BootFlash Hi/Low Regions

U-Boot 1.1.1
custom Sun Microsystems U-Boot 1.3 (Oct 12 2014 - 08:07:2                                     6) r93313
CPU:   MPC885ZPnn at 133 MHz: 8 kB I-Cache 8 kB D-Cache F                                     EC present
Board: SPARC885
       Watchdog enabled
I2C:   ready
DRAM:
trying 128 MBytes
(128 MB SDRAM) 128 MB
FLASH: 32 MB
In:    serial
Out:   serial
Err:   serial
Net:   FEC ETHERNET
POST i2c  c  d 18 20 23 2a 2d 2e 30 40 43 46 51 53 54 56                                      68 69 6a 6b 70 71 PASSED
POST cpu PASSED
POST ethernet PASSED
Booting linux in 5 seconds...
## Booting image at fe080000 ...
   Image Name:   Linux-2.4.22
   Image Type:   PowerPC Linux Kernel Image (gzip compres                                     sed)
   Data Size:    814555 Bytes = 795.5 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
do_bootm_linux():
  argv[0]=bootm
  argv[1]=0xfe080000
## Current stack ends at 0x07D38B60 => set upper limit to                                      0x00800000
No initrd
## cmdline at 0x007FFF00 ... 0x007FFF80
memstart    = 0x00000000
memsize     = 0x08000000
flashstart  = 0xFE000000
flashsize   = 0x02000000
flashoffset = 0x0004C000
sramstart   = 0x00000000
sramsize    = 0x00000000
EnvAddr     = 0x7C7F1B78
EnvSize     = 0x93830000
banksize    = 0x02000000
banks       = 0x00000001
bankwidth   = 0x00000001
sectorsize  = 0x00020000
sectorcount = 0x00000100
booted      = 0xFE080000
boottype    = 0x00000000
primary     = 0xFFFFFFFF
pritype     = 0x00000000
secondary   = 0xFFFFFFFF
sectype     = 0x00000000
image0      = 0xFE000000
image1      = 0xFF000000
maximage    = 0x01000000
immr_base   = 0xF0000000
bootflags   = 0x00000001
intfreq     =    133 MHz
busfreq     = 66.500 MHz
ethaddr     = 00:21:28:15:A9:E5
IP addr     = 0.0.0.0
baudrate    =   9600 bps
## Transferring control to Linux (at address 00000000) ..                                     .
## parameters(007ffe80,00000000,00000000,007fff00,007fff8                                     0)
Linux version 2.4.22 (cboland@sanpen-oel5-1) (gcc version                                      3.3.4) #2 Sun Oct 12 07:58:26
PDT 2014 r93505
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock4 rootfstype=squas                                     hfs ro mtdparts=phys:384K
(u1),128k(e1),1536K(k1),14M(r1),                                     384K(u2),128K(e2),1536K(k2),14M(r2)
Calibrating delay loop... 132.71 BogoMIPS
Memory: 127624k available (1412k kernel code, 416k data,                                      68k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072                                      bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 byt                                     es)
Mount cache hash table entries: 512 (order: 0, 4096 bytes                                     )
Buffer cache hash table entries: 8192 (order: 3, 32768 by                                     tes)
Page-cache hash table entries: 32768 (order: 5, 131072 by                                     tes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
squashfs: version 3.0 (2006/03/15) Phillip Lougher
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Ax                                     is Communications AB.
CPM UART driver version 0.03
ttyS00 at 0x0100 is apty: 256 Unix98 ptys configured
Generic RTC Driver v1.07
eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 6, addr 00                                     :21:28:15:a9:e5
RAMDISK driver initialized: 16 RAM disks of 18432K size 1                                     024 blocksize
eth0: Phy @ 0x0, type DM9161 (0x0181b881)
loop: loaded (max 8 devices)
physmap flash device: 2000000 at fe000000
 Amd/Fujitsu Extended Query Table v1.3 at 0x0040
number of CFI chips: 1
Using command line partition definition
Creating 8 MTD partitions on "Physically mapped flash":
mtdblock1: 0x00000000-0x00060000 : "u1"
mtdblock2: 0x00060000-0x00080000 : "e1"
mtdblock3: 0x00080000-0x00200000 : "k1"
mtdblock4: 0x00200000-0x01000000 : "r1"
mtdblock5: 0x01000000-0x01060000 : "u2"
mtdblock6: 0x01060000-0x01080000 : "e2"
mtdblock7: 0x01080000-0x01200000 : "k2"
mtdblock8: 0x01200000-0x02000000 : "r2"
i2c-core.o: i2c core module version 2.6.1 (20010830)
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (                                     20010830)
i2c-rpx.o: i2c MPC8xx module version 2.6.1 (20010830)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
ip_conntrack version 2.1 (1024 buckets, 8192 max) - 292 b                                     ytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  h                                    
ttp://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.                                     com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 68k init
modprobe: modprobe: Can't open dependencies file /lib/mod                                     ules/2.4.22/modules.dep (No
such file or directory)
Creating /var tmpfs
Creating directories in /var...done.
Creating /var/log tmpfs...done.
Activating swap.
Calculating module dependencies... done.
Loading modules...
    fpga
Warning: loading /lib/modules/2.4.22/misc/fpga/fpga.o wil                                     l taint the kernel: non-GPL
license - Proprietary
  See http://www.tux.org/lkml/#export-tainted for informa                                     tion about tainted modules
Platform ID      : 1
Minor revision   : 0
Major revision   : 5
FPGA power status : 80
  (SYS_POK_EN  !DC_POK  !POK_OIO  !POK_VMEMR  !POK_VMEML                                       !POK_VCORE  !POK_PSU1  !
POK_PSU0 )
BR2: 0xf2000000/0x1000000/0xf2000401/0xff0001fc
FPGA init OK: base f2000000, size 1000000 (major 120)
Module fpga loaded, with warnings
    fpga_flash
Warning: loading /lib/modules/2.4.22/misc/fpga_flash/fpga                                     _flash.o will taint the kernel:
no license
  See http://www.tux.org/lkml/#export-tainted for informa                                     tion about tainted modules
Module fpga_flash loaded, with warnings
    immap
Warning: loading /lib/modules/2.4.22/misc/immap/immap.o w                                     ill taint the kernel: no
license
  See http://www.tux.org/lkml/#export-tainted for informa                                     tion about tainted modules
Module immap loaded, with warnings
All modules loaded.
Checking all file systems...
fsck (busybox 1.9.0, 2014-10-12 08:08:35 PDT)
Setting kernel variables ...
kernel.core_pattern = /coredump/%h.%e.core
kernel.core_uses_pid = 1
net.ipv4.ip_local_port_range = 3100 7075
... done.
Mounting local filesystems...
Identifying DOC Device Type(G3/G4/H3) ...


Warning: /lib/modules/2.4.22/misc/tffs/tffs_h3.o symbol f                                     or parameter prio not found
Warning: loading /lib/modules/2.4.22/misc/tffs/tffs_h3.o                                      will taint the kernel: non-GPL
license - Proprietary
  See http://www.tux.org/lkml/#export-tainted for informa                                     tion about tainted modules
tffs: TrueFFS driver 7100.76
tffs: will not use IRQ
tffs: Looking for G4/P4 MDOC Devices while assuming IF_CF                                     G=16.
tffs: Looking for G4/P4 MDOC Devices while assuming IF_CF                                     G=8.
tffs: Flow: G4_docWindowBaseAddress Exit (NOT FOUND).
tffs: Looking for G3/P3 MDOC Devices while assuming IF_CF                                     G=16.
tffs: Looking for G3/P3 MDOC Devices while assuming IF_CF                                     G=8.
tffs: Looking for H1 DOC at address 0xcd14e000
tffs: DOCH found
tffs: Socket 0 in addr 0xf4000000
tffs: Device 0x0: size 0xed80000 HW sector 0x200 (recomme                                     nded 0x1000)
tffs: use major device number 100
Partition check:
 tffsa: tffsa1 tffsa2 tffsa3
tffs:     disk partition: dev_number=0x6401, 65534 sector                                     s, start_sector=1
tffs:     disk partition: dev_number=0x6402, 65536 sector                                     s, start_sector=65535
tffs:     disk partition: dev_number=0x6403, 112000 secto                                     rs, start_sector=131071
Module tffs_h3 loaded, with warnings
Loaded TFFS kernel module /lib/modules/2.4.22/misc/tffs/t                                     ffs_h3.o
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2f                                     sck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on tffs(100,1), intern                                     al journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2f                                     sck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,0), internal                                      journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2f                                     sck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,1), internal                                      journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2f                                     sck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,2), internal                                      journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2f                                     sck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,3), internal                                      journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2f                                     sck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on loop(7,4), internal                                      journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2f                                     sck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on tffs(100,3), intern                                     al journal
EXT3-fs: mounted filesystem with ordered data mode.
Mounted all disk partitions.
Checking configuration files state ...
Image date:  Sun Oct 12 09:28:13 PDT 2014       Image rev                                     ision: 93313
Conf date:  unknown     Conf revision:  0
upgrading configuration data
Running: program to save /conf on upgrade: saveConfOnUpgr                                     ade.
Copying new /conf files
Configuration files state good after upgrade.
Loaded IFC configuration file.
Created links for vbsc
Running ldconfig...done
Setting the System Clock using the Hardware Clock as refe                                     rence...
System Clock set. Local time: Tue Jul 26 00:10:11 GMT 201                                     6
Setting up networking...done.
Hostname: SUNSP00212815A9E5.
Setting up IP spoofing protection: rp_filter.
Creating default IPv6 configuration...cat: can't open '/p                                    
roc/sys/net/ipv6/conf/default/disable_ipv6': No such file                                      or directory
cat: can't open '/proc/sys/net/ipv6/conf/default/autoconf                                     ': No such file or directory
done
Configuring network interfaces...Internet Systems Consort                                     ium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX,                                      10HDX.
Listening on LPF/eth0/00:21:28:15:a9:e5
Sending on   LPF/eth0/00:21:28:15:a9:e5
Sending on   Socket/fallback
eth0: status: link up.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval                                      5
eth0: status: link up, 100 Mbps Full Duplex, auto-negotia                                     tion complete.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval                                      6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
Starting portmap daemon: portmap.
Initializing random number generator...done.
Incrementing bootcount ... done (1)
populating memstore vars from disk
INIT: Entering runlevel: 3
Preparsing sensor.xml...
Starting system log daemon: syslogd and klogd.
Starting capidirect daemon:   Done
Starting Boot Timer.
Starting user mgmt upgrade program: usrmgt_upgrade.
Starting the Health Monitor Daemon...
Starting portmap daemon: portmap.
Starting capidirectd: Done.
Starting Network Interface Plugging Daemon: eth0.
Starting IPMI Stack...... Done.
SSH RSA Host Key Files already exist. Skipping key creati
SSH DSA Host Key Files already exist. Skipping key creati
Starting sshd.
Starting BBR daemon...
bbrd started after 1 seconds.
Starting periodic command scheduler: cron.
Starting Serial Server :seriald .
Starting Servicetags discoverer: stdiscoverer.
Starting Servicetags listener: stlistener.
SUNSP00212815A9E5 login: root
Password:
Waiting for daemons to initialize...
...
Daemons ready
Oracle(R) Integrated Lights Out Manager
Version 3.0.12.4.zd r93313
Copyright (c) 2014, Oracle and/or its affiliates. All rig                                     hts reserved.
Warning: password is set to factory default.
-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS
-> pwd
Current default target: /
-> start /S/console
start: Invalid target /S/console
-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y
Serial console started.  To stop, type #.
myt5120 console login: root
Jul 26 12:01:37 myt5120 login: ROOT LOGIN /dev/console
Last login: Tue Jul 26 10:28:07 on console
Oracle Corporation      SunOS 5.10      Generic Patch   J                                     anuary 2005
You have new mail.
#
# bash
bash-3.2# ifconfig
usage: ifconfig <interface> | -a[ 4 | 6 | D ][ u | d ][ Z                                      ]
        [ <addr_family> ]
        [ <address>[/<prefix_length>] [ <dest_address> ]                                      ]
        [ set [ <address>][/<prefix_length>] ] [ <address                                     >/<prefix_length>] ]
        [ destination <dest_address> ]
        [ addif <address>[/<prefix_length>]  [ <dest_addr                                     ess> ] ]
        [ removeif <address>[/<prefix_length>] ]
        [ arp | -arp ]
        [ auto-revarp ]
        [ broadcast <broad_addr> ]
        [ index <if_index> ]
        [ metric <n> ] [ mtu <n> ]
        [ netmask <mask> ]
        [ plumb ] [ unplumb ]
        [ preferred | -preferred ]
        [ private | -private ]
        [ local | -local ]
        [ router | -router ]
        [ subnet <subnet_address>]
        [ trailers | -trailers ]
        [ token <address>/<prefix_length> ]
        [ tsrc <tunnel_src_address> ]
        [ tdst <tunnel_dest_address> ]
        [ auth_algs <tunnel_AH_authentication_algorithm>                                      ]
        [ encr_algs <tunnel_ESP_encryption_algorithm> ]
        [ encr_auth_algs <tunnel_ESP_authentication_algor                                     ithm> ]
        [ up ] [ down ]
        [ xmit | -xmit ]
        [ modlist ]
        [ modinsert <module_name@position> ]
        [ modremove <module_name@position> ]
        [ group <groupname>] | [ group ""]
        [ deprecated | -deprecated ]
        [ standby | -standby ]
        [ failover | -failover ]
        [ zone <zonename> | -zone ]
        [ usesrc <interface> ]
        [ all-zones ]
or
        ifconfig <interface> |  -a[ 4 | 6 | D ] [ u | d ]
        auto-dhcp | dhcp
        [ wait <time> | forever ]
        [ primary ]
        start | drop | ping | release | status | inform
bash-3.2# ifconfig  a
ifconfig: status: SIOCGLIFFLAGS: a: no such interface
bash-3.2# ifconfig  -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,                                     VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
vsw0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>                                      mtu 1500 index 2
        inet 192.168.10.150 netmask ffffff00 broadcast 19                                     2.168.10.255
        ether 0:14:4f:f8:5:83
bash-3.2# ifconfig vsw0 u
ifconfig: u: bad address
bash-3.2# ifconfig vsw0 up
bash-3.2# Jul 26 12:02:55 myt5120 sshd[866]: Failed keyboard-int                              eractive for kamal from
192.168.10.21 port 51273 ssh2
bash-3.2#
bash-3.2#
bash-3.2# pwd
/
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL                                UPTIME
primary          active     -n-cv-  SP      4     2G       0.2%                                29m
abc              inactive   ------          2     2G                                         
devchuli         inactive   ------          2     1G                                         
devi             inactive   ------          2     4G                                         
fairfax          inactive   ------          2     2G                                         
bash-3.2# echo | format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c1t1d0 <SEAGATE-ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
       2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@2,0
       3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@3,0
       4. c1t4d0 <HITACHI-H103014SCSUN146G-A2A8-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@4,0
       5. c1t5d0 <SEAGATE-ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@5,0
       6. c1t6d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@6,0
       7. c1t7d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@7,0
Specify disk (enter its number): Specify disk (enter its number):
bash-3.2# format c1t7d0
selecting c1t7d0
[disk formatted]

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p

PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    12      129.19MB    (13/0/0)       264576
  1       swap    wu      13 -    25      129.19MB    (13/0/0)       264576
  2     backup    wu       0 - 14086      136.71GB    (14087/0/0) 286698624
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm      26 - 14086      136.46GB    (14061/0/0) 286169472
  7 unassigned    wm       0                0         (0/0/0)             0
partition> q

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> q
bash-3.2# format c1t7d0
bash-3.2# mount /dev/dsk/c1t7d0s6 /mnt
Jul 26 12:04:49 myt5120 ufs: NOTICE: mount: not a UFS magic number (0x0)
mount: /dev/dsk/c1t7d0s6 is not this fstype
bash-3.2# zpool import
  pool: rpool
    id: 8540057980845175959
 state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
        the '-f' flag.
   see: http://www.sun.com/msg/ZFS-8000-EY
config:
        rpool       ONLINE
          c1t3d0s0  ONLINE
bash-3.2# pwd
/
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G       0.4%  34m
abc              inactive   ------          2     2G
devchuli         inactive   ------          2     1G
devi             inactive   ------          2     4G
fairfax          inactive   ------          2     2G
bash-3.2# ldm list-bindings fairfax | grep -i disk
DISK
    vdisk10          FORFAIRFAXLDOM@primary-vds0      0                                      
bash-3.2# ldm list-bindings fairfax | grep -i disk >/var/tmp/fairfax-LDOM-Boot_
Disk.txt
bash-3.2# pwd
/
bash-3.2# cd /opt/OS_Image/
bash-3.2# ls
sol-10-u11-ga-sparc-dvd.iso  sol-11_3-text-sparc.iso
bash-3.2# ls -lh
total 6218944
-rw-r--r--   1 kamal    other       2.2G Jul 25 13:17 sol-10-u11-ga-sparc-dvd.iso
-rw-r--r--   1 kamal    other       827M Jul 25 13:44 sol-11_3-text-sparc.iso
bash-3.2# ldm remove-vdisk vdisk10 fairfax
bash-3.2# ldm add-vdsdev /dev/dsk/c1t7d0s2 OS11_Disk@primary-vds0
bash-3.2# ldm add-vdisk S11Jul 26 12:11:05 myt5120 sshd[854]: fatal: Timeout before authentication for 192.168.10.21
_OS_disk OS11_Disk@primary-vds0
Usage:
        ldm add-vdisk [timeout=<seconds>] [id=<diskid>]
                <disk_name> <volume_name>@<service_name> <ldom>
bash-3.2# ldm add-vdisk S11_OS_disk OS11_Disk@primary-vds0 fairfax
bash-3.2# ldm list-bindings fairfax | grep -i Jul 26 12:12:15 myt5120 sshd[865]: monitor fatal: Timeout before authentication
for 192.168.10.21
disk
DISK
    S11_OS_disk      OS11_Disk@primary-vds0           0                                      
bash-3.2# ldm list-bindings fairfax | grep -i disk
bash-3.2#
bash-3.2# pwd
/opt/OS_Image
bash-3.2# ls
sol-10-u11-ga-sparc-dvd.iso  sol-11_3-text-sparc.iso
bash-3.2# ldm add-vdsdev /opt/OS_Image/sol-11_3-text-sparc.iso s11_DVD@primary-
vds0
bash-3.2#
bash-3.2# ldm add-vdisk s11_DVD s11_DVD@primary-vds0 fairfax
bash-3.2#
bash-3.2# history >/var/tmp/history.root
bash-3.2# pwd
/opt/OS_Image
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G       0.3%  41m
abc              inactive   ------          2     2G
devchuli         inactive   ------          2     1G
devi             inactive   ------          2     4G
fairfax          inactive   ------          2     2G
bash-3.2# ldm bind fairfax
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G       0.3%  41m
fairfax          bound      ------  5000    2     2G
abc              inactive   ------          2     2G
devchuli         inactive   ------          2     1G
devi             inactive   ------          2     4G
bash-3.2# ldm start fairfax
LDom fairfax started
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G        27%  42m
fairfax          active     -t----  5000    2     2G        50%  3s
abc              inactive   ------          2     2G
devchuli         inactive   ------          2     1G
devi             inactive   ------          2     4G
bash-3.2# telnet 0 5000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connecting to console "fairfax" in group "fairfax" ....
Press ~? for control options ..
SunOS Release 5.10 Version Generic_147147-26 64-bit
Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface vnet0...
/
telnet> break
?Invalid command
telnet> send break
\
telnet> q
Connection to 0 closed.
bash-3.2# ldm stop fairfax
LDom fairfax stopped
bash-3.2# ldm list-bindings | grep -i disk
    boot-device=/pci@0/pci@0/pci@2/scsi@0/disk@0,0:a disk net
                     OS11_Disk                                      /dev/dsk/c1t7d0s2
        S11_OS_disk@fairfax         OS11_Disk
DISK
    os10-image       os10-image@primary-vds0          1    disk@1  primary                   
    S11_OS_disk      OS11_Disk@primary-vds0           0    disk@0  primary                   
    s11_DVD          s11_DVD@primary-vds0             2    disk@2  primary                   
    boot-device=disk0
DISK
    disk0            abc_disk0@primary-vds0           0                                      
    boot-device=disk0
DISK
    disk0            devchuli_dsk0@primary-vds0       1                                      
bash-3.2# ldm list-bindings fairfax | grep -i disk
DISK
    os10-image       os10-image@primary-vds0          1    disk@1  primary                   
    S11_OS_disk      OS11_Disk@primary-vds0           0    disk@0  primary                   
    s11_DVD          s11_DVD@primary-vds0             2    disk@2  primary                   
bash-3.2# ldm list-bindings fairfax | grep -i disk >/var/tmp/fairfax-ldom-disks
.xt1
bash-3.2# ldm rm-vdisk os10-image fairfax
bash-3.2# ldm list-bindings fairfax | grep -i disk
DISK
    S11_OS_disk      OS11_Disk@primary-vds0           0    disk@0  primary                   
    s11_DVD          s11_DVD@primary-vds0             2    disk@2  primary                   
bash-3.2# ldm list-services | grep -w S11_OS_disk
bash-3.2# ldm list-services | grep -w OS11_Disk
                                      OS11_Disk                                      /dev/dsk/c1t7d0s2
bash-3.2# echo | format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c1t1d0 <SEAGATE-ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
       2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@2,0
       3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@3,0
       4. c1t4d0 <HITACHI-H103014SCSUN146G-A2A8-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@4,0
       5. c1t5d0 <SEAGATE-ST914602SSUN146G-0603-136.73GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@5,0
       6. c1t6d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@6,0
       7. c1t7d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@0/pci@0/pci@2/scsi@0/sd@7,0
Specify disk (enter its number): Specify disk (enter its number):
bash-3.2# ldm list-services | grep -i fairfax
    primary-vds0     primary          FORFAIRFAXLDOM                                 /dev/rdsk/c1t3d0s2
bash-3.2# ldm list-bindings fairfax | grep disk
    S11_OS_disk      OS11_Disk@primary-vds0           0    disk@0  primary                   
    s11_DVD          s11_DVD@primary-vds0             2    disk@2  primary                   
bash-3.2# ldm remove-vdisk S11_OS_disk fairfax
bash-3.2# ldm add-vdsdev /dev/dsk/c1t6d0s2 DISK6@primary-vds0
bash-3.2# ldm add-vdisk OS11-disk DISK6@primary-vds0 fairfax
bash-3.2# ldm list-bindings fairfax | grep -i disk
DISK
    s11_DVD          s11_DVD@primary-vds0             2    disk@2  primary                   
    OS11-disk        DISK6@primary-vds0               0    disk@0  primary                   
bash-3.2# ldm add-spconfig cfg07252016
bash-3.2# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      4     2G       0.3%  50m
fairfax          bound      ------  5000    2     2G
abc              inactive   ------          2     2G
devchuli         inactive   ------          2     1G
devi             inactive   ------          2     4G
bash-3.2# ldm start fairfax
LDom fairfax started
bash-3.2# telnet 0 5000
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Connecting to console "fairfax" in group "fairfax" ....
Press ~? for control options ..
SunOS Release 5.11 Version 11.3 64-bit
Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved.
Remounting root read/write
Probing for device nodes ...
Preparing image for use
Done mounting image
USB keyboard
 1. Arabic                        15. Korean
 2. Belgian                       16. Latin-American
 3. Brazilian                     17. Norwegian
 4. Canadian-Bilingual            18. Portuguese
 5. Canadian-French               19. Russian
 6. Danish                        20. Spanish
 7. Dutch                         21. Swedish
 8. Dvorak                        22. Swiss-French
 9. Finnish                       23. Swiss-German
10. French                        24. Traditional-Chinese
11. German                        25. TurkishQ
12. Italian                       26. UK-English
13. Japanese-type6                27. US-English
14. Japanese
To select the keyboard layout, enter a number [default 27]:
 1. Chinese - Simplified
 2. Chinese - Traditional
 3. English
 4. French
 5. German
 6. Italian
 7. Japanese
 8. Korean
 9. Portuguese - Brazil
10. Spanish
To select the language you wish to use, enter a number [default is 3]:
User selected: English
Configuring devices.
Hostname: solaris
Welcome to the Oracle Solaris installation menu
        1  Install Oracle Solaris
        2  Install Additional Drivers
        3  Shell
        4  Terminal type (currently xterm)
        5  Reboot
Please enter a number [1]:


               Preparing for Installation
              [                       (29%)                       ]













  F9_Quit






               generate-sc-profile completed.
              [                      (99%)                       ]


 apply-sysconfig completed.
              [                      (100%)                      ]



  The installation of Oracle Solaris has completed successfully.
   Reboot to start the newly installed software or Quit if you wish
to
   perform additional tasks before rebooting.
   The installation log is available at
/system/volatile/install_log. After
   reboot it can be found at /var/log/install/install_log.











  F4_View Log  F7_Halt  F8_Reboot  F9_Quit



Jul 26 01:50:56 solaris reboot: initiated by root





 syncing file systems... done
rebooting...
Resetting...

SPARC Enterprise T5120, No Keyboard
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights
reserved.
OpenBoot 4.33.6.f, 2048 MB memory available, Serial #83535456.
Ethernet address 0:14:4f:fa:a6:60, Host ID: 84faa660.


Boot device: /virtual-devices@100/channel-devices@200/disk@0:a 
File and args:
SunOS Release 5.11 Version 11.3 64-bit
Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights
reserved.
Loading smf(5) service descriptions: 60/225


Loading smf(5) service descriptions: 216/225


Loading smf(5) service descriptions: 225/225
Loading smf(5) service descriptions: 225/225
Configuring devices.
Loading smf(5) service descriptions: 2/2
Hostname: s11serv.expanor.local
s11serv.expanor.local console login:

s11serv.expanor.local console login: sam
Password:
Oracle Corporation      SunOS 5.11      11.3    September 2015
sam@s11serv:~$
sam@s11serv:~$
sam@s11serv:~$ su
Password:
Jul 25 22:00:52 s11serv.expanor.local su: 'su root' succeeded for
sam on /dev/console
root@s11serv:~# pwd

root@s11serv:~# ping 192.168.10.1
192.168.10.1 is alive
root@s11serv:~# ping 192.168.10.110
192.168.10.110 is alive
root@s11serv:~# ssh -q 192.168.10.160
The authenticity of host '192.168.10.160 (192.168.10.160)' can't be
established.
RSA key fingerprint is
cd:29:33:85:ce:19:50:92:46:86:80:d3:78:b3:30:05.
Are you sure you want to continue connecting (yes/no)? yes
Password: