Ping something and save to textfile and get date and time in powershell

ping.exe -t 127.0.0.1 |Foreach{“{0} – {1}” -f (Get-Date),$_} >> ping.txt

Advertisements

Upload file to datastore, certificate error.

To fix this

  1. Browse to VirtualCenter
  2. Down at the right bottom on page press Download trusted root CA
  3. Unpack the zip file
  4. Open Certmgr.msc
  5. Go to Trusted Root Certification Authorities
  6. Rightclick on Certificates and All Taska/ Import
  7. Import the certificates that you unzipped before
  8. Restart Browser

Done!

 

System Management Software 1 SEL Fullness on ESXi host.

Unable to reset sensors, unable to delete log from Vsphere Client/Web

You get these messages:

System Management  Software 1 SEL Fullness

Status of other hardware objects

Markering_632

Markering_631

Solution for me was:

This is NO downtime, but it will disconnect from VirtualCenter for a short period of time. But it will reconnect.

ssh to esxi host

  1. localcli hardware ipmi sel clear
  2. /etc/init.d/sfcbd-watchdog restart
  3. services.sh restart

Referesh the Webclient.

All erros are gone.

Upgrade 5.0.0 to 5.5 from CLI.

When you have upgraded to 6.5 and did not notice that you had a 5.0.0. server in the Virtual Center. You can upgrade the 5.0.0 host from CLI with some simple commands.

Download the offline Bundle for 5.5 zip file
Download the zip file to ESXi host with your tool. (Vsphere client, Winscp or scp)

1.
Find out if there are any active VM:s

Command: esxcli vm process list
Shutdown if there is any

2.
Put the host in Maintinace Mode
Command: vim-cmd hostsvc/maintenance_mode_enter

3.
Upgrade the ESXi 5.0.0 host with
Command: esxcli software sources profile list -d /vmfs/volumes/DATASTORE01/ESXi550-201512001.zip
Command: esxcli software profile update -d /vmfs/volumes/DATASTORE01/ESXi550-201512001.zip -p ESXi5.5.0″Version you get from above”-standard

Reboot!

Done!

 

Some nice For Dummies Books.

Will add more as I stumble upon them.

Network Virtualization for Dummies
https://secure.vmware.com/47785_REG?touch=1&src=so_5bbb4d89277ef&cid=70134000001CYBq&src=so_5a314d05e49f5&cid=70134000001SkJn

Micro‐segmentation For Dummies
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/products/vmware-micro-segmentation-for-dummies-book.pdf

NVMe over Fibre Channel For Dummies Brocade Special Edition
http://media.wiley.com/assets/7359/40/9781119399711.pdf

Firewalls for Dummies
https://doc.lagout.org/Others/Firewalls%20For%20Dummies%2C%202nd%20Edition.pdf

Next Generation Firewall for Dummies
https://www.csuc.cat/sites/default/files/docs/ngfw_for_dummies_ebook.pdf

Cybersecurity for Dummies
https://www.paloaltonetworks.com/content/dam/pan/en_US/assets/pdf/education/cybersecurity-for-dummies.pdf

Network Security in Virtualized Data Centers for Dummies
http://gauss.ececs.uc.edu/Courses/c5155/pdf/netsec_virtdatacntr.pdf

Virtualization for Dummies
https://ssl.www8.hp.com/de/de/pdf/virtuallisation_tcm_144_1147500.pdf

 

Requires registration

Modern PC Management for Dummies Guide
https://secure.vmware.com/45047_REG?touch=1&src=so_5b976692a4abe&cid=70134000001sq1O

SMB Hybrid IT for Dummies
https://www.hpe.com/us/en/resources/servers/smb-hybrid-it-dummies.html

Next-Gen Virtualization for Dummies
Hyper-Converged Infrastructure For Dummies
Network Virtualizations For Dummies
http://learn.vmware.com/40588_REG?touch=1&src=so_5bbede7a6a8ab&cid=70134000001SpN6&src=so_5a314d05e49f5&cid=70134000001SkJn

Client VPN and VPN server in ASUS router at the same time. Route all traffic thru VPN service.

What we want:

Markering_596

 

I don’t think this will work with ASUS orginal firmware, I have not tested.
I use Merlin (https://asuswrt.lostrealm.ca/)

Check what TUN you have in the router via ssh
Command: route

Then you see what TUN you have on the vpn, in my case tun15
You can also use tun1+ but then all TUN will be affected

Command:
iptables -I POSTROUTING -t nat -s $(nvram get vpn_server1_sn)/24 -o tun15 -j MASQUERADE

Test if this works

Then add it to a script that will apply this automatic after renoot.

Script:
https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
1. Enable script in the gui
2. Create script

vi /jffs/scripts/firewall-start

#!/bin/sh
iptables -I POSTROUTING -t nat -s $(nvram get vpn_server1_sn)/24 -o tun15 -j MASQUERADE

chmod +x /jffs/scripts/firewall-start

reboot

Don’t forget to tick to start vpn client on boot in the gui

And

Redirect Internet traffic Any or selective routing