<div dir="ltr">Hello All,<div><br></div><div>I've got a device that I'm building a custom command table for and trying to grep out a ssh key that I don't want displayed in the configuration. When running the command from cli on the device, the syntax looks like:</div>
<div><br></div><div>show configuration | grep -v "ssh "</div><div><br></div><div style>and the cli command does what it's supposed to.</div><div style><br></div><div>How do I incorporate the start/end quotes in the command table? I've tried a couple of variations and the script errors out. </div>
<div><br></div><div><div>@commandtable = (</div><div> {'no timestamps' => 'DoNothing' },</div><div> {'show configuration | grep -v "ssh "' => 'WriteTerm' },</div>
<div>);<br></div></div><div><br></div><div style>Thanks in advance!</div></div>