You are on page 1of 9

Car Insurance Quotes

SA's Leading Comparison Site.


Save Thousands Today!

ReturntoSolarisHomePage.

UsingSerialConsoles(Solaris/Linux)
byJeffHunter,Sr.DatabaseAdministrator
Overview
ThefollowingarticledocumentssomeofthetipsforconnectingtheserialportofaUNIXServer(Sun
SPARC/Linux)totheserialport(console)ofaSunServer.Thisisoftenhelpfulandevennecessarywhen
performingroutineadministrativetasksorinitiatingcriticaland/orlongrunningprocesses.Accesstothe
serialconsoleformanySunserversistheonlywaytoperformadministrativetasksgiventheseserversdo
notcomewithaframebuffer(i.e.videocard).
TherearetimeswhenIneedtoinitiatealongrunningjobbutcannotremainconnectedtothenetworkfor
thedurationofitsexecution.Incaseslikethis,IcanconnecttotheserialconsoleoftheSunserver,initiate
thejobanddisconnect.ThejobwillremainrunningevenwhenIdropmyconnectiontotheserialport.I
can,atalatertime,reconnecttotheserialconsoletodeterminetheresults.
Thefirsttwosectionsofthisarticleexplaintheapplications(programs)usedfromaSunSPARCserverand
thenaLinuxserverforobtainingaserialconsoleconnection.Theremainderofthisarticleattemptsto
describethedetails(cables,connections,adapters)ofobtainingaserialconsoleconnectionto/from
differentSunSPARCservers.
ConnectFromSunSPARCSerialPort
FromaSunmachine,ifyouwantedtoaccesstheserialconsoleofanothercomputer(ie.Linux,Sun,etc.),
youwouldusethetipcommand.Theconfigurationfilefortipis/etc/remote.Inmostcases,youwillbe
concernedwiththehardwireentryinthisfile.First,connectthetwomachinesbytheirserialports(null
modemifrequired),andfromtheSunSPARC(Solaris)machine,typethefollowingatthecommandline
toconnecttotheserialconsoleoftheothermachine(Solaris/Linux):
#tiphardwire

Belowisanexample/etc/remotefilefromtheSunSPARC(Solaris)machinethatcontainsthehardwire
entrytogothroughserialportB(/dev/term/b).Ifyouwantedtochangethisentrytogooutthroughserial
portAinstead,change"/dev/term/b"to"/dev/term/a".
cuab:dv=/dev/cua/b:br#2400
dialup1|Dialupsystem:\
:pn=2015551212:tc=UNIX2400:
hardwire:\
:dv=/dev/term/b:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
tip300:tc=UNIX300:
tip1200:tc=UNIX1200:
tip0|tip2400:tc=UNIX2400:
tip9600:tc=UNIX9600:
tip19200:tc=UNIX19200:
UNIX300:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#300:tc=dialers:
UNIX1200:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#1200:tc=dialers:
UNIX2400:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#2400:tc=dialers:

UNIX9600:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#9600:tc=dialers:
UNIX19200:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#19200:tc=dialers:
VMS300|TOPS20300:\
:el=^Z^U^C^S^Q^O:du:at=hayes:ie=$@:oe=^Z:br#300:tc=dialers:
VMS1200|TOPS201200:\
:el=^Z^U^C^S^Q^O:du:at=hayes:ie=$@:oe=^Z:br#1200:tc=dialers:
dialers:\
:dv=/dev/cua/b:

Theattributesare:
dvdevicetouseforthetty
elEOLmarks(defaultisNULL)
dumakeacallflag(dialup)
pnphonenumbers(@=>'ssearchphonesfile;possiblytakenfrom
PHONESenvironmentvariable)
atACUtype
ieinputEOFmarks(defaultisNULL)
oeoutputEOFstring(defaultisNULL)
cucallunit(defaultisdv)
brbaudrate(defaultsto300)
fsframesize(defaultisBUFSIZ)usedinbufferingwrites
onreceiveoperations
tctocontinueacapability

