21 Feb 2012 22:23
remote execute hook prior to evaluating params
Brian J. Murrell <brian <at> interlinx.bc.ca>
2012-02-21 21:23:28 GMT
2012-02-21 21:23:28 GMT
Currently I have in my params: CGCOIF=$(ssh root <at> gw "/sbin/uci -p /var/state get network.wan0.ifname") IGSIF=$(ssh root <at> gw "/sbin/uci -p /var/state get network.wan1.ifname") PPPEIF=$(ssh root <at> gw "/sbin/uci -p /var/state get network.pppoe_ether.device") CGCO_GATEWAY=$(ssh root <at> gw "/sbin/uci -p /var/state get network.wan0.gateway") IGS_GATEWAY=$(ssh root <at> gw "/sbin/uci -p /var/state get network.wan1.gateway") IGS_ADDRESS=$(ssh root <at> gw "/sbin/uci -p /var/state get network.wan1.ipaddr") Which is a whole lotta round trips all requiring their own crypto authentication, etc. I wonder if there is an available hook that I could use to go fetch all of that in a single round-trip (i.e. and store it locally and then source that local file for the values). I suppose if params is just sourced and executed sh script I could just do the single execution and use the result. I'm not sure that it is though. Thoughts? b.
------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!(Continue reading)
RSS Feed