Anurag,
I got the following results (includes console ouput) when I did some
testings for nwamadm.
firering:exp# uname -a
SunOS firering 5.11 nwam1-build:2009-03-24 sun4u sparc
SUNW,Sun-Fire-V215
firering:exp# nwamcfg list loc Automatic
LOC:Automatic
activation-mode system
dns-nameservice-configsrc dhcp
nameservices dns,nis
nameservices-config-file "/etc/nsswitch.nis"
nis-nameservice-configsrc dhcp
hosts-file "/etc/nwam/loc/Legacy/hosts"
firering:exp# nwamadm list
TYPE PROFILE STATE
ncp Automatic online
ncu bge2 uninitialized
ncu bge0 uninitialized
ncu bge1 uninitialized
ncu bge3 uninitialized
loc Automatic online
loc NoNet offline
ncu bge0 should not be uninitialized .
firering:exp#
firering:exp# nwamadm enable -t ncp Automatic
Enabling ncp 'Automatic'
firering:exp# echo $?
0
Mar 27 12:19:41 firering automount[189146]: can't read nis map
auto_master: can't communicate with ypbind - retrying
$?
firering:exp# Mar 27 12:20:01 firering automount[189146]: nis map
auto_master: read OK.
nwamadm list
TYPE PROFILE STATE
ncp Automatic uninitialized
loc Automatic uninitialized
loc NoNet uninitialized
firering:exp# Mar 27 12:20:39 firering svc.startd[100004]:
network/physical:nwam failed: transitioned to maintenance (see 'svcs
-xv' for details)
firering:exp# nwamadm list
nwamadm: enable 'svc:/network/physical:nwam' to use 'nwamadm'
firering:exp#
I don't know why "network/physical:nwam" was transfered into
maintenance. The log looks like this:
firering:exp# tail /var/svc/log/network-physical:nwam.log
[ Mar 27 12:15:32 Executing refresh method
("/lib/svc/method/net-nwam refresh"). ]
[ Mar 27 12:15:33 Method "refresh" exited with status 0. ]
[ Mar 27 12:19:38 Rereading configuration. ]
[ Mar 27 12:19:38 Executing refresh method
("/lib/svc/method/net-nwam refresh"). ]
[ Mar 27 12:19:38 Method "refresh" exited with status 0. ]
[ Mar 27 12:19:38 Stopping because process dumped core. ]
Here's a core dump.
[ Mar 27 12:19:38 Executing stop method ("/lib/svc/method/net-nwam
stop"). ]
No Legacy location to revert to!
[ Mar 27 12:19:39 Method "stop" exited with status 0. ]
[ Mar 27 12:20:39 Method or service exit timed out. Killing contract
379. ]
--
Thanks,
Lizhong