Here is a quick memo on the usage of HTTPie to connect to VMware products to explore or use the API. Install (Ubuntu/Debian) 1sudo apt install -qy jq 2sudo pip3 install -U httpie VMware vCenter 1# login 2http POST https://vcsa.vlab.lcl/rest/com/vmware/cis/session --verify=no --session=vcsa -a …
Read MoreSource: vim.wikia.com Show all tabs: 1/\t Show trailing whitespace: 1/\s+$ Show trailing whitespace only after some text (ignores blank lines): 1/\S\zs\s+$ Show spaces before a tab: 1/ +\ze\t
Read MoreThe systemd daemon allows to manage custom services and run a script as a daemon service if it needs to be executed continuously (For instance: a REST API server). Create the unit file Create a unit file with the extension .service on the following path: /etc/systemd/system (For instance: …
Read MoreIf you want to periodically perform a task (e.g. sending Emails, backing up database, doing regular maintenance, etc.) at specified times and dates on a Linux or Unix system, you will probably need to use a Cron. The configuration file is quite simple but it is possible to have some doubt about the date/time order to …
Read MoreOn some editor's Linux based appliance(s), there is not telnet binary installed. To test TCP netwotk flows, it's possible to use python's socket module with a short script: 1#!/usr/bin/python 2 3import socket 4import sys 5 6if len(sys.argv) != 3: 7 print("usage: telnet.py IPADDRESS PORT") 8 exit(-1) 9 …
Read MoreIn order to fully configure a virtual machine after a clone of OVF deployment, it may be useful to use settings from virtualization layer in the guest OS: for example to run Guest OS customization as already discussed in this blog. Today, we will focus on OVF properties. Presentation of OVF properties If you deploy …
Read MoreA quick tip to easily generate random password from a bash command line. Add the following lines to your bashrc file: 1alias genalphanumpasswd='tr -cd '''[:alnum:]''' < /dev/urandom | fold -w30 | head -n1' 2alias genpasswd='tr -cd '''[:graph:]''' < …
Read More