Search This Blog

Showing posts with label jumpstart server. Show all posts
Showing posts with label jumpstart server. Show all posts

Tuesday, 21 December 2010

Network troubleshooting from OBP (OK prompt)

For listing all the available network interfaces on the system, use below command from ok prompt.
{0} ok watch-net
Timed out waiting for Autonegotiation to complete
Check cable and try again
Link Down
{0} ok watch-net-all
/pci@3,700000/network@0,1 ----------------------> path to interface
Timed out waiting for Autonegotation to complete
Check cable and try again
----------------------> No cable is connected/active
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down

/pci@3,700000/network@0   -------------------> path to interface

1000 Mbps full duplex  Link up
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is a Bad Packet.
Type any key to stop.
40 42 42 40 42 42 40 40 42 42 40 1ed 42 42 40 42 40 42 40 42 42 40 42 40 42 40 42 42 40 42 40 42 40 42 42 40 40 42 42 40 40 42 42 40 42 42 40 40 42 42 40 42 42 40 42 40 42 40 42 42 40 42 40 42 40 42 42 40
/pci@2,600000/network@0,1
1000 Mbps full duplex  Link up
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is a Bad Packet.
Type any key to stop.
40 44 44 44 40 7a 40 f7 40 40 40 1ed 40 40
/pci@2,600000/network@0
1000 Mbps full duplex  Link up
Looking for Ethernet Packets.
'.' is a Good Packet.  'X' is a Bad Packet.
Type any key to stop.
42 40 42 42 40 42 40 42
/pci@0,600000/pci@0/pci@8/pci@0/network@2,1
Timed out waiting for Autonegotiation to complete
Check cable and try again
Link Down

/pci@0,600000/pci@0/pci@8/pci@0/network@2
Timed out waiting for Autonegotiation to complete
Check cable and try again
Link Down

For getting the details about each interfaces, go to the corresponding path using cd comammnd, and run the properties as below
{0} ok cd /pci@3,700000/network@0
{0} ok .properties
mac-address              00 15 17 3b xx xx
link-clock               auto
duplex                   auto
speed                    auto
status                   okay
assigned-addresses       82020010 00000000 00100000 00000000 00020000
                         82020014 00000000 00120000 00000000 00020000
                         81020018 00000000 00000300 00000000 00000020
                         82020030 00000000 00140000 00000000 00020000
phy-type                 mif
board-model              501-7289
version                  Sun PCI-E 1G Ethernet UTP Adapter FCode 1.10 06/11/02
model                    SUNW,pcie-northstar
d-fru-len                00000800
d-fru-off                00006800
d-fru-dev                eeprom
s-fru-len                00000800
s-fru-off                00006000
s-fru-dev                eeprom
compatible               pciex8086,105e.108e.125e.6
                         pciex8086,105e.108e.125e
                         pciex108e,125e
                         pciex8086,105e.6
                         pciex8086,105e
                         pciexclass,020000
                         pciexclass,0200
reg                      00020000 00000000 00000000 00000000 00000000
                         02020010 00000000 00000000 00000000 00020000
                         02020030 00000000 00000000 00000000 00020000
max-frame-size           00010000
address-bits             00000030
device_type              network
name                     network
local-mac-address        00 15 17 3b xx xx
--> MAC Address for /pci@3,700000/network@0
fcode-rom-offset         0000e000
interrupts               00000001
cache-line-size          00000010
class-code               00020000
subsystem-id             0000125e
subsystem-vendor-id      0000108e
revision-id              00000006
device-id                0000105e
vendor-id                00008086
{0} ok cd /pci@2,600000/network@0,1
{0} ok .properties
status                   okay
assigned-addresses       82020110 00000000 00160000 00000000 00020000
                         82020114 00000000 00180000 00000000 00020000
                         81020118 00000000 00000320 00000000 00000020
                         82020130 00000000 001a0000 00000000 00020000
phy-type                 mif
board-model              501-7289
version                  Sun PCI-E 1G Ethernet UTP Adapter FCode 1.10 06/11/02
model                    SUNW,pcie-northstar
d-fru-len                00000800
d-fru-off                00006800
d-fru-dev                eeprom
s-fru-len                00000800
s-fru-off                00006000
s-fru-dev                eeprom
compatible               pciex8086,105e.108e.125e.6
                         pciex8086,105e.108e.125e
                         pciex108e,125e
                         pciex8086,105e.6
                         pciex8086,105e
                         pciexclass,020000
                         pciexclass,0200
reg                      00020100 00000000 00000000 00000000 00000000
                         02020110 00000000 00000000 00000000 00020000
                         02020130 00000000 00000000 00000000 00020000
max-frame-size           00010000
address-bits             00000030
device_type              network
name                     network
local-mac-address        00 15 17 3d xx xx
--> MAC Address for /pci@2,600000/network@0,1
fcode-rom-offset         0000e000
interrupts               00000002
cache-line-size          00000010
class-code               00020000
subsystem-id             0000125e
subsystem-vendor-id      0000108e
revision-id              00000006
device-id                0000105e
vendor-id                00008086
{0} ok cd /pci@2,600000/network@0
{0} ok .properties
status                   okay
assigned-addresses       82020010 00000000 00100000 00000000 00020000
                         82020014 00000000 00120000 00000000 00020000
                         81020018 00000000 00000300 00000000 00000020
                         82020030 00000000 00140000 00000000 00020000
phy-type                 mif
board-model              501-7289
version                  Sun PCI-E 1G Ethernet UTP Adapter FCode 1.10 06/11/02
model                    SUNW,pcie-northstar
d-fru-len                00000800
d-fru-off                00006800
d-fru-dev                eeprom
s-fru-len                00000800
s-fru-off                00006000
s-fru-dev                eeprom
compatible               pciex8086,105e.108e.125e.6
                         pciex8086,105e.108e.125e
                         pciex108e,125e
                         pciex8086,105e.6
                         pciex8086,105e
                         pciexclass,020000
                         pciexclass,0200
reg                      00020000 00000000 00000000 00000000 00000000
                         02020010 00000000 00000000 00000000 00020000
                         02020030 00000000 00000000 00000000 00020000
max-frame-size           00010000
address-bits             00000030
device_type              network
name                     network
local-mac-address        00 15 17 3d xx xx
--> MAC Address for  /pci@2,600000/network@0
fcode-rom-offset         0000e000
interrupts               00000001
cache-line-size          00000010
class-code               00020000
subsystem-id             0000125e
subsystem-vendor-id      0000108e
revision-id              00000006
device-id                0000105e
vendor-id                0000808

Sunday, 22 November 2009

My non interactive jumpstart server sample configuration-using iso image

#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