Operating System - HP-UX
1845822 Members
3701 Online
110250 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.
Rahul Rai_1
Frequent Advisor

Re: Chapter1 – command line vs SAM

Hi Rustam,

No need to be worry about these things, just start where you feel easy when you become much handy then you can understand automatically which one is better for you, but as I am SA I will suggest you to keep concentrate with command line, although you are corect SAM is more useful but it will more time consuming,

Regards,
Rahul Rai.



Michael Steele_2
Honored Contributor

Re: Chapter1 – command line vs SAM

For an X server program's Display to work you have to have an X client application installed on your PC. For Windows this is usually Reflection X or Hummingbird's Exceed from Cananda.
Support Fatherhood - Stop Family Law
F Verschuren
Esteemed Contributor

Re: Chapter1 – command line vs SAM

Always use the comand line if you want to know what you are doing, if you use (only) a gui you have learned to do a trick, but if the trick does not works you have no clue how to fix the problem... ps a gui can give verry good Idee's ore directions so once in a while it is a goot thing to go true all the options, you might just see someting you where not aware of it can be set/done...

Kind regards,
Freek Verschuren
Tim Nelson
Honored Contributor

Re: Chapter1 – command line vs SAM

Some additional comments on Windows wannabe gui utils.

So what do you do when they do not work, like now ?

With no knowledge of command line you are simply out of luck and out of league.

Viveki
Trusted Contributor

Re: Chapter1 – command line vs SAM

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

It may be right in the first thought. But if you look forward to become a master in HP-UX, please start with command line.

>>> 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?

First start with CLI and then go ahead with SAM (if you still want to use it). Explore the CLI interface

>> 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

It's up to you. If you are going ahead with SAM, GUI SAM
rustam_2
Super Advisor

Re: Chapter1 – command line vs SAM

Michael Steele
I think both of them aarent freeware, right? i mean Reflection X or Hummingbird's Exceed.

to all
thanks i got, i will try to use CLI max.

Re: Chapter1 – command line vs SAM

Neither Reflection/X or Hummingbird Exceed are free, but Cygwin/X _is_ free, if you want an X Server for your Windows PC:

http://x.cygwin.com/

HTH

Duncan

I am an HPE Employee
Accept or Kudo
rustam_2
Super Advisor

Re: Chapter1 – command line vs SAM

Thanks, i got. Yesterday we had a bit trouble with Cisco, and only CLI helped.And now i know how is CLI powerful. So are there manuals or books where i can find useful commands syntaxes. I read 'HP-UX System Administrator's Guide:
Configuration Management
HP-UX 1 1i Version 3' but there arent a lot command and their syntaxes.

Regards,
Rustam.
Dennis Handly
Acclaimed Contributor
Solution

Re: Chapter1 – command line vs SAM

>are there manuals or books where I can find useful commands syntaxes.

If you know the commands, there are man pages for each. The man pages are also on the web:
http://docs.hp.com/en/B2355-60130/index.html
Michael Steele_2
Honored Contributor

Re: Chapter1 – command line vs SAM

Here is every O/S version's man pages

http://docs.hp.com/en/hpuxman_pages.html
Support Fatherhood - Stop Family Law
rustam_2
Super Advisor

Re: Chapter1 – command line vs SAM

Thank you, Dennis Handly and Michael Steele.
Yeah, there are a lot necessary commands. I'm appreciate.