Skip to content

Instantly share code, notes, and snippets.

@lewiryan
lewiryan / barracudalblogin-api.ps1
Created September 9, 2018 16:55
Barracuda Load Balancer API Login/Server Maintenance
# Barracuda Load Balancer Powershell Script
# Minimum version of Powershell is 6.0.4 - Can download stable releases @ https://github.com/PowerShell/PowerShell
# Puts servers in Maintenance, Disable or Enable status
# Put the URI API of the LB (example: "https://192.168.1.5/restapi/v2")
$uri = ""
# Put the group name, usually its "default" unless you have something different
$groupname = "default"
# Put the service name you would like to modify, you can find this in the LB going to BASIC->Services
$servicename = ""
# Put the server you would like to modify, you can find the names of the servers under BASIC->Services
@lewiryan
lewiryan / FMC-Graylog-Extractor.json
Created August 29, 2018 02:01
Allow Graylog to understand Cisco FMC syslogs
{
"extractors": [
{
"title": "FMC - Default Fields",
"extractor_type": "grok",
"converters": [],
"order": 15,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
@lewiryan
lewiryan / ASA-Site-To-Site-DHCP.virl
Created April 9, 2017 14:23
VIRL ASA VPN with DHCP Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd">
<extensions>
<entry key="management_network" type="String">flat</entry>
<entry key="AutoNetkit.infrastructure_only" type="Boolean">true</entry>
</extensions>
<node name="ASA-1" type="SIMPLE" subtype="ASAv" location="207,154">
<extensions>
<entry key="AutoNetkit.mgmt_ip" type="string"></entry>
<entry key="config" type="String">!