User can use the /etc/init.d/picos status command at the Linux shell, to establish the current PicOS mode--L2/L3 or OVS. The following output shows that the switch is running in PicOS L2/L3 mode:
admin@LEAF-A$/etc/init.d/picos status xorp_rtrmgr is running. ovsdb-server is not running ... failed! ovs-vswitchd is not running ... failed!
In the L2/L3 mode, the xorp_rtrmgr process is running while the ovsdb-server and ovs-vswitchd processes are not running.
If the L2/L3 mode is active, user can use the cli command at the Linux shell to reach the PicOS L2/L3 CLI (command-line interface).
admin@LEAF-A$cli Synchronizing configuration...OK. Pica8 PicOS Version 2.6 Welcome to PicOS L2/L3 on LEAF-A admin@LEAF-A>
If the L2/L3 mode is not active and user tries to use the cli command, the following message will be displayed:
admin@LEAF-A$cli The PicOS CLI can only be launched in L2/L3 Mode. Please activate the L2/L3 mode. admin@LEAF-A$
The following output shows that the switch is running in PicOS OVS mode:
admin@LEAF-A$/etc/init.d/picos status xorp_rtrmgr is not running ... failed! ovsdb-server is running. ovs-vswitchd is running.
In the OVS mode, the ovsdb-server and ovs-vswitchd processes are running while the xorp_rtrmgr process is not running.
If the picos_start variable has a blank value (picos_start= ) in the PicOS configuration file (picos_start.conf), the PicOS switch runs Linux, but neither L2/L3 nor OVS mode is active.
admin@LEAF-A$/etc/init.d/picos status xorp_rtrmgr is not running ... failed! ovsdb-server is not running ... failed! ovs-vswitchd is not running ... failed!
In this case, xorp_rtrmgr, ovsdb-server, and ovs-vswitchd are not running.