Skip to content

Version 0.1.0 is a first version, for trial. See what is not proven →

bogolang
FR

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.

Terminal
bogo run --replay saved reach_hosts.bogo
bogo test reach_hosts.bogo
01

reach_hosts

Pings four hosts at once with ping_all, traces the path to one and scans a small network.

Read the program
02

device_table

Reads show version from each device of an inventory, four at a time, and prints model, version and uptime.

Read the program
03

backup_diff

Takes a fresh backup of each device and shows what changed since the earlier one, section by section.

Read the program
04

change_vlan

Adds a VLAN and allows it on the uplink trunk, in a change block with its rollback; run with --dry.

Read the program
05

audit_rules

Checks five house rules against saved configurations and prints the checks that failed.

Read the program
06

address_plan

Gives each new site the next free subnet and a link to the hub, then prints the space still free.

Read the program
07

acl_test

Asks an access list whether flows would pass, with the line that decided; it never guesses.

Read the program
08

snapshot_compare

Takes snapshots before a maintenance and shows what moved after it.

Read the program
09

radio_link

Plans a microwave hop: free-space loss, Fresnel zone, fade margin, rain and availability.

Read the program
10

report_chart

Turns a day of uplink readings into a table, an Excel file, a chart and an HTML report.

Read the program
11

meraki_inventory

Reads the networks and devices of a Meraki organisation and lists firmware that is not the one wanted.

Read the program
12

watch_alert

Watches the loss to two hosts, then raises and clears an alert with alert when.

Read the program
13

syslog_listener

Listens for syslog from two devices with on syslog, counts the events and prints the serious ones.

Read the program