SunServer

From Lolly's Wiki
Revision as of 15:21, 25 November 2021 by Lollypop (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")
Jump to navigationJump to search

Kategorie:Hardware

X86 Systeme

ILOM

Reset SP from OS

<syntaxhighlight lang=bash>

  1. ipmitool -I bmc bmc reset cold

Sent cold reset command to MC </source>


Access ILOM from OS

<syntaxhighlight lang=bash>

  1. ipmitool sunoem cli

Connected. Use ^D to exit. -> </source> or <syntaxhighlight lang=bash>

  1. ipmitool -I bmc sunoem cli

Connected. Use ^D to exit. -> </source>

Set SP IP address from OS via ipmitool

  • Set:

<syntaxhighlight lang=bash>

  1. ipmitool lan set 1 ipaddr 172.30.42.149

Setting LAN IP Address to 172.30.42.149

  1. ipmitool lan set 1 netmask 255.255.255.0

Setting LAN Subnet Mask to 255.255.255.0

  1. ipmitool lan set 1 defgw ipaddr 172.30.42.1

Setting LAN Default Gateway IP to 172.30.42.1 </source>

  • Check:

<syntaxhighlight lang=bash>

  1. ipmitool lan print

Set in Progress  : Commit Write Auth Type Support  : NONE MD2 MD5 PASSWORD Auth Type Enable  : Callback : MD2 MD5 PASSWORD

                       : User     : MD2 MD5 PASSWORD 
                       : Operator : MD2 MD5 PASSWORD 
                       : Admin    : MD2 MD5 PASSWORD 
                       : OEM      : 

IP Address Source  : Static Address IP Address  : 172.30.42.149 Subnet Mask  : 255.255.255.0 MAC Address  : 00:1c:24:f0:70:b0 SNMP Community String  : public IP Header  : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10 Default Gateway IP  : 172.30.42.1 Default Gateway MAC  : ff:ff:ff:ff:ff:ff Backup Gateway IP  : 255.255.255.255 Backup Gateway MAC  : ff:ff:ff:ff:ff:ff Cipher Suite Priv Max  : aaaaaaaaaaaaaaa

                       :     X=Cipher Suite Unused
                       :     c=CALLBACK
                       :     u=USER
                       :     o=OPERATOR
                       :     a=ADMIN
                       :     O=OEM

</source>

Restore lost Serial/Product Information

<syntaxhighlight lang=bash> $ ssh root@x4100-sp -> show /SYS/MB

/SYS/MB

...

   Properties:

type = Motherboard chassis_name = SUN FIRE X4100 chassis_part_number = 541-0250-04 chassis_serial_number = 0000000-0000000000 chassis_manufacturer = SUN MICROSYSTEMS product_name = SUN FIRE X4100 product_part_number = 602-0000-00 product_serial_number = 0000000000 product_version = (none) product_manufacturer = SUN MICROSYSTEMS fru_name = ASSY,MOTHERBOARD,A64 fru_manufacturer = SUN MICROSYSTEMS fru_part_number = 501-7644-01 fru_serial_number = 1762TH1-0627002296 ... -> exit

$ ssh sunservice@x4100-sp Password: <the root password> [(flash)root@X4100-SP:~]# servicetool --board_replaced=mainboard --fru_product_serial_number --fru_chassis_serial_number --fru_product_part_number <Fill out the answers> </source>

SPARC Systeme

T4-1

Get disk slot

get_disk_slot.sh: <syntaxhighlight lang=bash>

  1. !/bin/bash

/usr/sbin/prtconf -v | nawk -v disk="$1" ' function get_value() {

 getline line;
 split(line,values,"=");
 return values[2];

} /inquiry-serial-no/ {

 inquiry_serial_no=get_value();

} /inquiry-product-id/ {

 inquiry_product_id=get_value();

} /inquiry-vendor-id/ {

 inquiry_vendor_id=get_value();

} /obp-path/ {

 obp_path=get_value();

} /phy-num/ {

 phy_num[obp_path]=get_value();

} $0 ~ "/dev/rdsk/"disk"$" {

 split(obp_path,path_parts,"/");
 if(path_parts[3]=="pci@1"){
   controller[obp_path]=0;
 }
 if(path_parts[3]=="pci@2"){
   controller[obp_path]=1;
 }
 printf "%s\n\t%s\n\t%s\n\t%s\n\tcontroller %d, PhyNum %d => Slot %d\n",$1,inquiry_vendor_id,inquiry_serial_no,obp_path,controller[obp_path],phy_num[obp_path],4*controller[obp_path]+phy_num[obp_path]

}' </source>

