Operating System - HP-UX
1751920 Members
4545 Online
108783 Solutions
New Discussion

Chapter1 – command line vs SAM

 
SOLVED
Go to solution
rustam_2
Super Advisor

Chapter1 – command line vs SAM

I have got a installed OS HP-UX 11i v3. I downloaded a book where are 21 chapters. Yesterday I read first chapter and have got some questions. I would like to make clear some details. Could you help me?
I read that hp-ux command line is more suitable and flexible than SAM, but for beginners SAM is more useful, is it right?
Should I use SAM (GUI or TUI) or must to start by using command line or for first start with SAM then slowly to turn command line?
How should I know, does X Window run on my server or doesn’t?
Now I can use TUI SAM, should I create X Windows and use GUI SAM or …

Thanks,
rustam
20 REPLIES 20
Torsten.
Acclaimed Contributor

Re: Chapter1 – command line vs SAM

Your book is too old, there is no SAM in 11.31.

The new tool is "smh" - more info on

http://docs.hp.com

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Michal Kapalka (mikap)
Honored Contributor

Re: Chapter1 – command line vs SAM

R.K. #
Honored Contributor

Re: Chapter1 – command line vs SAM

Hi..

You can use both simultaneously and compare the working.

But it will be better if you start with command line...it is 100% transparent.

sam/smh (in 11.31) do things in background.

Command line is always better for learning.

For 11.31 OS:
http://docs.hp.com/en/oshpux11iv3.html

Don't fix what ain't broke
Suraj K Sankari
Honored Contributor

Re: Chapter1 – command line vs SAM

Hi,
>>I read that hp-ux command line is more suitable and flexible than SAM, but for beginners SAM is more useful, is it right?

Yes you are right SAM is more useful, but to save your time you can use Command line.
sometimes your terminal not support GUI by that time CLI is more useful.

in hp 11.31 SAM is not there instead of sam "SMH" is there.

Suraj
rustam_2
Super Advisor

Re: Chapter1 – command line vs SAM

Thanks for all of you. I read about SMH, and now i got that there is a different between them.
Yeah, you are right. I didnt notice when i type SAM, now i've noticed this message after typing sam:
SAM is deprecated in this release.
SMH is the new tool introduced to manage HP-UX.
U are recommended to use /usr/bin/smh

Display variable is not set. Starting the TUI.Please wait..
HP-UX SMH TUI
there are a list of options for TUI.

then i pressed w for web-launch. System notice me that my display environment is not configured and i have to type IP and port.
should i type IP and port. Will something change after that? Which IP i have to give, i have 4 lan.

Yeah, i'm gonna use wbem and CLI simultaneously.
Torsten.
Acclaimed Contributor

Re: Chapter1 – command line vs SAM

Maybe you already know SMH from another OS.

It is web browser based, so point your browser to your server:

http://server:2301

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
R.K. #
Honored Contributor

Re: Chapter1 – command line vs SAM

Hi Rustam,

As said you can use web browser to navigate smh.
Have a look on a 4-page attachment for ways to start SMH.

Don't fix what ain't broke
Michael Steele_2
Honored Contributor

Re: Chapter1 – command line vs SAM

Hi

GUI v. TUI and "...System notice me that my display environment is not configured and i have to type IP and port..."

GUI in HP-UX relies upon XWindows / CDE. Now a days X is more common and X relies upon a DISPLAY variable which needs the IP address and port. It is always in this format

xxx.xxx.xxx.xxx:0.0

It is always :0.0 for the port.

It is alway your desktop ip address.

As for using one or the other or the command line, from the operator's point of view is just that, your point of view. You'll learn both as time goes on. GUI is mouse point and click though, so you'll need this to start. TUI is keyboard navigated and relies upon the TAB key in particular. This takes some getting use to but you must learn it because a lot of low level stuff, or single user stuff where GUI can't run is performed in TUI.

As far as command line goes, GUI and to a lesser extent TUI need more patches and SAM in particular use a different command set different from the command line. This can be problematic.

The best use command line 90%.
Support Fatherhood - Stop Family Law
rustam_2
Super Advisor

Re: Chapter1 – command line vs SAM

Thanks,
I tried check out http:\\ip_address_of_lan0:2301 , but havent seen completed loaded SMH. There is sentences: Please wait... You will be redirected to the SMH. I waited for a long time, but didnt see SMG. What i did worng? I'm using CLI, already checked IP-addresses and add roude, its funny to use CLI ))
I just curious of using SMH, therefore also wanna to know this way.