On 8/28/10 4:30 AM, Darren Reed wrote:
From a fresh AI install of 146...
r...@netvirt-d1:~# ipadm show-if
ipadm: Could not get interface(s): Operation failed
r...@netvirt-d1:~# ifconfig -a
ifconfig: could not get addresses from kernel: Operation failed
r...@netvirt-d1:~# ifconfig e1000g0
e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index
2
inet 10.5.233.117 netmask ffffff00 broadcast 10.5.233.255
ether 0:23:8b:77:26:d8
r...@netvirt-d1:~# ipadm show-if e1000g0
ipadm: Could not get interface(s): Operation failed
The reason why 'ifconfig e1000g0' works and while 'ipadm show-if e1000g0' does
not is because, ipadm show-if has a 'PERSISTENT' column to display and for which
it needs to communicate with the 'ipmgmtd' daemon to retrieve the value for that
column.
Also, ifconfig -a, calls ipadm_addr_info() which in turn tries to communicate
with the daemon.
It can be inferred from the truss output below that the daemon fails to open the
ipadm data-store for some reason.
Does this system still show this symptom? If so, can you email me the access to
the system. If not, is it reproducible?
~Girish
r...@netvirt-d1:~# dladm show-link
LINK CLASS MTU STATE BRIDGE OVER
e1000g0 phys 1500 up -- --
igb0 phys 1500 up -- --
e1000g1 phys 1500 up -- --
igb1 phys 1500 up -- --
r...@netvirt-d1:~# ps -ef | grep ipmgmt
netadm 49 1 0 19:08:39 ? 0:00 /lib/inet/ipmgmtd
root 1944 1659 0 19:24:38 console 0:00 grep ipmgmt
r...@netvirt-d1:~# truss -p 49 &
r...@netvirt-d1:~# ipadm show-if e1000g0
/4: door_return(0xFE96E92C, 4, 0x00000000, 0xFE96EE00, 1007360) = 0
/4: open("///etc/ipadm/ipadm.conf", O_RDONLY) Err#13 EACCES [file_dac_search]
ipadm: Could not get interface(s): Operation failed
r...@netvirt-d1:/etc/ipadm# ls -ald /etc
drwxr-xr-x 83 root sys 230 Aug 27 19:13 /etc
r...@netvirt-d1:/etc/ipadm# ls -ald /etc/ipadm
drwxr-xr-x 2 netadm netadm 3 Aug 28 2010 /etc/ipadm
r...@netvirt-d1:/etc/ipadm# ls -al /etc/ipadm/ipadm.conf
-rw-r--r-- 1 netadm netadm 999 Aug 28 2010 /etc/ipadm/ipadm.conf
r...@netvirt-d1:/etc/ipadm# ls -ald /proc/`pgrep ipmgmt`
dr-x--x--x 5 netadm netadm 864 Aug 27 19:08 /proc/49
Thoughts, anyone?
Darren
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org