Examples
Thirteen programs, one for each kind of work. Each has its saved answers, so it runs on any PC with no device and no network.
How to run one
Two commands, no network
The first runs the program on its saved answers. The second runs its tests. The examples are also in the folder examples of an installed Bogolang.
bogo run --replay saved reach_hosts.bogo
bogo test reach_hosts.bogo
reach_hosts
Pings four hosts at once with ping_all, traces the path to one and scans a small network.
Read the program 02device_table
Reads show version from each device of an inventory, four at a time, and prints model, version and uptime.
Read the program 03backup_diff
Takes a fresh backup of each device and shows what changed since the earlier one, section by section.
Read the program 04change_vlan
Adds a VLAN and allows it on the uplink trunk, in a change block with its rollback; run with --dry.
Read the program 05audit_rules
Checks five house rules against saved configurations and prints the checks that failed.
Read the program 06address_plan
Gives each new site the next free subnet and a link to the hub, then prints the space still free.
Read the program 07acl_test
Asks an access list whether flows would pass, with the line that decided; it never guesses.
Read the program 08snapshot_compare
Takes snapshots before a maintenance and shows what moved after it.
Read the program 09radio_link
Plans a microwave hop: free-space loss, Fresnel zone, fade margin, rain and availability.
Read the program 10report_chart
Turns a day of uplink readings into a table, an Excel file, a chart and an HTML report.
Read the program 11meraki_inventory
Reads the networks and devices of a Meraki organisation and lists firmware that is not the one wanted.
Read the program 12watch_alert
Watches the loss to two hosts, then raises and clears an alert with alert when.
Read the program 13syslog_listener
Listens for syslog from two devices with on syslog, counts the events and prints the serious ones.
Read the program