http://defect.opensolaris.org/bz/show_bug.cgi?id=9075

           Summary: nwamadm list error
    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


nwamadm can not handle a wrong parameter
see below operation:

bash-3.2# nwamadm list non-exist-value
nwamadm: No such profile configured
bash-3.2# echo $?
1
bash-3.2# 
bash-3.2# 
bash-3.2# nwamadm list loc non-exist-value
TYPE         PROFILE        STATE          
ncp          Automatic      online         
 ncu:ip      iprb0          online         
 ncu:phys    iprb0          online         
loc          Automatic      online         
loc          NoNet          offline        
loc          Legacy         initialized    
bash-3.2# nwamadm list ncp non-exist-value
TYPE         PROFILE        STATE          
ncp          Automatic      online         
 ncu:ip      iprb0          online         
 ncu:phys    iprb0          online         
loc          Automatic      online         
loc          NoNet          offline        
loc          Legacy         initialized    
bash-3.2# nwamadm list enm non-exist-value
TYPE         PROFILE        STATE          
ncp          Automatic      online         
 ncu:ip      iprb0          online         
 ncu:phys    iprb0          online         
loc          Automatic      online         
loc          NoNet          offline        
loc          Legacy         initialized    
bash-3.2# echo $?
0
bash-3.2#

-- 
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.

Reply via email to