Browsed by
Tag: scripting

NXOS – Bash scripting at the CLI

NXOS – Bash scripting at the CLI

Every now and again you see a snippet of complex CLI syntax that gives you pause for thought. Last week I saw the command below in a change procedure. The command was being used to verify baseline BGP neighbor state and re-verify after a policy change. 1 2 3 show ip bgp peer-template eBGP_Peers | egrep default | sed ‘s/default://’ \ | tr -s ‘ |\n’ | tr -s ‘ ‘ ‘\n’ | sed ‘s/^/show ip bgp nei /’ \…

Read More Read More

Using SNMP to switch APC power outlets

Using SNMP to switch APC power outlets

Switchable PDUs In my day job I work as a network test engineer and support a remote lab.  We have  a few devices connected to network switchable PDUs that allow us to remotely reset the power outlet of test devices.  Test switches and routers get ‘borked’ pretty often so these switchable PDUs can come in really handy.