ConnecttoaSunSerialConsolefromLinux
Linuxprovidestwomethods(programs)thatcanbeusedtoconnecttoaserialconsoleofaSunserver.
ConnectingUsingminicom
ThefirstapplicationI'lltalkaboutis"minicom".MostLinuxdistributions(i.e.RedHat)
alreadyincludeminicom.Ifyourparticulardistributiondoesnotincludeminicom,youcan
downloaditfromthefollowingURL:http://www.pp.clinet.fi/~walker/mcdevel.html.
OnceyouhaveMinicominstalled,startitupwiththecommand"minicom".Press"CtrlAZ"to
gettothemainmenu.Press"o"toconfigureminicom.Goto"Serialportsetup"andmakesure
thatyouaresettothecorrect"SerialDevice"andthatthespeedonlineEmatchesthespeedof
theserialconsoleyouareconnectingto.(InmostcaseswithSun,thisis9600.)Herearethe
settingsImadewhenusingmySerialA/COM1portonmyLinuxbox:
++
|ASerialDevice:/dev/ttyS0|
|BLockfileLocation:/var/lock|
|CCallinProgram:|
|DCalloutProgram:|
|EBps/Par/Bits:96008N1|
|FHardwareFlowControl:Yes|
|GSoftwareFlowControl:No|
||
|Changewhichsetting?|
++

Aftermakingallnecessarychanges,hittheESCkeytogobacktothe"configurations"menu.
Nowgoto"Modemanddialing".Changethe"Initstring"to"~^M~".
+[Modemanddialingparametersetup]+
||
|AInitstring.........~^M~|
|BResetstring........^M~ATZ^M~|
|CDialingprefix#1....ATDT|
|DDialingsuffix#1....^M|
|EDialingprefix#2....ATDP|
|FDialingsuffix#2....^M|

|GDialingprefix#3....ATX1DT|
|HDialingsuffix#3....;X4D^M|
|IConnectstring......CONNECT|
|JNoconnectstrings..NOCARRIERBUSY|
|NODIALTONEVOICE|
|KHangupstring......~~+++~~ATH^M|
|LDialcancelstring..^M|
||
|MDialtime...........45QAutobpsdetect.....No|
|NDelaybeforeredial.2RModemhasDCDline..Yes|
|ONumberoftries.....10SStatuslineshows...DTEspeed|
|PDTRdroptime(0=no).1TMultilineuntag....No|
||
|Changewhichsetting?(ReturnorEsctoexit)|
++

Savethesettings(asdflt),andthenrestartMinicom.Youshouldnowseealoginprompt.
Ifyoureceiveanerrormessagesimilartothefollowingwhenstartingminicom:
#minicom
minicom:WARNING:configurationfilenotfound,usingdefaults
Device/dev/modemaccessfailed:Nosuchfileordirectory.

thenminicomwillneedtobeconfiguredcorrectly.Unlikementionedabove,Minicomwillnot
startandprovideyouwithanopportunitytochangeanyoptions.Theserialdevicewillneedto
bechangedfrom/dev/modemto/dev/ttyS0.
Tosetupminicom,startitwiththesoption.
#minicoms

NavigatetothemenuoptionSerialportsetupandchange:
++
|ASerialDevice:/dev/modem|
|BLockfileLocation:/var/lock|
|CCallinProgram:|
|DCalloutProgram:|
|EBps/Par/Bits:1152008N1|
|FHardwareFlowControl:Yes|
|GSoftwareFlowControl:No|
||
|Changewhichsetting?|
++

to
++
|ASerialDevice:/dev/ttyS0|
|BLockfileLocation:/var/lock|
|CCallinProgram:|
|DCalloutProgram:|
|EBps/Par/Bits:96008N1|
|FHardwareFlowControl:Yes|
|GSoftwareFlowControl:No|
||
|Changewhichsetting?|
++

Aftermakingallnecessarychanges,hittheESCkeytogobacktothe"configurations"menu.
Nowgoto"Modemanddialing".Changethe"Initstring"to"~^M~".
+[Modemanddialingparametersetup]+
||
|AInitstring.........~^M~|

|BResetstring........^M~ATZ^M~|
|CDialingprefix#1....ATDT|
|DDialingsuffix#1....^M|
|EDialingprefix#2....ATDP|
|FDialingsuffix#2....^M|
|GDialingprefix#3....ATX1DT|
|HDialingsuffix#3....;X4D^M|
|IConnectstring......CONNECT|
|JNoconnectstrings..NOCARRIERBUSY|
|NODIALTONEVOICE|
|KHangupstring......~~+++~~ATH^M|
|LDialcancelstring..^M|
||
|MDialtime...........45QAutobpsdetect.....No|
|NDelaybeforeredial.2RModemhasDCDline..Yes|
|ONumberoftries.....10SStatuslineshows...DTEspeed|
|PDTRdroptime(0=no).1TMultilineuntag....No|
||
|Changewhichsetting?(ReturnorEsctoexit)|
++

