Tuesday, March 31, 2009

JUNOS is cool

Firstly I know Juniper with JUNOS, I learn more 'JUNOS', I don't believe JUNOS based on Unix. Every time I typing command in management CLI, it's like in Unix machine but I think Juniper make CLI like Unix not based on Unix. After I reading a book about JUNOS Software Architecture. 'The JUNOS software is based on the FreBSD Unix operating system' and I try some command like 'match' and 'trim' wow it's cool. 'match' is not strange like grep / include in other platform OS. Try 'trim', it's like text manipulation in programming language.

user@M10> show interfaces terse | ?
Possible completions:
count Count occurrences
display Show additional kinds of information
except Show only text that does not match a pattern
find Search for first occurrence of pattern
hold Hold text without exiting the --More-- prompt
last Display end of output only
match Show only text that matches a pattern
no-more Don't paginate output
request Make system-level requests
resolve Resolve IP addresses
save Save output text to file
trim Trim specified number of columns from start of line

user@M10> show interfaces terse | match Interface
Interface Admin Link Proto Local Remote

user@M10> show interfaces terse | match Interface | trim 0
Interface Admin Link Proto Local Remote

user@M10> show interfaces terse | match Interface | trim 1
nterface Admin Link Proto Local Remote

user@M10> show interfaces terse | match Interface | trim 2
terface Admin Link Proto Local Remote