Operating System - HP-UX
1833553 Members
3350 Online
110061 Solutions
New Discussion

Where to Check Status of Ethernet Links in Log files ?

 
Avinash Lengure
Occasional Advisor

Where to Check Status of Ethernet Links in Log files ?

Hi ,

Can anybody tell me where we can find the log files to check the Status of Ethernet Links ?

Thanks in Advance to HP-UX Gurus
6 REPLIES 6
Sagar Sirdesai
Trusted Contributor

Re: Where to Check Status of Ethernet Links in Log files ?

Hi

You can look in to the syslog.log file

/var/adm/syslog/syslog.log

Sagar
Ganesan R
Honored Contributor

Re: Where to Check Status of Ethernet Links in Log files ?

Hi Avinash,

All network related errors will be logged in /var/adm/nettl.LOG000. It is binary file. You need to use "netfmt" command to read the binary file. Use the below command to check the log files for any errors.

# netfmt -Nlf /var/adm/nettl.LOG000
Best wishes,

Ganesh.
Avinash Lengure
Occasional Advisor

Re: Where to Check Status of Ethernet Links in Log files ?

Hello

The netfm is giving error as corrutpted.

Also when we try to find the entries in the syslog file they are not available. We are trying to pull out the cable from interface. Does this physically bring down the interface? If not how do I bring down the interface and make it up again without disturbing the settings or connectivity?

Also i need the time stampto be visible when we do this activity...

Please do suggest
Ganesan R
Honored Contributor

Re: Where to Check Status of Ethernet Links in Log files ?

Hi Avinash,

If nettl.LOG000 file is corrupted just empty the file.

#> /var/adm/nettl.LOG000

If you want to bring down the interface temporarily you can use ifconfig command.

#ifconfig lan5 down
#ifconfig lan2 up

nettl.LOG000 will capture the cable disconnection entries. You need to plugout the cable if nettl to capture with timestamps.
Best wishes,

Ganesh.
Avinash Lengure
Occasional Advisor

Re: Where to Check Status of Ethernet Links in Log files ?

Hello

thank u for the reply... But if we do give ifconfig down command will it affect the lancard configuration?Do I need to reconfigure the Ip adrees and mask ,gateway information after the down up exercise?


Ganesan R
Honored Contributor

Re: Where to Check Status of Ethernet Links in Log files ?

Hi Avinash,

No. it won't. When an interface is marked "down", the system will not attempt to transmit messages through that interface.

When you bring up the interface using ifconfig up, all the setting will be retrieved as it was.

Best wishes,

Ganesh.