User can use the /etc/init.d/picos status command sudo picos-status command at the Linux shell, to establish check the current PicOS mode--L2/L3 or OVS. The following output shows that the switch is running in PicOS L2/L3 mode:
Code Block |
---|
admin@LEAF-A$/etc/init.d/picos status xorp_rtrmgr is running. ovsdb-server is not running ... failed! ovs-vswitchd is not running ... failed!admin@Xorplus:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is Xorplus. ********************************************************************** PICOS is Running! Xorplus is Running! OVS is NOT Running! ********************************************************************** |
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).
Code Block |
---|
admin@LEAF-A$cliadmin@Xorplus$cli Synchronizing configuration...OK. Pica8 PicOSPICOS Version 23.1.60 Welcome to PicOS L2/L3PICOS on LEAF-A admin@LEAF-A>Xorplus admin@Xorplus> |
If the L2/L3 mode is not active and user tries to use the cli command, the following message will be displayed:
...
The following output shows that the switch is running in PicOS OVS mode:
Code Block |
---|
admin@LEAF-A$/etc/init.d/picos status xorp_rtrmgr is not running ... failed! ovsdb-server is running. ovs-vswitchd is running.admin@Xorplus:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is OVS. ********************************************************************** PICOS is Running! Xorplus is NOT Running! OVS 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.
Code Block |
---|
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!admin@Xorplus:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is OVS. ********************************************************************** PICOS is NOT Running! Xorplus is NOT Running! OVS is NOT Running! ********************************************************************** |
In this case, xorp_rtrmgr, ovsdb-server, and ovs-vswitchd are not running.