#creating a loopback device using iso image
root@cat # lofiadm -a /admin/unix/jump/ISO/sol-10-u5-ga-sparc-dvd.iso /dev/lofi/1
#mouting lofidevice to /mnt
root@cat # mount -F hsfs /dev/lofi/1 /mnt
#command for copying DVD content inclulding boot block to the machine (normal jumpstart command)
root@cat # /mnt/Solaris_10/Tools/setup_install_server /admin/unix/jump/10u5/
root@cat # cat sysidcfg
system_locale=en_US
timezone=Asia/Riyadh
network_interface=primary {protocol_ipv6=no netmask=255.255.254.0 default_route=none}
terminal=vt100
security_policy=NONE
name_service=NONE
timeserver=localhost
root_password=e1VrOBR04fXBY
nfs4_domain=dynamic
keyboard=US-English
root@cat # cat rules
#This is the role set for each machine. Eg is given in first second line
hostname cat - solaris10.flar -
hostname gorilla-mgt - gorilla.os gorilla.finish
hostname bear-mgt - v245.flar bear.finish
hostname tiger-mgt - v245.flar tiger.finish
root@cat # cat gorilla.os
install_type initial_install
system_type standalone
partitioning explicit
filesys rootdisk.s0 40460 /
filesys rootdisk.s1 16384 swap
filesys rootdisk.s3 76001 /var
filesys rootdisk.s4 2007 /opt/patrol
filesys rootdisk.s5 2007 /opt/tivoli
filesys rootdisk.s7 100 unnamed
cluster SUNWCprog
package SUNWman delete
cluster SUNWCacc
root@cat # cat v245.flar
install_type flash_install
archive_location nfs 10.14.48.26:/admin/unix/jump/flars/V245.flar
partitioning explicit
filesys rootdisk.s0 40460 /
filesys rootdisk.s1 16384 swap
filesys rootdisk.s3 76001 /var
filesys rootdisk.s4 2007 /opt/patrol
filesys rootdisk.s5 2007 /opt/tivoli
filesys rootdisk.s7 100 unnamed
root@cat # cat gorilla.finish
echo "Starign post scripts"
echo "10.14.11.172 gorilla-bge1 gorilla-bge1.prod.mobily.lan">>/a/etc/hosts
echo "10.14.11.173 gorilla-nxge0 gorilla-nxge0.prod.mobily.lan">>/a/etc/hosts
echo "10.14.11.174 gorilla gorilla.prod.mobily.lan">>/a/etc/hosts
#Lines for adding ipmp configuration automatically
echo "gorilla-bge1 deprecated -failover netmask + broadcast + group development up" > /a/etc/hostname.bge1
echo "addif gorilla netmask + broadcast + up" >> /a/etc/hostname.bge1
echo "gorilla-nxge0 deprecated -failover netmask + broadcast + group development up">/a/etc/hostname.nxge0
echo "10.14.11.0 255.255.255.0" >>/a/etc/netmasks
echo "10.14.11.1" >/a/etc/defaultrouter
rm -r /a/.ssh
mkdir /a/.ssh
echo "ssh-dss AAAAB3NzaC1kc3MAAACBAOGV11ge/Qa+z+4Ydvd/s+6aGdweqEqTrvWgPtW0Axl3RrJ2LZmt8toWDumEVfxKnX4yb7YIvSR/cFrKAmE1UI6PN2dmVdybIDOmC+dfDQ4UmdlDMueNdkTY06NTRPrMELFAiKwNNRspW4q7DT43yreCWx/8zYSuOqr+OxET2wChAAAAFQDM5Bm9IpVI/QBZTMvKlBxeoBjk6QAAAIEAggMnQeJylappw8II3WB+LFWvlyUTnNMNIuzrGyrMxXsb8CZ8fZKXpK+h+WKWXyiqqnJ2svqtUgXbKlOrmCVoSDqU15xOv32emDk6BPiwBLcedoOJ3TRLnZu/Ogafy8pltrfJKi9Ffjblfdi1muDjmcw5JU9CPh1Zh08G5uogpX4AAACAFOBYOQn6UYMrZY/KYw3f4hFk6/qdGEu7YQNhMZvSft0/L5bVV/QlWF7DLzwiGnooUmTAXav9G2V5tqVctoHKejyoMQeAXzgZGMAmmiDhcGG6Cl813SOjZwfKZCVYve/yelr9IY2UVi/psQr6gzWdcRB69LHvZRpYfKO6H9z6+3s= root@cat">/a/.ssh/authorized_keys
#command for adding one clinent
../10u5/Solaris_10/Tools/add_install_client -e 0:14:4f:d2:e8:d0 -s 10.14.48.26:/admin/unix/jump/10u5/ -c 10.14.48.26:/admin/unix/jump/config -p 10.14.48.26:/admin/unix/jump/config gorilla sun4u
root@cat # cat /etc/ethers |grep gorilla
0:14:4f:d2:e8:d0 gorilla-mgt
root@cat # cat /etc/hosts|grep gorilla
10.14.48.27 gorilla-sc
10.14.48.28 gorilla-mgt
No comments:
Post a Comment