Pages

Thursday, February 24, 2011

Configuring ALOM from commandline

Last time i was in the challenge to configure the ALOM of a Sunfire V240 from commandline. First get some information:

# /usr/platform/`uname -i`/sbin/scadm show
if_network="true"
...
netsc_dhcp="false"
netsc_ipaddr="10.10.10.11"
netsc_ipnetmask="255.255.0.0"
netsc_ipgateway="10.10.10.1"
...

To change the network settings do:

# /usr/platform/`uname -i`/sbin/scadm set netsc_ipaddr 192.168.1.90
# /usr/platform/`uname -i`/sbin/scadm set netsc_ipnetmask 255.255.255.0
# /usr/platform/`uname -i`/sbin/scadm set netsc_ipgateway 192.168.1.73
# /usr/platform/`uname -i`/sbin/scadm set if_network true

To change a password for a user settings apply the following:

# /usr/platform/`uname -i`/sbin/scadm usershow

 username            permissions        password
 --------            -----------        --------
 admin               cuar               Assigned

# /usr/platform/`uname -i`/sbin/scadm userpassword admin
Password:
Re-enter Password:

Finally reset the ALOM:

# /usr/platform/`uname -i`/sbin/scadm resetrsc

After that you should be able to login with the user admin via telnet to your ALOM. For more settings see:

# /usr/platform/`uname -i`/sbin/scadm help

When you login to your ALOM you can connect to the console:

Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.

Sun(tm) Advanced Lights Out Manager 1.6.8 (sunfire03)

Please login: admin
Please Enter password: ********

sc> console -f
Warning: User <auto> currently has write permission to this console and forcibly removing them will terminate any current write actions and all work will be lost.  Would you like to continue? [y/n]y
Enter #. to return to ALOM.

There are a lot of other functions, the best place is to look at the documentation:

http://download.oracle.com/docs/cd/E19076-01/t1k.srvr/819-7991-10/command_shell.html

No comments:

Post a Comment