Day One Tips
Highlighted
Day One Tips

TIP: using freebsd cli with junos cli simultaneously

[ Edited ]
‎01-30-2011 03:41 AM

As you know, JunOS is build on top f the FreeBSD kernel and natively it is Unix-like OS with all of it's advantages.

Sometimes it is very handy to use native cli (bash) for maintenance purpose. You need be logged in as root user.

Your CLI should look like this: root@Test%

"%" symbol indicates that you is in "native shell"

If you want to configure device you should start junos cli with "cli" command.

Your CLI should look like this: root@Test>

">" symbol indicates that you is in "junos shell"

Let's assume you need to use native cli (Unix-cli) again. Certainly, you can open simultaneous login to devices as root user, but it is very handy to use native cli and junos cli simultaneously in one window. For this purpose you need to press Ctrl+Z while been in junos cli. Your "junos cli" process will be suspended and you will be bringed to "native cli":

 

root@Test% cli
root@Test>
(Ctrl+z pressed)  
Suspended
root@Test%

 

To bring "junos cli" back you can use "fg" command:

 

root@Test% fg
cli
root@Test> 

 

That's all.

1 REPLY 1
Highlighted
Day One Tips

Re: TIP: using freebsd cli with junos cli simultaneously

‎03-29-2011 08:29 PM

Yea, doing that would come as handy at occasions.