1825769 Members
2073 Online
109687 Solutions
New Discussion

Lan 'operation status'

 
Mark Jones_1
Advisor

Lan 'operation status'

Is it possible to find out the operation status of a lan card WITHOUT using the menu within lanadmin? Ideally from the command line so that the status could be checked within a script, for example.

Many thanks in advance.
6 REPLIES 6
RAC_1
Honored Contributor

Re: Lan 'operation status'

echo "whatever commands you use in lanadmin" | lanadmin

Anil
There is no substitute to HARDWORK
Dave Hutton
Honored Contributor

Re: Lan 'operation status'

If you just want the status you could do something like this:
root /root # lanadmin -g 5 | grep "Operation Status"
Operation Status (value) = up(1)

ppa 5 is my lan card that is being used.
melvyn burnard
Honored Contributor

Re: Lan 'operation status'

try using lanadmin -g:

lanadmin -g 1 |grep Status
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Mark Jones_1
Advisor

Re: Lan 'operation status'

Ah yes, the man page for lanadmin didn't make it very clear. lanadmin -g it is.
Thanks!
RAC_1
Honored Contributor

Re: Lan 'operation status'

echo "lan\n "ppa 1" dis\n"|lanadmin

Taking nmid as 1 in this example.
There is no substitute to HARDWORK
Mark Jones_1
Advisor

Re: Lan 'operation status'

Oops. Forgot to close the thread. Thanks all.