govmomi
netmiko
govmomi | netmiko | |
---|---|---|
17 | 23 | |
2,254 | 3,435 | |
0.9% | - | |
9.0 | 7.2 | |
5 days ago | 8 days ago | |
Go | Python | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
govmomi
-
go install from github via https possible?
I'm trying to install a VMware go module from github called govmoni (https://github.com/vmware/govmomi). The instructions on the project's page on github say use "go get", but "get" is now a retired subcommand. If I try to use "go install" in place of "go get", then I get asked for https username & password for github. github no longer allows usernames and passwords for https (https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls). I swear there should be a special place in hell for people that make changes incompatible with google search results. I can git clone and so on via https without a problem so I'm not clear why go has a problem.
- govc, CLI for vCenter. Script to log in without showing or saving password.
- Scheduling power down of all hosts & vCenter in home lab.
-
Terraform Vsphere Help
A quick search led me to this issue: https://github.com/vmware/govmomi/issues/1345
-
cloud-init struggle
export METADATA=$(gzip -c9 /dev/null || base64; }) \ USERDATA=$(gzip -c9 /dev/null || base64; }) # set govc env variables export GOVC_INSECURE=1 export GOVC_URL=vcenter.company.com export [email protected] export GOVC_PASSWORD='MY-PASSWORD' govc vm.change -vm "${YOUR_TEST_VM}" \ -e guestinfo.metadata="${METADATA}" \ -e guestinfo.metadata.encoding="gzip+base64" \ -e guestinfo.userdata="${USERDATA}" \ -e guestinfo.userdata.encoding="gzip+base64" Download govc: https://github.com/vmware/govmomi/releases Doku govc: https://github.com/vmware/govmomi/blob/master/govc/USAGE.md
-
Reboot VMs With a Script
There are command line utilities for some tasks in vmware, like govc. That will enable you to do simple enough scripts to do things like that.
-
Can't seem to get TIG stack working, what's the alternate ?
In general monitoring, not specifically for vmware. Icinga2 have a module for vmware monitoring too, and it can be integrated with influxdb and grafana for extra visualization. I've used also govc in scripts to get some particular VM metrics to see them with influx and grafana
-
Programmatically get list of VM names and IP's from a standalone ESXi server?
VMware itself offers a lot of bindings for their APIs; you can consult their Github org and their list of public repositories for the open source ones, for example for Go or Python.
-
Get File From Non-Networked VM
If vmtools is installed and running, use govc to copy the file out directly. Don’t recall the precise subcommand - probably guest.something
-
get vmdk file info via cli?
I'm using govc (Github) for these tasks.
netmiko
- Automate Your Network
- NETMIKO - Python - How to Interrupt or Cancel commands
-
Can't get pass the login banner using Netmiko?
Curiously I've been googling this and not much out there. This post https://github.com/ktbyers/netmiko/issues/988 has the same problem but I don't think it got resolved.
-
SSH-Script to restart multiple accesspoints
If you can ssh into them, I'd try netmiko: https://github.com/ktbyers/netmiko . It's an ssh library specifically for network devices, and deals with some common issue you might encounter when using pure ssh.
-
Long shot but I'll give Reddit gold to anybody with a working answer: How do I create a VLAN on a Ruckus/Brocade ICX 6450 using snmpset?
You really should use something like https://github.com/ktbyers/netmiko and not be poking this stuff with SNMP.
-
CLI SSH works, but Netmiko/Paramiko results in "Authentication type (password) not permitted" error
Looks like that should already be incorporated in to Netmiko's Powerconnect class: https://github.com/ktbyers/netmiko/issues/1782
-
What's the most well-written, cleanest open source python code you've ever seen?
A good chunk of OpenStack is written in Python. The repositories have some very well-written code. F5 Networks has a well-maintained repository for their SDK. And, Kirk Byers wrote Netmiko, a fantastic library for working with network gear.
-
Programmatically get list of VM names and IP's from a standalone ESXi server?
You could enable SSH on the esxi box and use Netmiko(https://github.com/ktbyers/netmiko) from Python to send VMware commands over the CLI. You can do most everything from the CLI and you can parse output as needed
-
Python's Netmiko template
Netmiko Source Code : Netmiko Github API reference (must check for more functionality) : Netmiko Doc
-
I have €3,000 budget to go from SDR to Sales Engineer. How would you do it?
Python (open source): Reading other people's code is another way to launch your Python knowledge forward exponentially. As I was extremely interested in network automation, I used Netmiko heavily. And just as luck would have it, Kirk Byers (the author of Netmiko) was on the Network To Code Slack workspace too. I examined the Netmiko code base frequently and would then ask him the how's and why's of what I saw. His answers gave me insights that I hadn't gotten from anywhere else.
What are some alternatives?
pyvmomi - VMware vSphere API Python Bindings
netpalm - ReST based network device broker
cluster-template - A template for deploying a Kubernetes cluster with k3s or Talos
ttp - Template Text Parser
homelab-packer - Create VM templates for vSphere with Packer
Paramiko - The leading native Python SSHv2 protocol library.
sexilog - SexiLog is a specific ELK virtual appliance designed for vSphere environment
ntc-templates - TextFSM templates for parsing show commands of network devices
vsphere-influxdb-go - Collect VMware vSphere, vCenter and ESXi performance metrics and send them to InfluxDB
Oxidized - Oxidized is a network device configuration backup tool. It's a RANCID replacement!
homelab-infra - Homelab infra management
textfsm - Python module for parsing semi-structured text into python tables.