<&contentdata section_name = 'tools' page_name = 'run_command' author = 'mrmt32' type = 'page' >

Run Command

Using this tool you can run any command on the router and see the result.

<&javascript delayed='true'> $("#runCommandForm").submit(function() { $.post(InterfaceLocation + "?action=command", $("#runCommandForm").serialize(), function(jsonResponse) { if (jsonResponse.isError) { alert("Error running command: " + jsonResponse.ErrorString); window.location.hash = "#tools"; return; } ParseContentData(window.ContentData.blocks.run_command_result_block, jsonResponse, function (output) { $(".settingsPage").html(output); }); }, "json"); ParseContentData(window.ContentData.blocks.loading_text_block, {}, function (output) { $(".settingsPage").html(output); }); return false; }); <&/javascript>
<&/contentdata> <&contentdata block_name = 'run_command_result_block' author = 'mrmt32' type = 'block' >

Command Result

		<$ReturnData>
	

<&/contentdata>