|
All, Is it an idea to add the network interface to the postData string ? something like: postData=interface%3De1000g0 .................. And replace all occurencies of the network interface in the sc_manifest part with it, together with all the rest (ip address, network etc) when the manifest is retrieved ? (it could be done by the cgi_get_manifest.py script on the install-server) It will reduce sc_manifests ..... <service name="network/install" type="service" version="1"> <instance name="default" enabled="true"> <property_group name="install_ipv4_interface" type="application"> <propval name="name" type="astring" value="e1000g0/v4" /> <propval name="address_type" type="astring" value="static" /> <propval name="static_address" type="net_address_v4" value="10.173.7.169/16" /> <propval name="default_route" type="net_address_v4" value="10.173.6.0" /> </property_group> <property_group name="install_ipv6_interface" type="application"> <propval name="name" type="astring" value="e1000g0/v6" /> <propval name="address_type" type="astring" value="addrconf" /> <propval name="stateless" type="astring" value="yes" /> <propval name="stateful" type="astring" value="yes" /> </property_group> </instance> </service> according to the /var/svc/log/application-manifest-locator:default.log: <AISC_I 05/16 17:32:25> cmd:/usr/sbin/ifconfig -au | /usr/bin/grep '[0-9]:' | /usr/bin/grep -v 'LOOPBACK' <AISC_I 05/16 17:32:25> Network interface obtained: e1000g0 <AISC_I 05/16 17:32:25> cmd:/usr/sbin/ifconfig e1000g0 <AISC_I 05/16 17:32:25> Client MAC address: 00144f8d0dc0 <AISC_I 05/16 17:32:25> Client IP address: 010196008003 <AISC_I 05/16 17:32:25> cmd:/usr/sbin/prtconf -vp | /usr/bin/grep '^Memory size: ' <AISC_I 05/16 17:32:25> prtconf(1M) reported: 3968 Megabytes <AISC_I 05/16 17:32:25> cmd:/usr/bin/uname -m <AISC_I 05/16 17:32:25> cmd:/usr/bin/uname -p <AISC_I 05/16 17:32:25> Mask: FFFF0000, IP: 0AC40803, Network: 0AC40000 <AISC_I 05/16 17:32:25> Client net: 010196000000 <AISC_I 05/16 17:32:25> Client can supply following criteria <AISC_I 05/16 17:32:25> network=010196000000, 'Client network address' <AISC_I 05/16 17:32:25> mem=3968, 'Physical memory size' <AISC_I 05/16 17:32:25> hostname=x4100-002, 'Client hostname' <AISC_I 05/16 17:32:25> platform=i86pc, 'Client platform' <AISC_I 05/16 17:32:25> mac=00144f8d0dc0, 'Client MAC address' <AISC_I 05/16 17:32:25> ipv4=010196008003, 'Client IP address' <AISC_I 05/16 17:32:25> arch=i86pc, 'Client machine architecture' <AISC_I 05/16 17:32:25> cpu=i386, 'Client processor type' <AISC_I 05/16 17:32:25> Starting to contact AI services provided by /tmp/service_list.581 <AISC_I 05/16 17:32:25> AI service: 10.196.231.30:10101 <AISC_I 05/16 17:32:25> AI service name: default <AISC_I 05/16 17:32:25> HTTP POST cgi-bin/cgi_get_manifest.py?service=10.196.231.30:10101 <AISC_I 05/16 17:32:25> version=2.0&logging=4&postData=network%3D010196000000%3Bmem%3D3968%3Bhostname%3Dx4100-002%3Bplatform%3Di86pc%3Bmac%3D00144f8d0dc0%3Bipv4%3D010196008003%3Barch%3Di86pc%3Bcpu%3Di386&service=default send: 'POST /cgi-bin/cgi_get_manifest.py HTTP/1.1\r\nHost: 10.196.231.30:10101\r\nAccept-Encoding: identity\r\nContent-Length: 195\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept: text/plain,multipart/alternative\r\n\r\n' send: 'version=2.0&logging=4&postData=network%3D010196000000%3Bmem%3D3968%3Bhostname%3Dx4100-002%3Bplatform%3Di86pc%3Bmac%3D00144f8d0dc0%3Bipv4%3D010196008003%3Barch%3Di86pc%3Bcpu%3Di386&service=default' reply: 'HTTP/1.1 200 OK\r\n' header: Date: Mon, 16 May 2011 17:32:26 GMT header: Server: Apache/2.0.63 (Unix) DAV/2 header: MIME-Version: 1.0 header: Transfer-Encoding: chunked header: Content-Type: multipart/mixed; boundary="================0315437434==" <AISC_I 05/16 17:32:26> 10.196.231.30:10101 AI service provided valid manifest <AISC_I 05/16 17:32:26> Wrote manifest: /tmp/ai.xml. <AISC_I 05/16 17:32:26> Wrote profile /system/volatile/profile/profile_sc_manifest.9pQHLZ.xml. <AISC_W 05/16 17:32:26> Messages from AI server while locating manifest and profiles: SC profile locator:Processing profile sc_manifest.xml SC profile locator:Parsed and loaded profile: sc_manifest.xml Just my $0.02 Paul |
_______________________________________________ caiman-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

