SunServer
From Lolly's Wiki
X86 Systeme
ILOM
Set SP IP address from OS via ipmitool
- Set:
# ipmitool lan set 1 ipaddr 172.30.42.149
Setting LAN IP Address to 172.30.42.149
# ipmitool lan set 1 netmask 255.255.255.0
Setting LAN Subnet Mask to 255.255.255.0
# ipmitool lan set 1 defgw ipaddr 172.30.42.1
Setting LAN Default Gateway IP to 172.30.42.1
- Check:
# 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
Restore lost Serial/Product Information
$ 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>
SPARC Systeme
XSCF
Set XSCF IP address from OS via ssh through dscp
- Show:
# /usr/platform/`uname -i`/sbin/prtdscp
Domain Address: 192.168.224.2
SP Address: 192.168.224.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
- Delete default gateway:
XSCF> setroute -c del -n 0.0.0.0 -m 0.0.0.0 -g 172.42.0.1 xscf#0-lan#0
- Set:
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