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

To change the network settings do:

# /usr/platform/`uname -i`/sbin/scadm set netsc_ipaddr
# /usr/platform/`uname -i`/sbin/scadm set netsc_ipnetmask
# /usr/platform/`uname -i`/sbin/scadm set netsc_ipgateway
# /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
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: