Skip to content
the broadcast

networking, computing, virtualization, automation

Scripting

Determine Power-CLI Object-Type

2021-05-14
By: ron
On: 2021-05-14
In: Scripting
With: 0 Comments

pass a power-shell object to a function with the correct object-typeRead More →

VMware ESXi: Generate Self-Signed Certificate for FQDN and retrieve SSL-Thumbprint

2021-05-13
By: ron
On: 2021-05-13
In: automation, Scripting
With: 0 Comments

Background VMware wants us to prepopulate an Excel-Sheet with SSH-Keys and SSL-Thumbprints of all ESXi-Hosts, who have been freshly deployed minutes before, which effectivly protects against man-in-the-middle-attacks – maybe a problem in US-datacenters. Beginning with VMware Cloud Foundation Release VCF 4.2 the Cloud-Builder-App verifies the „CN“ of all ESXi-SSL-Certificates, which is in default-setup set to „localhost“ (to be overwritten when connecting to the vCenter so this is seemed to be no issue) – not accepted, CN has to be set to <server-fqdn>. Solution plink.exe „plink.exe“ from the Putty-Suite allows to be called from PowerShell in automated fashion without interactive Password-Prompt. (In May 2021 there seemsRead More →

Visio Diagrams with Python: Resize to fit

2021-04-22
By: ron
On: 2021-04-22
In: Scripting
With: 0 Comments

Resize Page to Fit Contents, Set Zoom to Fit Page When the drawing is ready, the size of the page will be too large or too small – „fit to contents“ might be the solution. Additionally, I prefer the Zoom of the active Window to be set that it shows the whole drawing. ResultRead More →

Visio Diagrams with Python: Colors

2021-04-21
By: admin
On: 2021-04-21
In: Scripting
With: 0 Comments

24 Colors to choose from. „Cells“ contain all „Shape-Format“-Properties Details: https://docs.microsoft.com/en-us/office/client-developer/visio/cells-visio-shapesheet-reference ResultRead More →

Visio Diagrams with Python: Connectors

2021-04-20
By: admin
On: 2021-04-20
In: Scripting
With: 0 Comments

Connect two existing Shapes The API is somehow weird, since it creates an (Shape-)Object, but it doesn’t return it. you’ll have to fetch the last object in the shapes-List ResultRead More →

Visio Diagrams with Python: Stencils

2021-04-19
By: ron
On: 2021-04-19
In: Scripting
With: 0 Comments

Stencils and Stencil-Files Stencils are stored in „VSSX“-Files Page-Object Add a FTP-Server to the page ResultRead More →

Visio Diagrams with Python using COM

2021-04-18
By: ron
On: 2021-04-18
In: Scripting
With: 0 Comments

Visualize Data from Python in Visio I needed to illustrate some data discovered by a python script in Microsoft Visio. As a starting-point i found two sources of infomation in the Internet: (1) Python => COM => MS Excel How to access a Windows COM-Application from Python: https://pbpython.com/windows-com.html MS Excel not Visio but 50% of the information needed (2) PowerShell => COM => MS Visio How to access Microsoft Visio using the COM-Interface https://www.powershellstation.com/2016/01/20/powershell-and-visio-1 PowerShell the other 50% needed. Result: „Python => COM => MS Visio“ Putting both pieces together, will allow a Python-Script to control MS Visio. (3) MS Visio „Object Model“ Without theRead More →

Microsoft Azure – Hyperthreading and Nested Virtualization

2020-11-24
By: admin
On: 2020-11-24
In: Azure, Cloud, Scripting
With: 0 Comments

Go to https://docs.microsoft.com/en-us/azure/virtual-machines/acu and look for: ***Hyper-threaded and capable of running nested virtualization The following „script“ pulls the SKUs out of the table: wget -O – –no-check-certificate https://docs.microsoft.com/en-us/azure/virtual-machines/acu | egrep -B2 „\*\*\*“ | egrep „data-linktype“ | sed -E „s/^.+relative-path..([^\<]+).+$/SKU: \1/g“ C:\RH>echo „Hyper-threaded and capable of running nested virtualization“ && wget -q -O – –no-check-certificate https://docs.microsoft.com/en-us/azure/virtual-machines/acu | egrep -B2 „\*\*\*“ | egrep „data-linktype“ | sed -E „s/^.+relative-path..([^\<]+).+$/SKU: \1/g““Hyper-threaded and capable of running nested virtualization“SKU: D_v3SKU: Ds_v3SKU: Dv4SKU: Dsv4SKU: Ddv4SKU: Ddsv4SKU: E_v3SKU: Es_v3SKU: Ev4SKU: Esv4SKU: Edv4SKU: Edsv4SKU: F2s_v2 – F72s_v2SKU: M Next Step? Finding one with enough memory for an acceptable price.Read More →

Provision a Cisco CSR1000V-Router as Virtual-Box-VM with sliptreamed Configuration, wait until it’s up and open an Putty-SSH-Connection

2018-11-15
By: ron
On: 2018-11-15
In: automation, Scripting
With: 0 Comments

The existing Windows-Comman-Script has been enhanced so it now waits until the Router-VM is up got an IP-Address assigned using DHCP. For Demonstration-Purposes an SSH-Connection will be established. The public-key of my laptop-ssh-client is part of the slipstreamed Router-Configuration. Deploy a Router-VM with hostname „CSY“. Establish an SSH-Connection to the discovered Router-IP: Have a look to the startup-config used: This is the „CMD“-Script used:Read More →

WaitForCDPNeighbor.py enhanced: Wait for CDP Hostname with usable connected IP-Address.

2018-11-14
By: ron
On: 2018-11-14
In: automation, Scripting
With: 0 Comments

The following version adds a „-c“ option: „Connected IP-Address“-Check. the script exits, when the Router-VM is up and running and has an usable IP-Address The Script still checks all CDP-Packets received at the specified Interface: If the Sender has the correct „Hostname“ it reads the CDP-Management-IP-Address announced. This IP-Address has to be within the IP-Range of any connected IP-Network at the specified Interface. So it’ll be possible to establish a SSH-Session to the router-VM.Read More →

Beitrags-Navigation

1 2 Nächste

Kategorien

  • AI
  • automation
  • awayfromevernote
  • AWS
  • Azure
  • Certification
  • client
  • Cloud
  • Development
  • homelab
  • linux
  • pub
  • Scripting
  • stupid defaults
  • Uncategorized
  • wan
  • Windows

Neueste Beiträge

  • Cisco UCS – set SSH idle-timeout
  • IPv4 Documentation Address-Blocks
  • Refresh ENVironment Variables
  • Windows Client Setup: Disable Teredo/ISATAP
  • Cloud-Init for VMs in private and public Clouds

Schlagwörter

AI Ansible Automation AWS Azure bestpractice chrome Cisco Cloud Code COM Controller cot CSR1000v Ethernet Firefox hsts Hyperconverged KVM Lab Linux Monitoring MTU NAPALM Nested nexus nxos PowerShell Proactive productivity PuTTY Python QoS Scapy Scripting Security Terraform todo UCSD Virtualization Visio VMware WAN Windows Wordpress

Impressum

Impressum

Designed using Dispatch. Powered by WordPress.