Running ybcli in script mode

You can run the ybcli directly from the command line in script mode. In script mode, you can run multiple commands at once, separated by commas. This approach is faster than running commands individually in succession.

For example:

[ybdadmin@yb100-mgr0 ~]$ ybcli blade health 1, health fan 1

Bay:  1 Status: ok Power: on FRU: C4-0005-01 R01 Serial: TAA160802002DA CPU: Booted (YBOS)

Fan: 1 Status: ok
[ybdadmin@yb100-mgr0 ~]$ ybcli blade status all, blade health all, clear

Blade Bay:  1 -> ONLINE  UUID: 00000000-0000-0000-0000-38B8EBD002DA - Version: YBOS-1.0.101-DEBUG 
		 BIOS: v05.04.21.0038.00.009 - CPU: 1% - Memory total/free: 65522928/2514836 KiB
		 Address: 192.168.10.10 - Uptime: 0 day(s), 19:55:05 - Worker: Running

Blade Bay:  2 -> ONLINE  UUID: 00000000-0000-0000-0000-38B8EBD00A0A - Version: YBOS-1.0.101-DEBUG 
		 BIOS: v05.04.21.0038.00.009 - CPU: 1% - Memory total/free: 65522928/2516592 KiB
		 Address: 192.168.10.11 - Uptime: 0 day(s), 19:55:05 - Worker: Running

...
You can send the output to a file or otherwise manipulate the output by using standard Linux commands. For example, send the output of the health all command to a text file:
[ybdadmin@yb100-mgr0 ~]$ ybcli health all > healthall.txt
In script mode, ybcli takes the optional -y parameter, which answers yes to all questions that are posed interactively when commands are run.