Navigation
Related Documentation
- EX, J, M, MX, PTX, T Series
- Using the Junos OS CLI Comment Character # for Operational Mode Commands
Example: Using Comments in Junos OS Operational Mode Commands
The following example shows how to use comments in a file:
#Command 1: Show the router versionshow version#Command 2: Show all router interfacesshow interfaces terse
The following example shows how to copy and paste contents of a file into the CLI:
user@host> #Command 1: Show the router version user@host> show versionHostname: myhostModel: m5Junos Base OS boot [6.4-20040511.0]Junos Base OS Software Suite [6.4-20040511.0]Junos Kernel Software Suite [6.4-20040511.0]Junos Packet Forwarding Engine Support (M5/M10) [6.4-20040511.0] Junos Routing Software Suite [6.4-20040511.0] Junos Online Documentation [6.4-20040511.0] Junos Crypto Software Suite [6.4-20040511.0]user@host> # Command 2: Show all router interfaces user@host> show interfaces terseInterface Admin Link Proto Local Remotefe-0/0/0 up upfe-0/0/1 up downfe-0/0/2 up downmo-0/1/0 upmo-0/1/0.16383 up up inet 10.0.0.1 --> 10.0.0.17so-0/2/0 up upso-0/2/1 up updsc up upfxp0 up upfxp0.0 up up inet 192.168.70.62/21fxp1 up upfxp1.0 up up tnp 4gre up upipip up uplo0 up uplo0.0 up up inet 127.0.0.1 --> 0/0lo0.16385 up up inet
Related Documentation
- EX, J, M, MX, PTX, T Series
- Using the Junos OS CLI Comment Character # for Operational Mode Commands
Published: 2013-01-15
Related Documentation
- EX, J, M, MX, PTX, T Series
- Using the Junos OS CLI Comment Character # for Operational Mode Commands