This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* * | |
* Promise-based sample fetching node status from the 128T REST API. * | |
* * | |
*******************************************************************************/ | |
const https = require('https') | |
const host128t = 'my.128t.host.com' // Address or FQDN of 128T host | |
const tokenString = 'myLongTokenString' // API JWT | |
const routerName = 'my-router-name' // Router name to retrieve node status for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* * | |
* Promise-based sample fetching active alarms from the 128T REST API. * | |
* * | |
*******************************************************************************/ | |
const https = require('https') | |
const host128t = 'my.128t.host.com' // Address or FQDN of 128T host | |
const tokenString = 'myLongTokenString' // API JWT | |
const routerName = 'my-router-name' // Router name to retrieve alarms for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* * | |
* Promise-based sample fetching a JWT from the 128T REST API. * | |
* * | |
*******************************************************************************/ | |
const https = require('https') | |
const host128t = 'my.128t.host.com' // Address or FQDN of 128T host | |
const apiUser = 'admin' // Authorized API user | |
const apiSecret = 'mySup3rS3cr3t' // API user secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/******************************************************************************* | |
* * | |
* Eventsource Module * | |
* * | |
*******************************************************************************/ | |
var parse = require('url').parse | |
var events = require('events') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
################################################################### | |
# # | |
# This plugin init script is used to network containers built # | |
# with Docker. # | |
# # | |
# It expects a container to have been created in advance # | |
# (e.g. with '--network="none"'). The name of the container # | |
# ('--name') is expected to be passed in as the # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>128T Template Builder</title> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet"> | |
<link href="https://cdn.jsdelivr.net/npm/vuetify/dist/vuetify.min.css" rel="stylesheet"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vuetify/dist/vuetify.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
######################################################## | |
# # | |
# This script attaches a network interface a network # | |
# bridge. Output is logged to system journal, and can # | |
# be viewed with the following: # | |
# # | |
# $ journalctl -t kni-attach # | |
# # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
"use strict"; | |
/* | |
Grabs text file containing registered OUI listing, along with all entries from | |
ARP caches available to a 128T host. It then records MAC addresses and vendors | |
to a csv file. | |
*/ | |
const fs = require('fs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict'; | |
/* | |
Parses tenant-devices.json file. For each tenant and client named in the array | |
in the form of: | |
[ | |
"tenantName": "my-tenant", | |
"clients": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p '128T host address (press enter for localhost): ' ADDRESS | |
if [[ -z "$ADDRESS" ]]; then | |
ADDRESS="127.0.0.1" | |
fi | |
read -p 'Username: ' USER | |
read -s -p 'Password (hidden): ' PASS | |
echo |
NewerOlder