Friday, August 24, 2018

Python Scripts to Reboot / Manage Cisco Network Devices

Basically I am creating a script to build SSH connection from my Windows 7 network management computer to Cisco devices and have interactive commands with those Cisco devices. This has been done by many other network engineer. With Google's help, I am able to get their experiences to quickly implement it in my home lab environment.

It will be part of network management automation task. If
I can get this working it will prevent me from having to sign on to all of my Cisco devices and issue the command manually. Previously I used  network automation tool InfoBlox NetMRI to achieve that. Now with Python script, it can be achieved almost with a very low cost.

Step 1. Install Python and necessary components on my Windows 7 Machine.
I had a post before to describe the steps how to install Python and related module into windows system.
  • Test with the following command:
    • import paramiko

Python Tips and Tricks

1.  Install Python into Windows

1.1 Download Latest Python 2 file from
1.2 Double Click download python-2.7.15.exe file to install it.

1.3 Run Python
By Default, it will be installed at c:\Python27 folder

C:\Users\John>cd \

C:\>cd Python27

C:\Python27>python --version
Python 2.7.15

Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Thursday, August 23, 2018

Cisco IOS Command Tips and Tricks - Part 2

Cisco IOS command list is getting longer , and it has been split into two posts:

    1. Auto secure

    Cisco also provides a One-step lockdown-like feature at the command line! This feature is called AutoSecure. It uses the command shown below:

    auto secure [management | forwarding] [no-interact | full] [ntp | login | ssh | firewall | tcp-intercept]

    Monday, August 13, 2018

    How to Share GCP Images with Other Users and Projects

    We always can share Compute Engine images, snapshots, and disks with other users outside of your project or organization. Basically users with read access to those resources can use them to complete operations in other projects and organizations. For example, if you grant a user read access to an image or snapshot in your project, they can use those resources to create persistent disks in their own projects.

    Here is detailed steps how to share GCP (Google Cloud Platform) compute engine image cross user accounts and projects.

    1. Log into your GCP

    Wednesday, August 8, 2018

    Symantec Diagnostic Tool - SymDiag Usage Guide

    The Symantec Diagnostic Tool (SymDiag) is a multi-product, multi-language diagnostic, and security analysis utility. SymDiag is provides self-help support for Symantec product technical issues, zero-day threat analysis, best practice recommendations, and proactive services to customers. If you require further assistance, SymDiag lowers the level of effort and increases efficiency by automating data gathering and support case submission.

    SymDiag support most of popular OS including Windows, Linux and Mac. SymDiag supports the following Symantec products:
    • Advanced Threat Protection (Linux)
    • Data Center Security Management Server
    • Data Loss Prevention 11.0 and later
    • Encryption Powered by PGP
    • Endpoint Encryption
    • Endpoint Protection 11.0 and later*
    • Endpoint Protection Small Business Edition (.Cloud)
    • Endpoint Protection Cloud
    • Mail Security for Microsoft Exchange 6.5.2 and later*
    • Messaging Gateway
    • Protection Engine
    • Unified Agent
    • VIP Access

    In order to generate a Symantec Endpoint Protection support package. In order to perform this, the following steps must be completed as follows,

    n  Download the SymDiag tool from the following URL

    Wednesday, July 25, 2018

    Windows Server 2012 Tips and Tricks

    Building a lab to test some Windows services , AD, DNS, DHCP, ADCS, etc. in my VMware ESXi 6 environment, to get it running smoothly and reduce some headache, I used following tricks to make my life easier.

    Most of work has to be done by Group Policy Management Editor. If you are running in a domain environment, create this setting accordingly in a GPO, otherwise configure the local GPO (gpedit.msc):

    Edit Default Group Policy
    Launch Group Policy Management

    Friday, July 20, 2018

    NSS Labs NGFW Security Value Map Report (2018, 2017, 2016, 2014, 2013, 2012, 2011)

    The NGFW is the first line of defense to protect against today’s evolving threats and is a critical component of any defense-in-depth strategy.  The NSS Labs NGFW test methodology has evolved from the previous testing to reflect the threat landscape and therefore, this latest testing includes SSL inspection.  This is an important key test factor because most vendors see huge performance impacts when SSL is turned on, preventing them from publishing SSL performance on their datasheets.  With the expanded use of secure sockets layer (SSL)/transport layer security (TLS) in the traffic traversing the modern network, an NGFW must be able to inspect encrypted content. NSS Labs evaluated firewall products with 190 different evasion techniques, more than 2,000 exploit tests and throughput tests.

    NSS Labs regularly released NGFW Security Value Map™, Comparative Analysis Reports, and Product Analysis Reports.  These results help guide security professionals in the enterprise to make informed decisions when evaluating the many offerings in the industry.

    NSS Labs designed the test to focus on the following four areas:
    •     Security effectiveness
    •     Performance
    •     Stability
    •     Total Cost of Ownership (TCO)


    Security Value Map™ Next Generation Firewall (NGFW) April 30, 2018
    Products Tested
    • Barracuda Networks F600.E20 v6.1.1-071
    • Check Point Software Technologies 13800 NGFW Appliance vR77.20
    • Cisco ASA 5585-X SSP-60 v5.4.0.3
    • Cisco FirePOWER Appliance 8350 v5.4.0.3
    • Cyberoam – Cyberoam CR2500iNG-XP v10.6.3
    • Dell SonicWALL SuperMassive E10800 SonicOS Enhanced v6.0.1.13-177o
    • Forcepoint Stonesoft Next-Generation Firewall 1402 v5.8.5
    • Fortinet FortiGate 3200D v5.2.4, build 5069
    • Hillstone Networks SG-6000-E5960 v5.5 SG6000-M-2-5.5R1P2.2
    • Huawei Technologies USG6650 vV500R001C00SPC010T
    • Juniper Networks SRX5400E JUNOS Software Release 12.3X48
    • Palo Alto Networks PA-7050 v6.0.11-h1
    • WatchGuard Technologies XTM 1525 v11.9.4 build 486684