Will JSON work for you instead? Here's
, for example.
#
run script cli2json.py "show switch"
[{"CLIoutput": "\nSysName: beer_for_breakfast\nSysLocation: RDU Services Lab Row L\nSysContact: Drew C.\nSystem MAC: 00:04:96:8B:C2:C7\nSystem Type: X460-48t\n\nSysHealth check: Enabled (Normal)\nRecovery Mode: All\nSystem Watchdog: Enabled\n\nCurrent Time: Thu Nov 12 10:35:17 2015\nTimezone: [Auto DST Enabled] GMT Offset: -300 minutes, name is EST.\n DST of 60 minutes is currently not in effect, name is not set.\n DST begins every second Sunday March at 2:00\n DST ends every first Sunday November at 2:00\n\nBoot Time: Mon Oct 19 09:58:59 2015\nBoot Count: 15\nNext Reboot: None scheduled\nSystem UpTime: 24 days 1 hour 36 minutes 17 seconds \n\nCurrent State: OPERATIONAL \nImage Selected: primary \nImage Booted: primary \nPrimary ver: 15.7.2.9 \nSecondary ver: 15.4.2.8 \n\nConfig Selected: primary.cfg \nConfig Booted: primary.cfg \n\nprimary.cfg Created by ExtremeXOS version 15.7.2.9\n 424772 bytes saved on Mon Oct 19 14:04:32 2015\n"}, {"message": "\nSysName: beer_for_breakfast\nSysLocation: RDU Services Lab Row L\nSysContact: Drew C.\nSystem MAC: 00:04:96:8B:C2:C7\nSystem Type: X460-48t\n\nSysHealth check: Enabled (Normal)\nRecovery Mode: All\nSystem Watchdog: Enabled\n\nCurrent Time: Thu Nov 12 10:35:17 2015\nTimezone: [Auto DST Enabled] GMT Offset: -300 minutes, name is EST.\n DST of 60 minutes is currently not in effect, name is not set.\n DST begins every second Sunday March at 2:00\n DST ends every first Sunday November at 2:00\n\nBoot Time: Mon Oct 19 09:58:59 2015\nBoot Count: 15\nNext Reboot: None scheduled\nSystem UpTime: 24 days 1 hour 36 minutes 17 seconds \n\nCurrent State: OPERATIONAL \nImage Selected: primary \nImage Booted: primary \nPrimary ver: 15.7.2.9 \nSecondary ver: 15.4.2.8 \n", "status": "SUCCESS"}, {"status": "SUCCESS", "useConfig": {"msmAName": "primary.cfg", "msmBName": null, "name": "primary", "switchPortInitMode": 0}}, {"bootConfig": {"msmAName": "primary.cfg", "msmBName": null}, "status": "SUCCESS"}, {"configFile": {"date": "Mon Oct 19 14:04:32 2015", "name": "primary", "platform": "X460-48t", "size": 424772, "version": "15.7.2.9"}, "status": "SUCCESS"}]This cli2json script is built into EXOS 15.7+. It may be present on 15.6 too.