Savethesettings(asdflt),andthenrestartMinicom.Youshouldnowseealoginprompt.
ConnectingUsingUUCP
AnothercommonapplicationtouseinLinuxforconnectingtoaserialconsoleisUUCP.Most
LinuxdistributionsincludetheUUCPapplication.StartUUCPwiththecommand"cul
[device]s[speed]",where[device]istheserialportyouareusing,suchasttyS0(COM1)
orttyS1(COM2),and[speed]isthespeedoftheserialconsolethatyouareconnectingto.
Hereisanexample:
#cul/dev/ttyS0s9600

Youmayneedtohitenterbeforeyouseetheloginprompt.Ifyouseeabunchofweird
characters,thenyouprobablyspecifiedthewrongspeed.
Toexit,justtype"~.".
SunBlade100/150
ConnectingtoaBlade100/150
ToobtainaserialconsoleconnectiontoaSunBlade100/150youwillneedthefollowing(These
procedureswillworktoanUltra5/10aswell):
ConnecttheserialportofyourlocalPC/workstationtotheDB9Serialportonthebackofthe
SunBlade(orUltra5/10)usingaserialcable(straightthrough).
Youwillneedtouseanullmodemadapter.
Communicationsettings:
Bitspersecond:

9600

Databits:

Parity:

None

Stopbits:

FlowControl:

Hardware

NOTE:YouwillnotbeabletomakeuseoftheserialconsoleiftheSunserverwasbooted
withthekeyboard/mousepluggedin.Inordertomakeuseoftheserialconsole,youwill

needtodisconnectthekeyboard/mouseandreboottheSunserver.OntheSunBlade
100/150,ifthekeyboard/mousearepluggedinduringthebootphase,allconsoleoutput
willberedirectedtotheVGAconsole.
ConnectingfromaBlade100/150
ToobtainaserialconnectionfromaSunBlade100/150toanotherserver(possiblyanotherSun
SPARCmachine)youwillneedthefollowing(TheseprocedureswillworkfromanUltra5/10as
well):
OnthebackofaSunBlade100/150(orUltra5/10)thereisonlyoneserialportthatis
dedicatedtoserialA(/dev/ttya).Thisserialportistypicallybeingusedbytheconsoleand
willoftenrequireyoutouseSerialB(/dev/ttyb).Thisiswhereitgetsfun.Thereisasecond
serialportconnectorlocatedonthemotherboard(actuallythePCIrisercard)labeledJ13.The
PCIrisercardisaPWAGROVERPLUS_RISERCARD411707500011andrequiresaspecial
cable.ThespecialcableconnectstothePCIrisercard(J13)ononeendwhiletheotherendisa
DB9maleportthatwilluseoneofyouravailablePCIdustcoverslots.ThisistheonlywayI
havefoundtomakeaconnectionfromaSunBlade(orUltra5/10)usingserialportBout
whichrequiresthisspecialcabletobeinstalledinordertohaveaccesstoserialportB.
ClickhereorheretoseeanexplodedviewofanUltra10WorkstationSystemBreakdown.
ThespecialcableIamreferingtoisSunManufacturingPart#3703165SerialBandParallel
CableAssembly(Code3a)intheUltra10WorkstationSystemBreakdown.Ineededtoorder
theUltra10CableServiceKit/FRU(3703267)inordertoobtainthiscable.Youcanorder
thiskitfromAjava,Partsolver,TridentComputerResources,Inc.,AssetConversion
Specialists,Inc.,orSunMicrosystems.
AfterinstallingthetheSerialBandParallelCableAssemblyinyourSunBlade,youwillhave
accesstoserialportB(/dev/ttyb).ConnectthenewDB9serialport(serialB)fromtheSun
Bladetothebackoftheserver(Sun,Linux)youwanttomakeaserialconsoleconnectionto.
Inmostcases,thiswillbeusingastraightthroughserialcable.
FormostconnectionstoaSunSPARC,youwillneedtouseanullmodemadapter.
FromtheSunBlade(orUltra5/10)usethetipprogramtoinitiatetheserialconsole
connectiontotheotherserver.Ensurethatyoueditthe/etc/remotefilefromtheSunBlade
youareconnectingfromandchangethehardwireentrytouseserialB/dev/term/b.
#tiphardwire

SunE450
ConnectingtoaSunE450
ToobtainaserialconsoleconnectiontoaSunE450youwillneedthefollowing:
ConnecttheserialportofyourlocalPC/workstationtotheDB25SerialA/Bportontheback
oftheSunE450usingaserialcable(straightthrough).Thereisonlyoneserialportonthe
backofanE450thatcontainsbothSerialAandSerialB.Whenyouplugdirectlyintothe
serialportonthebackoftheE450,youareaccessingSerialA.
Youwillneedtouseanullmodemadapter.
Communicationsettings:
Bitspersecond:

