How to access the Console of remote servers
Hi,
We are maintaining the Sun Sparc servers in remote and we are using ssh & Telnet to accesss the servers.
How can we access the consoIe of the remote servers for some administration activities like resetting the password .., Rebooting a Hung system etc..
Thanks & regards
Suseendran .A
# 1
Depends on what box.A lot of servers have a separate ALOM or RSC which is a management ethernet/serial port.Most of them you can telnet to. Some you can ssh to.A few of the lower end servers only have the serial.
# 2
Hi The sparc station is5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V240Now anybody tell me how to access the server console from remote..RegardsSuseendran .A
# 3
The v240 has a ALOM ethernet you can telnet to. And an ALOM serial.
You have to have an ethernet cable running from the ALOM ethernet port to a switch.
We tend to put the ALOM's on a separate management subnet that is firewalled off from outside access.
The ALOM has a separate username/password space. So you need to create an ALOM user and set the ALOM IP address if it hasnt already been done.
You can do it either by accessing the ALOM initially though the serial port or by
using the scadm command located at
/usr/platform/SUNW,Sun-Fire-V240/sbin/scadm
You really need to read the ALOM documentation in docs.sun.com
But to get you started
scadm usershow will show the users in the ALOM password file.
scadm shownetwork will show the network config
scadm show will show all config.
# 4
Once you have your ALOM access working.
After you log into the ALOM you can do things like
poweroff
poweron.
console -f connects you to the system console where you can boot the machine or
log in if already booted.
break takes the machine out of booted state the OBP prompt.
So when you break then console you should be at the "ok" prompt.
If your at the console and want to get back to the ALOM then "#." will do it.
# 5
But when I try to execute the console command it is giving the error .,
bash-3.00# uname -a
SunOS nicdbsun10-zone1 5.10 Generic_118822-25 sun4u sparc SUNW,Sun-Fire-V240
bash-3.00#
bash-3.00# console
bash: console: command not found
bash-3.00#
And there is no more console command in my system when i try to add it in my PATH....
Regards
Suseendran .A
# 6
SuseendranYou does not seem to be on the ALOM prompt here.u need to get to the ALOM and then give console -fSunish
# 7
HI Good.,But how can i set my ALOM access to the server..If anybody give me a step by step instruction ...RegardsSuseendran .A
# 8
The V210 and V240 ALOM's are not
automatically pre-configured when they ship from the factory.
You need to configure them to your own preferences, after Solaris is installed.
You will need to review the V240's system documentation,
http://www.sun.com/products-n-solutions/hardware/docs/Servers/Workgroup_Servers /Sun_Fire_V210/
and there is a chance you may need a direct, local console connection
to the system while you are configuring that ALOM,
before you can do any remote connectivity.
Perhaps you can begin with document 819-2445 (the ALOM Admin Guide).
Once you have done it successfully on one or two systems,
you may become your company's resident expert for systems
with LOM and ALOM capabilities.
# 9
>> Can anyone give me step by step instructions.
Yeah, read the documentation that everyone has pointed you to.
Get a clue.
You can't expect people to do your job for you.
But in a nutshell.
Connect an ethernet cable to the ALOM ethernet port.
Either connect a serial cable to the ALOM serial port and access the console from there.
Or use the scadm command.
Set the ALOM ethernet address, netmask and gatewau address.
Create an ALOM user and set their password.
You should be then able to telnet to the ALOM IP address and log in as that username.
Then you will be at the ALOM prompt and able to issue the "console -f" command.
# 10
Thanks to Robert & Rukbat...
Now I tried scadm I found the way to Configurig the ALOM ...
But one more Query.,
From the output of scadm show I got the following details...
bash-3.00# scadm show
if_network="true"
if_modem="false"
if_emailalerts="false"
sys_autorestart="xir"
sys_xirtimeout="900"
netsc_tpelinktest="true"
netsc_dhcp="false"
netsc_ipaddr="0.0.0.0"
netsc_ipnetmask="255.255.255.0"
netsc_ipgateway="0.0.0.0"
mgt_mailhost=""
mgt_mailalert=""
sc_customerinfo=""
sc_escapechars="#."
sc_powerondelay="false"
sc_powerstatememory="false"
sc_clipasswdecho="true"
sc_cliprompt="sc"
sc_clitimeout="0"
sc_clieventlevel="2"
sc_backupuserdata="true"
sys_eventlevel="2"
bash-3.00#
From the list I can able to specify the Ip , mask & gateway to my ALOM..
But where can I specify the hostname ...
Is hostname is required for the ALOM ..or not required.
Thanks & Regards
Suseendran .A
# 11
Please think a moment on that last question.
Your ALOM is a circuitboard that has a serial port and has an Ethernet port.
It has a small RTOS and its job is to provide an interface to the rest of the computer.
Why would it need its own unique hostname ?
An expensive manageable Ethernet switch or router may have its own IP address,
but would not have a hostname.ALOM doesn't use a hostname.
Your computer has its own hostname.
ALOM is a separate "machine" inside your "machine".
# 12
While its substantially correct that the ALOM doesnt need a hostname.
I will make a couple of observations.
You can assign a DNS name to the IP you give to your ALOM.
We tend to use hostname-sc for a host called "hostname". So its easy to remember.
That way you can just telnet hostname-sc instead of having to remember the IP.
And as a trivial point, once you are logged in the ALOM you can do a command
setsc sys_hostname fred
to assign a name to it. As far as I know all this does is show up in the login banner.
But it provides a reassurance that you have connected to the console of the correct machine.
It could be embarrassing if you reboot the wrong machine.
I don't know why you can't set that variable using the scadm command. But it can only be set from the ALOM console.