This chapter describes the different ways to configure PicOS and demonstrates the CLI configuration.

There are 2 CLI's used to configure PicOS:

The Linux CLI is a standard debian based bash shell. 

A good Bash tutorial can be found at this address:
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/

PicOS added some commands to the standard Bash shell:

Version - This is to provide the PicOS version running on the switch

admin@XorPlus$version
Copyright (C) 2009-2014 Pica8, Inc.
===================================
Hardware Model                : P-5101
Linux System Version/Revision : 2.5/17907
Linux System Released Date    : 10/14/2014
L2/L3 Version/Revision        : 2.5/17907
L2/L3 Released Date           : 10/14/2014
OVS/OF Version/Revision       : 2.5/17907
OVS/OF Released Date          : 10/14/2014

cli - command to move to the PicOS command or launch PicOS CLI commands from the Linux shell.

 

admin@XorPlus$cli
Synchronizing configuration...OK.
Pica8 PicOS Version 2.5
Welcome to PicOS L2/L3 on XorPlus
admin@XorPlus> 

In the above example, the cli command is used to move to the PicOS CLI.

 

admin@XorPlus$cli -c "show version" 
Synchronizing configuration...OK.
Pica8 PicOS Version 2.5
Welcome to PicOS L2/L3 on XorPlus
admin@XorPlus> 
Execute command: show version
.
Copyright (C) 2009-2014 Pica8, Inc.
===================================
Base ethernet MAC Address     : 48:6e:73:01:00:01
Hardware Model                : P-5101
Linux System Version/Revision : 2.5/17907
Linux System Released Date    : 10/14/2014
L2/L3 Version/Revision        : 2.5/17907
L2/L3 Released Date           : 10/14/2014

In the command above, the cli command is used to launch commands of the PicOS CLI from the Linux shell.