1821638 Members
3035 Online
109633 Solutions
New Discussion юеВ

Network Command

 
Mridul Dutta
Advisor

Network Command

I m new in HP-Unix. I know Linux ( Redhat , debian). SO what are the important command related to network in HP-UX like to check ip address etc etc

Regards

Mridul
13 REPLIES 13
Arunvijai_4
Honored Contributor

Re: Network Command

Hi Mridul,

Some important network commands are,

1) ifconfig ( man ifconfig for more details)
2) netstat
3) ndd -h
4) lanadmin

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Joseph Loo
Honored Contributor

Re: Network Command

hi,

usual network commands i will use, lanadmin, netstat, lsof, etc.

for hardware configuration and info display, i use lanadmin, lanscan, ifconfig, etc.

regards.
what you do not see does not mean you should not believe
Sivakumar TS
Honored Contributor

Re: Network Command

Dear Mridul,

Try #sam

( System Admin Manager)

It has evrything !

With Regards,

Siva.
Nothing is Impossible !
Muthukumar_5
Honored Contributor

Re: Network Command

Commands:

ifconfig
route
netstat -in
netstat -rn
lanscan
lanadmin
nslookup
nsquery
ping
ndd

Use sam to configure network cards and administration based on networks.

-Muthu
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Network Command

More commands:

linkloop
hosts
resolve.conf
nsswitch.conf

I am recommending to start with ifconfig and recommeded man pages and continue with SEE ALSO part man pages more.

Files which are relative to networks:

1. /etc/nsswitch.conf
2. /etc/resolv.conf
3. /etc/hosts
4. /etc/services
5. /etc/rc.config.d/netconf
6. /etc/rc.config.d/*lan
7. /etc/inetd.conf

Service which is involving:

1. /sbin/init.d/net

-Muthu

Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Network Command

To get and generate network based commands, try to go here,

http://docs.hp.com/en/B2355-60103/index.html

and search with "network" word and select your commands.

-Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Network Command

Take a look at http://www.unixguide.net/cgi-bin/unixguide.cgi for comparison of commands between all major OS releases.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Thummalu
Frequent Advisor

Re: Network Command

Frank de Vries
Respected Contributor

Re: Network Command

Hi

You usually start to identify the
hardware bus/cards
with
- lanscan
(for each card lan0, lan1 etc)
- ioscan -fnC lan

To get ip@ configs
- ifconfig lan0 , lan1 etc.

To configure your hardware go to
/etc/rc.config.d/hpbtlanconf
or hpeisabtconf or hpetherconf

For your ip@ and routing
/etc/rc.config.d/netconf
or manually "route" and "traceroute"

(In fact run to see current
settings: lanadmin -x 1
or lanadmin -x 2 depending)

For initial settings run
[vwbsrv3:/etc/rc.config.d]# set_parms
Usage: set_parms
Where can be:
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
or initial (for entire initial boot-time dialog sequence)
[vwbsrv3:/etc/rc.config.d]#

Naturally there are your utilities
like nslookup (see /etc/resolve.conf
and /etc/nsswitch.conf)
, ping , netstat and linkloop to
test various stuff.

And the best of all , surprised
no-one mentioned it, it is a bit techy;
"nettl" control network tracing and logging.

Hope this gives the full picture:)

rgds,


Look before you leap
Frank de Vries
Respected Contributor

Re: Network Command

Hi
Mridul

I see that you are new here:)

Welcome !

But don't forget to allocate points to
those that took the trouble to give an
elaborate answer to your question.

Many thanks,


Look before you leap
Mridul Dutta
Advisor

Re: Network Command

How assign points
Frank de Vries
Respected Contributor

Re: Network Command

Hi Mridul

You mean how to technically do it ?
Well you can rate each answer between
1-10 points via the dropdown list next to each answer on your thread and then submit.
(Sometimes it can be slow and has to be
repeated, I know :))

Or did you mean there is no more point
to give points ?
then the best thing to do is to close the thread, then no more points can be given to
new answers :) And it is clear to us
what is the status of the thread.

Thanks







Look before you leap
Frank de Vries
Respected Contributor

Re: Network Command

Some kind reminder
You have assigned points to 10 of 16 responses to your questions.

That is 60%

A pretty low score don't you think ?

So , I think people have a right
to know that they should not count
on points from you.

Very untypical, as my other Indian colleques
here are very generous indeed.



Look before you leap