[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Using Comments in JUNOS Commands

File with Comments

#Command 1: Show the router version
show version
#Command 2: Show all router interfaces
show interfaces terse

Copy and Paste Contents of the File into the CLI

user@host> #Command 1: Show the router version
user@host> show version
Hostname: myhost
Model: m5
JUNOS 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 terse
Interface Admin Link Proto Local Remote
fe-0/0/0 up up
fe-0/0/1 up down
fe-0/0/2 up down
mo-0/1/0 up
mo-0/1/0.16383 up up inet 10.0.0.1 --> 10.0.0.17
so-0/2/0 up up
so-0/2/1 up up
dsc up up
fxp0 up up
fxp0.0 up up inet 192.168.70.62/21
fxp1 up up
fxp1.0 up up tnp 4
gre up up
ipip up up
lo0 up up
lo0.0 up up inet 127.0.0.1 --> 0/0
lo0.16385 up up inet

[Contents] [Prev] [Next] [Index] [Report an Error]