VMware vEXPERT 2017

VMW-LOGO-vEXPERT-2017-k

It was with great joy that today morning I found an email in my mailbox with the subject

Welcome to the 2017 vExpert Program

For those who don’t know vExpert Program started in 2009 and is a community that recognizes VMware enthusiasts that have an active role in the VMware community by sharing their knowledge.

With this recognition and certificate, you are able to get access to special offers like private betas, free licenses, exclusive events and restricted content on VMware Technology Network – VMTN

VMware vExperts have three paths:

  • Evangelist
  • Customer
  • VMware Partner

The path that I applied was the Evangelist one that is intended to bloggers, authors, speakers and VMTN contributors.

The applications for VMware vExpert are open twice a year.

I wish you all a great day and thanks for reading.

Advertisements

Add host to Icinga2

icinga_logo

Adding a Windows 2008 Server to Icinga2 master Server using Icinga2 agent

Setup the Icinga2 master for node clients and make shure the answer to the first question is n (no).

# icinga2 node wizard

Dowload  the agent from Icinga2 website and run it.

After the installation the setup wizzard will pop up.

icinga1

Remember the Instance Name as you will need it to generate the Setup Ticket in the Icinga2 server.

Add the Icinga2 master

Click the Add button and fill in the box

icinga2

Run this command in Icinga2 server to generate the Setup Ticket

# icinga2 pki ticket -cn infra-veeam.domain.local

Now copy the ticket and past it to the box

icinga3

Firewall

Before you click next check if the port 5665 is open in the Windows server and add a rule in Icinga2 server to permit connections

Check your active zones

# firewall-cmd --get-active-zones

I just had one “public” zone

At this point i added the rule to the firewall by running the command

# firewall-cmd --zone=public --add-port=5665/tcp --permanent

Continue the installation and finish it.

Open a command prompt and type in the command:

command

If all goes well you should get this output

command1

Now update the configured hosts by running and restart icinga2

# icinga2 node update-config
# systemctl reload icinga2

And that’s it! If you have Icinga Web 2 the host should pop up.
This post was based on the Documentation shared by the Icinga project

 

Access Cisco Firewall through Telnet using Python

In my company we have a couple of VPN’s configured and one of the VPN’s is essential to the core business of the company.

That particular VPN from time to time freezes and i need to disconnect it, but that isn’t always a simple task as when i am in vacations i don’t have access to internet so i needed a way for users to be able to disconnect the VPN themselves. The solution was a python script that connects to the Cisco equipment through telnet using the telnetlib.

This is the script:

import telnetlib

pwd1 = “password
pwd2 = “enable_password
cmdVpn = “vpn-sessiondb logoff ipaddress 1.0.0.0”
cmdEn = “enable”
host = “10.60.2.254”

tn = telnetlib.Telnet(host)
##tn.set_debuglevel(5)

tn.read_until(“:”)
tn.write(pwd1 + “\n”)
tn.read_until(“ciscoasa>”)
tn.write(cmdEn + “\n”)
tn.read_until(“:”)
tn.write(pwd2 + “\n”)
tn.read_until(“ciscoasa#”)
tn.write(cmdVpn + “\n”)
tn.read_until(“[confirm]”)
tn.write(“\n”)
tn.read_until(“ciscoasa#”)
tn.write(“exit”+”\n”)
print tn.read_all()
tn.close()
print “Operation completed”

Windows 2008 – Running a Scheduled Task after another

I had a problem with my Windows 2008 SQL Server.

I have a scheduled task to handle the backups of the backups with robocopy and a very small disk.

I thought i could just delete the files after copying them to a network drive, but this is a lot harder than it look.

It looks like Windows Task Scheduler does not permit to run a task after another one has finished despite  the existence of an event log showing the task starting, running and completing.

However it is possible to define Custom Event, though the standard filter does not allow much control over the selection of the events.

So i found this XML to place in the Custom Event

1 2 3 4

Now insert this XML in the text box and where you read copy backup replace with the name of your previous task:

<QueryList> 
   <Query Id="0" Path="Microsoft-Windows-TaskScheduler/Operational"> 
      <Select Path="Microsoft-Windows-TaskScheduler/Operational">*[EventData [@Name='TaskSuccessEvent'][Data[@Name='TaskName']='\copy backup']]</Select> 
   </Query> 
</QueryList>

VMware Broker

This is a tutorial on how to install the VMware broker.

Download the VMware View Connection Server 5 (in my case) and start the installation process.

Keep clicking next until you get the Installation Options screen. In my case i am going to choose “View Replica Server” because i already have a VMware infrastructure.

vmware_1

Click next.

Now you must type the VMware server ip address or hostname

vmware_1

Click next and don’t forget to choose “Configure Windows Firewall Automatic”

It’s done, now just access the http://localhost/admin and if you go to View Configuration – Servers in the View Connection Servers tab you’ll find your new server.