[1]OpenSolaris [2]Discussions [3]Communities [4]Projects [5]Download [6]Source Browser You are not signed in. [7]Sign in or [8]register. ______________ Search 1. [9]Project: Network Auto-Magic 1. [10]Blogs 2. [11]Discussions 3. [12]Leaders 4. [13]Story Boards 5. [14]Requirements 6. [15]Architecture 7. [16]Design 8. [17]Data Structures & APIs 9. [18]Command Line Interfaces 10. [19]User Interface Design 1. [20]Network Configuration UI Spec 2. [21]Sketch: Enabling links conditionally 3. [22]User Tasks for NWAM Status Notification 4. [23]User Tasks for NWAM Configuration 11. [24]Prototype 1. [25]DL_NOTE_LINK_{UP,DOWN} 12. [26]Service Discovery 1. [27]Applications 13. [28]User Scenarios 1. [29]Laptop Setup 2. [30]Server Setup 3. [31]Laptop (CLI) 4. [32]Picking by Pinging 14. [33]State of the Art 1. [34]Windows XP 1. [35]Network Connections 2. [36]Local Area Connection 3. [37]1394 Connection 4. [38]Wireless Connection 5. [39]Bridge Connection 6. [40]Other Details 2. [41]MacOS X 10.4 1. [42]System Preferences 2. [43]Internet Connect 3. [44]Network Utility 4. [45]Network Diagnostics 5. [46]Network Setup Assistant 6. [47]Menus 7. [48]Other Applications 3. [49]Ubuntu 5.10 4. [50]Linksys Router 5. [51]Fedora Core 5 6. [52]Solaris Express 7. [53]Windows Vista 8. [54]IBM/Lenovo Thinkpad 15. [55]Glossary Version 1.0.1, 2007-Mar-05 There is a single CLI, nwamcfg(1m), which serves for both configuration and administration. It borrows much from zonecfg(1m): the concepts of scope, the terms resources and properties, and much of the syntax is similar. Here is a sample session: # nwamcfg nwamcfg> create env nwamcfg:env> set name=swan nwamcfg:env> add profile Enter nodename: laptop Enter nfs_domain: sun.com Enter dns_domain: sun.com Enter ns file: /etc/nsswitch.dns Enter proxy file: swan.pac Enter ipf file: /etc/ipf/ipf.conf Enter ipsec file: Enter smf_svc file: smf_svc_info End of walk. nwamcfg:env> add condition ip_address in 129.144/12 nwamcfg:env> set priority=1 nwamcfg:env> end nwamcfg> activate env home nwamcfg> select ncp main nwamcfg:ncp> insert ncu nwamcfg:ncp:ncu> set type=link nwamcfg:ncp:ncu> set name=bge0 nwamcfg:ncp:ncu> end nwamcfg:ncp> end nwamcfg> exit # Here is a syntax breakdown; commands valid in all scopes: * exit * help * info global scope: * create resource * select resource name * destroy resource name * activate resource name * commit * export * import valid one-level resources: * env valid two-level resources: * ncp one-level resource scope: * walk * set simple-property=value * add list-property value * end two-level resource scope: * insert sub-resource * select sub-resource name * delete sub-resource name * set simple-property=value * add list-property value * end valid sub-resources for ncp: * ncu CAPTION: properties for various resources resource simple properties list properties env profile, priority, condition all NCUs type, class, name, activation, over, under contingency link-type NCUs devname, linkid, macaddr, macaddr_mode, mtu autopush link/phys NCUs speed, duplex, jumbo link/vlan NCUs vid link/aggr NCUs key, nports, lacp_mode, lacp_timer ports link/iptun NCUs tunnel_type, tsrc, tdst, encr_alg, encr_auth_alg, auth_alg ip NCUs version, addr, timeout (if dhcp), fallback_addr (if dhcp) addrsrc ip/ipmp NCUs v4_test_addr property details: * most value entries are simple strings; two special cases below + value := string * special case 1: condition + condition := simple-condition | ["("] condition bop condition [")"] + bop := "and" | "or" + simple-condition := tag operator operand + tag := "ip_address" | "domain_name" | "essid" | "bssid" + operator := "==" | "!=" | "in" | "range" | "begins" | "ends" | "contains" | "!contains" + operand := IP address ["/" prefix-length] | string + special case when operator is "range": + operand := IP address "-" IP address * special case 2: contingent + contingent := cop ncu-name + cop := "require" | "optional" | "exclude" + ncu-name := string Page Last Modified: 05 Mar 2007 [56]Terms of Use | [57]Privacy | [58]Trademarks | [59]Copyright Policy | [60]Site Guidelines | [61]Help Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use. Copyright © 1995-2006 Sun Microsystems, Inc. References Visible links 1. file://localhost/os/ 2. file://localhost/os/discussions/ 3. file://localhost/os/communities/#portal 4. file://localhost/os/projects/#portal 5. file://localhost/os/downloads/ 6. http://src.opensolaris.org/ 7. file://localhost/enter.jspa;jsessionid=06BA85DEF49466B2902A4D329900167C 8. file://localhost/register.jspa;jsessionid=06BA85DEF49466B2902A4D329900167C 9. file://localhost/os/project/nwam/;jsessionid=06BA85DEF49466B2902A4D329900167C 10. file://localhost/os/project/nwam/blogs/;jsessionid=06BA85DEF49466B2902A4D329900167C 11. file://localhost/os/project/nwam/discussions/;jsessionid=06BA85DEF49466B2902A4D329900167C 12. file://localhost/os/project/nwam/leaders/;jsessionid=06BA85DEF49466B2902A4D329900167C 13. file://localhost/os/project/nwam/story-boards/;jsessionid=06BA85DEF49466B2902A4D329900167C 14. file://localhost/os/project/nwam/requirements/;jsessionid=06BA85DEF49466B2902A4D329900167C 15. file://localhost/os/project/nwam/architecture/;jsessionid=06BA85DEF49466B2902A4D329900167C 16. file://localhost/os/project/nwam/design/;jsessionid=06BA85DEF49466B2902A4D329900167C 17. file://localhost/os/project/nwam/apis/;jsessionid=06BA85DEF49466B2902A4D329900167C 18. file://localhost/os/project/nwam/clis/;jsessionid=06BA85DEF49466B2902A4D329900167C 19. file://localhost/os/project/nwam/UIDesign/;jsessionid=06BA85DEF49466B2902A4D329900167C 20. file://localhost/os/project/nwam/UIDesign/ConfigUI/;jsessionid=06BA85DEF49466B2902A4D329900167C 21. file://localhost/os/project/nwam/UIDesign/enabledl_sketch/;jsessionid=06BA85DEF49466B2902A4D329900167C 22. file://localhost/os/project/nwam/UIDesign/usertasks_status/;jsessionid=06BA85DEF49466B2902A4D329900167C 23. file://localhost/os/project/nwam/UIDesign/usertasks_config/;jsessionid=06BA85DEF49466B2902A4D329900167C 24. file://localhost/os/project/nwam/prototype/;jsessionid=06BA85DEF49466B2902A4D329900167C 25. file://localhost/os/project/nwam/prototype/dl_note_link/;jsessionid=06BA85DEF49466B2902A4D329900167C 26. file://localhost/os/project/nwam/service-discovery/;jsessionid=06BA85DEF49466B2902A4D329900167C 27. file://localhost/os/project/nwam/service-discovery/Applications/;jsessionid=06BA85DEF49466B2902A4D329900167C 28. file://localhost/os/project/nwam/userexperience/;jsessionid=06BA85DEF49466B2902A4D329900167C 29. file://localhost/os/project/nwam/userexperience/scenario1/;jsessionid=06BA85DEF49466B2902A4D329900167C 30. file://localhost/os/project/nwam/userexperience/scenario2/;jsessionid=06BA85DEF49466B2902A4D329900167C 31. file://localhost/os/project/nwam/userexperience/scenario3/;jsessionid=06BA85DEF49466B2902A4D329900167C 32. file://localhost/os/project/nwam/userexperience/scenario4/;jsessionid=06BA85DEF49466B2902A4D329900167C 33. file://localhost/os/project/nwam/stateoftheart/;jsessionid=06BA85DEF49466B2902A4D329900167C 34. file://localhost/os/project/nwam/stateoftheart/winxp/;jsessionid=06BA85DEF49466B2902A4D329900167C 35. file://localhost/os/project/nwam/stateoftheart/winxp/networkconnections/;jsessionid=06BA85DEF49466B2902A4D329900167C 36. file://localhost/os/project/nwam/stateoftheart/winxp/localareaconnection/;jsessionid=06BA85DEF49466B2902A4D329900167C 37. file://localhost/os/project/nwam/stateoftheart/winxp/1394connection/;jsessionid=06BA85DEF49466B2902A4D329900167C 38. file://localhost/os/project/nwam/stateoftheart/winxp/wirelessconnection/;jsessionid=06BA85DEF49466B2902A4D329900167C 39. file://localhost/os/project/nwam/stateoftheart/winxp/bridgeconnection/;jsessionid=06BA85DEF49466B2902A4D329900167C 40. file://localhost/os/project/nwam/stateoftheart/winxp/other/;jsessionid=06BA85DEF49466B2902A4D329900167C 41. file://localhost/os/project/nwam/stateoftheart/mac/;jsessionid=06BA85DEF49466B2902A4D329900167C 42. file://localhost/os/project/nwam/stateoftheart/mac/systempreferences/;jsessionid=06BA85DEF49466B2902A4D329900167C 43. file://localhost/os/project/nwam/stateoftheart/mac/internetconnect/;jsessionid=06BA85DEF49466B2902A4D329900167C 44. file://localhost/os/project/nwam/stateoftheart/mac/networkutility/;jsessionid=06BA85DEF49466B2902A4D329900167C 45. file://localhost/os/project/nwam/stateoftheart/mac/networkdiagnostics/;jsessionid=06BA85DEF49466B2902A4D329900167C 46. file://localhost/os/project/nwam/stateoftheart/mac/nsa/;jsessionid=06BA85DEF49466B2902A4D329900167C 47. file://localhost/os/project/nwam/stateoftheart/mac/menus/;jsessionid=06BA85DEF49466B2902A4D329900167C 48. file://localhost/os/project/nwam/stateoftheart/mac/otherapplications/;jsessionid=06BA85DEF49466B2902A4D329900167C 49. file://localhost/os/project/nwam/stateoftheart/ubuntu/;jsessionid=06BA85DEF49466B2902A4D329900167C 50. file://localhost/os/project/nwam/stateoftheart/linksys/;jsessionid=06BA85DEF49466B2902A4D329900167C 51. file://localhost/os/project/nwam/stateoftheart/fedora/;jsessionid=06BA85DEF49466B2902A4D329900167C 52. file://localhost/os/project/nwam/stateoftheart/SolarisExpress/;jsessionid=06BA85DEF49466B2902A4D329900167C 53. file://localhost/os/project/nwam/stateoftheart/windows_vista/;jsessionid=06BA85DEF49466B2902A4D329900167C 54. file://localhost/os/project/nwam/stateoftheart/ibm_thinkpad/;jsessionid=06BA85DEF49466B2902A4D329900167C 55. file://localhost/os/project/nwam/glossary/;jsessionid=06BA85DEF49466B2902A4D329900167C 56. file://localhost/os/tou/ 57. http://www.sun.com/privacy/ 58. file://localhost/os/trademark/ 59. file://localhost/os/copyrights/ 60. file://localhost/os/site_guidelines/ 61. file://localhost/os/about/help/ Hidden links: 62. file://localhost/os/