Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ndd get errors, any ideas

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
0
0
GB
Hi Im wishing to check server is running at 100 fdx. But when i issue ndd -get it errors.. any ideas?

The same comand works fine using nic qfe on another box.

# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.128.2.74 netmask ffff0000 broadcast 10.128.255.255
ether 0:3:ba:59:17:a1
# ndd -get /dev/bge link_mode link_speed
operation failed, Invalid argument

operation failed, Invalid argument
# ndd -get /dev/bge link_mode
operation failed, Invalid argument

thanks in advance!



Sy UK
 
Just do ndd -get /dev/bge it will show you all the settings
 
I think you can put a "?" at the end for the command:
ndd -get /dev/bge? to see the valid arguments.
 
Hi when I issue the following i get error..
please can you assist!

thanks for your response!

ndd -get /dev/bge link_mode
# ndd -get /dev/bge
name to get/set ? ^C#
# ndd -get /dev/bge?
operation failed, Invalid argument

operation failed, Invalid argument

operation failed, Invalid argument

Sy UK
 
Typing error... Space before "?" my fault...
Device may be bge0 not bge
 
thanks fr reply but it still does the following:-

# ndd -get /dev/bge ?
operation failed, Invalid argument


# ndd -get /dev/bge0
name to get/set ? <-- why does it wish me to set as i am using get, or am i missing the point here?

thanks in advance





Sy UK
 
Sorry I am at home so I don't have a workstation to try these on. Looks like the ndd command likes

ndd -get /dev/bge0

try

ndd -get /dev/bge0 ?
 
better try
Code:
# ndd -get /dev/bge \?

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Hi guys,

My reading of the man pages for ndd on Solaris 8 says there is no -get argument, hence the errors (operation failed, Invalid argument). The argument -set is valid. If not present then information is retrieved (equivalent to "-get" I presume in other flavours of UNIX).

I hope that helps.

Mike
 
ok, it's a ge not a bge NIC, but commands should be the same:
Code:
# uname -a
SunOS penelope 5.9 Generic_112233-08 sun4u sparc SUNW,Sun-Fire-280R
# id
uid=0(root) gid=1(other)
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 212.63.167.49 netmask ffffff00 broadcast 212.63.167.255
        ether 0:3:ba:f:fe:ea 
ge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 10.43.50.80 netmask ffffff00 broadcast 10.43.50.255
        ether 8:0:20:b5:22:e9 
# ndd -set /dev/ge instance 0
# ndd -get /dev/ge \?
?                             (read only)
link_status                   (read only)
link_speed                    (read only)
link_mode                     (read only)
ipg1                          (read and write)
ipg2                          (read and write)
instance                      (read and write)
lance_mode                    (read and write)
ipg0                          (read and write)
adv_1000autoneg_cap           (read and write)
adv_1000fdx_cap               (read and write)
adv_1000hdx_cap               (read and write)
adv_pauseTX                   (read and write)
adv_pauseRX                   (read and write)
1000autoneg_cap               (read only)
1000fdx_cap                   (read only)
1000hdx_cap                   (read only)
asm_dir_cap                   (read only)
pause_cap                     (read only)
lp_1000autoneg_cap            (read only)
lp_1000fdx_cap                (read only)
lp_1000hdx_cap                (read only)
lp_asm_dir_cap                (read only)
lp_pause_cap                  (read only)
# ndd -get /dev/ge link_speed
1000
#

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top