Example: <syntaxhighlight lang=bash>

  1. ./get_disk_slot.sh c0t5000C500230D43A3d0

dev_link=/dev/rdsk/c0t5000C500230D43A3d0

       'SEAGATE'
       '00101371ZVHM        3SE1ZVHM'
       '/pci@400/pci@2/pci@0/pci@4/scsi@0/disk@w5000c500230d43a1,0'
       controller 1, PhyNum 2 => Slot 6

</source>

XSCF

Set XSCF IP address from OS via ssh through dscp

  • Show:

<syntaxhighlight lang=bash>

  1. /usr/platform/`uname -i`/sbin/prtdscp

Domain Address: 192.168.224.2 SP Address: 192.168.224.1

  1. ssh eis-installer@192.168.224.1

XSCF> shownetwork -a xscf#0-lan#0

         Link encap:Ethernet  HWaddr 00:0B:5D:E3:D8:C4  
         inet addr:172.42.0.120  Bcast:172.42.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:885919090 errors:0 dropped:0 overruns:0 frame:0
         TX packets:7150700 errors:1 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:1987024183 (1.8 GiB)  TX bytes:492148426 (469.3 MiB)
         Base address:0xe000 

xscf#0-lan#1

         Link encap:Ethernet  HWaddr 00:0B:5D:E3:D8:C5  
         BROADCAST MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
         Base address:0xc000 

XSCF> showroute -a Destination Gateway Netmask Flags Interface 172.42.0.0 * 255.255.0.0 U xscf#0-lan#0 default 172.42.0.1 0.0.0.0 UG xscf#0-lan#0 </source>

  • Delete default gateway:

<syntaxhighlight lang=bash> XSCF> setroute -c del -n 0.0.0.0 -m 0.0.0.0 -g 172.42.0.1 xscf#0-lan#0 </source>

  • Set:

<syntaxhighlight lang=bash> XSCF> setnetwork xscf#0-lan#0 172.32.40.52 -m 255.255.255.0 XSCF> setroute -c add -n 0.0.0.0 -m 0.0.0.0 -g 172.32.40.1 xscf#0-lan#0 XSCF> applynetwork The following network settings will be applied:

 xscf#0 hostname  :hfgsun07-xsfc
 DNS domain name  :intern.hfg-inkasso.de
 nameserver       :172.41.0.2
 interface        :xscf#0-lan#0
 status           :up
 IP address       :172.32.40.52
 netmask          :255.255.255.0
 route            :-n 172.32.40.1 -m 255.255.255.255 
 route            :-n 0.0.0.0 -m 0.0.0.0 -g 172.32.40.1 
 interface        :xscf#0-lan#1
 status           :down
 IP address       :
 netmask          :
 route            :

Continue? [y|n] :y Please reset the XSCF by rebootxscf to apply the network settings. Please confirm that the settings have been applied by executing showhostname, shownetwork, showroute and shownameserver after rebooting the XSCF. XSCF> rebootxscf The XSCF will be reset. Continue? [y|n] :y </source>

Enable sending of break signal

Example on a M10 (Partition 0)... break_signal=off means turn supression of break signals off ;-) : <syntaxhighlight lang=bash> XSCF> showpparmode -p 0 Host-ID :90071f40 Diagnostic Level :max Message Level :max Alive Check :on Watchdog Reaction :reset Break Signal :on Autoboot(Guest Domain) :on Elastic Mode :off IOreconfigure :false CPU Mode :auto PPAR DR(Current) :off PPAR DR(Next) :off

XSCF> setpparmode -p 0 -m break_signal=off Diagnostic Level :max -> - Message Level :max -> - Alive Check :on -> - Watchdog Reaction :reset -> - Break Signal :on -> off Autoboot(Guest Domain) :on -> - Elastic Mode :off -> - IOreconfigure :false -> - CPU Mode :auto -> - PPAR DR :off -> - The specified modes will be changed. Continue? [y|n] :y configured. Diagnostic Level :max Message Level :max Alive Check :on (alive check:available) Watchdog Reaction :reset (watchdog reaction:reset) Break Signal :off (break signal:send) Autoboot(Guest Domain) :on Elastic Mode :off IOreconfigure :false CPU Mode :auto PPAR DR :off

XSCF> sendbreak -y -p0 Send break signal to PPAR-ID 0?[y|n] :y XSCF> console -y -p0

Console contents may be logged. Connect to PPAR-ID 0?[y|n] :y

c)ontinue, s)ync, r)eset? c ^@Notifying cluster that this node is panicking

panic[cpu10]/thread=2a100df1c80: Aborting node because pm_tick delay of 13644 ms exceeds 5050 ms ... </source>