1830997 Members
2598 Online
110018 Solutions
New Discussion

LANADMIN LOG FILE

 
Arun Jain
Frequent Advisor

LANADMIN LOG FILE

Hi All,

Can anyone please tell me where the output of following command goes :
lanadmin -> lan -> display.

Thanks and Regards
Arun
speak less say more
3 REPLIES 3
Ramesh S
Esteemed Contributor

Re: LANADMIN LOG FILE

Hi Arun

Normally, lanadmin -> lan -> display is menu based and ouptut goes to "stdout".

If you would like to redirect that output to anywhere, use the following syntax:

lanadmin -g >

Thanks & Regards

Ramesh
Arun Jain
Frequent Advisor

Re: LANADMIN LOG FILE

Hi Ramesh,

for that we can use hyper terminal also, but i want a method so that I dont want to type the command again and again.

Is there any script.

Thanks and regards :

Arun
speak less say more
Jim Keeble
Trusted Contributor

Re: LANADMIN LOG FILE

Hi Arun,

I don't think I (we?) understand your question. The command Ramesh gave can be used in a script, and can redirect the output of the menu sequence you described.

$ lanadmin -g 0 >la.out
$ cat la.out

LAN INTERFACE STATUS DISPLAY
Wed, Jan 23,2008 08:45:53

PPA Number = 0
Description = lan0 HP PCI 10/100Base-TX Core [100BASE-TX,FD,
AUTO,TT=1500]
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 100000000
Station Address = 0x60b0d023e7
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 768476039
Inbound Octets = 2821295998
Inbound Unicast Packets = 1027281
Inbound Non-Unicast Packets = 31335788
Inbound Discards = 48
Inbound Errors = 0
Inbound Unknown Protocols = 104697
Outbound Octets = 234703485
Outbound Unicast Packets = 1038455
Outbound Non-Unicast Packets = 14661
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367

Ethernet-like Statistics Group

Index = 1
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 0
Multiple Collision Frames = 0
Deferred Transmissions = 0
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 0
Frames Too Long = 0
Internal MAC Receive Errors = 0