http://defect.opensolaris.org/bz/show_bug.cgi?id=8333
Summary: nwamadm can not enable enm
Classification: Development
Product: nwam
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: CLI
AssignedTo: nwam-dev at opensolaris.org
ReportedBy: huawei.zhang at sun.com
QAContact: nwam-dev at opensolaris.org
here is the operation list:
===============
bash-3.2# nwamcfg
nwamcfg> list
NCPs:
Automatic
Locations:
Automatic
NoNet
loc1
nwamcfg> create enm enm0
Created enm 'enm0'. Walking properties ...
activation-mode (manual) [manual|conditional-any|conditional-all]>
fmri>
start> /var/tmp/a start
stop> /var/tmp/a stop
nwamcfg:enm:enm0> commit
Committed changes
nwamcfg:enm:enm0> end
nwamcfg> end
bash-3.2#
bash-3.2#
bash-3.2# cat /var/tmp/a
#!/bin/sh
echo $1
bash-3.2# ls -l /var/tmp/a
-rwxr--r-- 1 root root 19 Apr 22 15:48 /var/tmp/a
bash-3.2#
bash-3.2# nwamadm list
TYPE PROFILE STATE
ncp Automatic online
ncu:ip iprb0 online
ncu:link iprb0 online
loc Automatic offline
loc NoNet offline
loc loc1 online
enm enm0 initialized
bash-3.2#
bash-3.2# nwamadm enable -p enm enm0
bash-3.2# nwamadm list
TYPE PROFILE STATE
ncp Automatic online
ncu:ip iprb0 online
ncu:link iprb0 online
loc Automatic offline
loc NoNet offline
loc loc1 online
enm enm0 maintenance
bash-3.2# cat /var/tmp/nwam.log
......
Apr 22 16:30:07 lway nwamd[141682]: [ID 297613 daemon.debug] 1:
nwamd_enm_handle_enable_event: activating enm enm0
Apr 22 16:30:07 lway nwamd[141682]: [ID 673953 daemon.debug] 10:
nwamd_enm_enable_disable_thread: running script /var/tmp/a start for ENM enm0
Apr 22 16:30:07 lway nwamd[141682]: [ID 289839 daemon.info] 10: '/usr/bin/ctrun
/var/tmp/a start' completed normally: 127
Apr 22 16:30:07 lway nwamd[141682]: [ID 759933 daemon.error] 10:
nwamd_enm_handle_enable_event: execution of '/var/tmp/a start' failed for ENM
enm0
......
here attached the nwam.log file.
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.