In this recipe, we'll create a Stylesheet Language Alternative Syntax (SLAX) op script, show-int.slax, in order to simulate the behavior of the show interfaces JUNOS CLI command. We'll do this by executing the normal RPC associated with the show interface command and pick out the information that we need.
Making remote procedure calls
Getting ready
In order to complete this recipe, you'll need access to a JUNOS router running with a basic configuration. If available, a simple VM-based Juniper Olive or virtual Route Reflector (vRR) is perfectly adequate for the level of complexity here.