9600

Databits:

Parity:

None

Stopbits:

FlowControl:

Hardware

ConnectingfromaSunE450
ToobtainaserialconnectionfromaSunE450toanotherserver(possiblyanotherSunSPARC
machine)youwillneedthefollowing:
OnthebackofaSunE450,thereisonlyoneDB25(female)serialport(labeledSerialA/B)
thatisusedtocontainwiringforbothSerialAandSerialB.Thesystemprovidestwoserial
communicationsportsthroughasingle,sharedDB25connectorlocatedontherearpanel.If
youaretoplugaserialcabledirectlyintotheDB25serialportonthebackofanE450,you
willonlybeaccessingtheprimaryport(SerialA).Thiswillnotworktogetaserialconnection
outfromsinceitisreservedfortheconsoleofthemachine.Youwillneedtoobtainaccessto
SerialB(whichiscontainedwithinthesharedSerialA/Bport)byusingaspecialYCable
(serialsplitter).Inordertoaccessthesecondaryport(SerialB),aserialportsplittercable(Sun
Part#:X985Aor5301869)mustbeattachedtotherearpanelserialportA/Bconnector.The
serialsplitterconnectstotheSerialA/BDB25(female)connectiononthebackoftheE450
togiveyoutwoDB25(female)connectionsoneforSerialAandtheotherforSerialB.Here
areseveralplaceswhereIfoundtheserialsplitter:
SunStore(SpareParts)
UltraSpecCables
ComputerGiants
anything&everything4SUNMicrosystemsComputers
SunE450SerialPortandCablePinouts(FromStokelyConsulting)
YouwillneedtouseSerialPortBtomakeaconnectionfromtheE450toanotherserver.
ConnecttheSunE450fromitsSerialBtothebackoftheotherserver(Sun,Linux)youwant
tomakeaserialconsoleconnectionto.Inmostcases,thiswillbeusingastraightthrough
serialcable.
IfyouareconnectingfromtheSunE450toanothermachine(i.e.SunBlade,SunUltra,etc)
thathasanormalDB9maleport,youcanuseaBelkinF2L08806DB9Female/DB25Male
ModemCable(oftenwithanullmodemadapter):
BelkinProSeriesATSerialModemCable6ft
BelkinPROSeriesSerialcableDB9(F)DB25(M)6ft
BelkinF2L08806DB9Female/DB25MaleModemCable
BelkinProSeriesATSerialDB9FtoDB25M6'Modemcable
FormostconnectionstoaSunSPARC,youwillneedtouseanullmodemadapter.
FromtheE450usethetipprogramtoinitiatetheserialconsoleconnectiontotheotherserver.
Ensurethatyoueditthe/etc/remotefilefromthemachineyouareconnectingfrom(theE450)
andchangethehardwireentrytouseserialB/dev/term/b.
#tiphardwire

SunE250
ConnectingtoaSunE250
ToobtainaserialconsoleconnectiontoaSunE250youwillneedthefollowing:
ConnecttheserialportofyourlocalPC/workstationtotheDB25SerialAportonthebackof
theSunE250usingaserialcable(straightthrough).TherearetwoDB25serialportsonthe
backofanE250.MakesureyouconnecttoSerialA.

Youwillneedtouseanullmodemadapter.
Communicationsettings:
Bitspersecond:

9600

Databits:

Parity:

None

Stopbits:

FlowControl:

Hardware

ConnectingfromaSunE250
ToobtainaserialconnectionfromaSunE250toanotherserver(possiblyanotherSunSPARC
machine)youwillneedthefollowing:
OnthebackofaSunE250,therearetwoDB25(female)SerialPortsforSerialAandSerialB.
SerialAisusedforothermachinestoobtainaserialconsoleconnectionintotheE250.You
willneedtouseSerialPortBtomakeaconnectionfromtheE250toanotherserver.Connect
theSunE250fromitssecondserialport(serialB)tothebackoftheserver(Sun,Linux)you
wanttomakeaserialconsoleconnectionto.Inmostcases,thiswillbeusingastraightthrough
serialcable.
IfyouareconnectingfromtheSunE250toanothermachine(i.e.SunBlade,SunUltra,etc)
thathasanormalDB9maleport,youcanuseaBelkinF2L08806DB9Female/DB25Male
ModemCable(oftenwithanullmodemadapter):
BelkinProSeriesATSerialModemCable6ft
BelkinPROSeriesSerialcableDB9(F)DB25(M)6ft
BelkinF2L08806DB9Female/DB25MaleModemCable
BelkinProSeriesATSerialDB9FtoDB25M6'Modemcable
FormostconnectionstoaSunSPARC,youwillneedtouseanullmodemadapter.
FromtheE250usethetipprogramtoinitiatetheserialconsoleconnectiontotheotherserver.
Ensurethatyoueditthe/etc/remotefilefromthemachineyouareconnectingfrom(theE250)
andchangethehardwireentrytouseserialB/dev/term/b.
#tiphardwire

SunV100
ConnectingtoaSunV100
ToobtainaserialconsoleconnectiontoaSunV100youwillneedthefollowing:
ConnecttheserialportofyourlocalPC/workstationtotheserialport(serialportB)onthe
backoftheSunV100.TheSunV100hastwoserialportsonthebackofit.Tomakeaserial
connectiontotheSunV100,youwillbeconnectingtoSerialA(LOMA).Thisisthe"Lights
OutManagement"portusedforissuingLOMcommands.
DependingonthetypeofdeviceyouusetoconnecttotheSunV100server,youmayneedto
useeitheraDB25orDB9serialadapter(bothincludedwiththeSunV100).
ConnectingSunSPARCtoSunV100
ToconnecttoaSolaristipsessionortoaVT100terminal,youneedtouseeithertheDB25
(25PinDSUBMaleto8POSRJ45Female)adapterthatissuppliedbySun(SunPart#530
2889)withtheV100,oranalternativeadapterthatperformsthesamepincrossovers.TheSun

suppliedDB25adapter(5302889)enablesyoutoconnecttoanySunsystem.
InsertoneendofthestandardRJ45patchcablesuppliedwiththeSunFireV100serverinto
SerialA(LOM).InserttheotherendoftheRJ45patchcableintothesuppliedDB25adapter.
Finally,attachtheadaptertotheappropriateportinyourserialdevice.
PinCrossoversintheSunDB25(25Pin)Adapter
SerialPort(RJ45Connector)Pin

25PinConnecter

Pin1(RTS)

Pin5(CTS)

Pin2(DTR)

Pin6(DSR)

Pin3(TXD)

Pin3(RXD)

Pin4(SignalGround)

Pin7(SignalGround)

Pin5(SignalGround)

Pin7(SignalGround)

Pin6(RXD)

Pin2(TXD)

Pin7(DSR)

Pin20(DTR)

Pin8(CTS)

Pin4(RTS)

ConnectingPC,LaptoporhandheldcomputertoSunV100
Somedevices,suchasaPC,laptoporhandheldcomputer,requireyoutouseeitheramaleor
femaleDB9adapter.TheSunDB9adaptor(SunPart:5303100xx)isa9PinDSUBfemale
to8POSRJ45femaleadapterincludedwiththeSunV100.Thefollowingtableisthepin
crossovers:
InsertoneendofthestandardRJ45patchcablesuppliedwiththeSunFireV100serverinto
SerialA(LOM).InserttheotherendoftheRJ45patchcableintothesuppliedDB9adapter.
Finally,attachtheadaptertotheappropriateportinyourserialdevice.
PinCrossoversintheDB9(9Pin)Adapter
SerialPort(RJ45Connector)Pin

9PinConnector

Pin1(RTS)

Pin8(CTS)

Pin2(DTR)

Pin6(DSR)

Pin3(TXD)

Pin2(RXD)

Pin4(SignalGround)

Pin5(SignalGround)

Pin5(SignalGround)

Pin5(SignalGround)

Pin6(RXD)

Pin3(TXD)

Pin7(DSR)

Pin4(DTR)

Pin8(CTS)

Pin7(RTS)

YouwillNOTneedtouseanullmodemadapterforeithertheDB25orDB9connections.
CommunicationsettingsforbothDB25andDB9connections:
Bitspersecond:

9600

Databits:

Parity:

None

Stopbits:

FlowControl:

Hardware

ConnectingfromaSunV100
ToobtainaserialconnectionfromaSunV100toanotherserver(possiblyanotherSunSPARC
machine)youwillneedthefollowing:

...
...
...

PICK

PAY

ONLINE

SHOP

Register by 28 Feb 2015 & Get Your 1st Delivery Free. Shop Online Now!

Lastmodifiedon:Tuesday,13May201402:17:04EDT
PageCount:318848

You might also like