Mikrotik Tips

LTE modem restart script:

https://gist.github.com/highel/140409e5d3c145a56f3ff8606a184f7c

Add this script to System -> Scripts (punctuation is very strict so look at Mikrotik’s manual: https://wiki.mikrotik.com/wiki/Manual:Scripting):
:if ([/ping 8.8.8.8 count=5 size=64 interval=2s ] =0) do={ :log error "-----LTE interface is not connected to the Internet"; :log error "----Reseting USB Power"; /system routerboard usb power-reset duration=2; /delay 30s; :log error "-----Disabling LTE interface"; /interface disable lte1; /delay 5s; :log error "Enabling LTE interface"; /interface enable lte1; } else={ :log error "-----LTE is OK"; }

Add task with the name of the Scipt in System -> Scheduler

Multi SSID CAPsMAN:

https://forum.mikrotik.com/viewtopic.php?t=87312
https://forum.nag.ru/forum/index.php?showtopic=111919

Mikrotik Monitoring:

https://www.mikrotik.com/thedude

WiFi Roaming Mikrotik:

Best Manual:
https://2keep.net/mikrotik-capsman-v2-hap-ac-lite/

Good Manual:
https://zeroxzed.ru/nastroyka-mikrotik-kontrollera-capsman-dlya-besshovnogo-wifi-rouminga-na-primere-routerboard-2011uias-2hnd-in/

Budget option: one AP is the center of the world:
https://habrahabr.ru/post/217657/

One more manual:
https://serveradmin.ru/nastroyka-capsman-v-mikrotik/

Few advises:
https://toster.ru/q/127543

Cisco Info

Serial number check (warranty etc):

https://cway.cisco.com/sncheck/

ASA configuration, great site with manuals:

https://xgu.ru/wiki/Cisco_ASA

Initial setup manuals:

https://pyatilistnik.org/kak-nastroit-kommutatoryi-cisco-3-urovnya-na-primere-cisco-3560/
https://pyatilistnik.org/kak-nastroit-marshrutizator-cisco-organizatsiya-seti-dlya-nebolshogo-ofisa/
https://pyatilistnik.org/staticheskaya-marshrutizatsiya-cisco/

WiFi blog:

https://mrncciew.com/

Working with the flash file system:

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/3se/system_management/configuration_guide/b_sm_3se_3850_cg/b_sm_3se_3850_cg_chapter_010011.html

Recursively delete non-empty folder from flash:

delete /force /recursive flash:FOLDERNAME

Passwords Security:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/security/s1/sec-s1-xe-3se-3850-cr-book/sec-s1-xe-3se-3850-cr-book_chapter_0110.html

Cisco Device Security:

https://arny.ru/education/ccnp-enterprise/rasshirennaya-bezopasnost-cisco/

How to Reset Cisco Catalyst 3560 Back to Factory Defaults:

https://fatmin.com/2015/09/29/how-to-reset-cisco-catalyst-3560-back-to-factory-defaults
First you need to power down the switch. Once the switch is powered off, hold down the mode button, and power the switch on. The switch will boot up and you should see the switch prompt as shown below.
Now type flash_init. Your output should be similar to what you see below.
Check out the contents of flash and locate config.text and vlan.dat (if it exists).
Now delete the vlan.dat and config.text.
Reboot switch

Enter Rommon:

Push Ctrl and Break (use submenu in Putty) before the device start loading firmware.

Recover Catalyst Fixed Configuration Switches from a Corrupted Image:

https://www.cisco.com/c/en/us/support/docs/switches/catalyst-2950-series-switches/41845-192.html

Show full config:

show run all

Cisco hardware and info short:

http://wiki.ciscolinux.co.uk/index.php/Cisco_1941_with_EHWIC-4G-LTE-G

Cisco EHWIC-4G-LTE info:

https://jakondo.ru/nastrojka-modulya-cisco-ehwic-4g-lte-g-na-rabotu-s-mobilnym-operatorom-yota/

Additional ACL Features:

https://etutorials.org/Networking/Router+firewall+security/Part+III+Nonstateful+Filtering+Technologies/Chapter+7.+Basic+Access+Lists/Additional+ACL+Features/

Cisco IP SLA info:

IP SLA is needed, in particular, for setting up redundancy in networks with static routing.
https://www.practicalnetworking.net/stand-alone/cisco-ip-sla-using-a-cisco-router-to-generate-traffic/
https://learningnetwork.cisco.com/s/question/0D53i00000Kt0s9CAB/ip-sla-tracking-issue
Configure delay for flapping links:
https://packetpushers.net/blog/using-ip-sla-delay-feature-to-safely-monitor-lossy-links/
For example I’ve currently configured my home router like this:
track 1 ip sla 1 reachability
delay down 0 up 120

because my main home provider often fails for less than a minute and I’m experiencing frequent unneeded reconnects while working.

Configuring native VLANs on Cisco Switches:

https://www.practicalnetworking.net/stand-alone/configuring-vlans/

Speedup TFTP:

Increase or decrease the TFTP block size, experimentally choose which size is better:
ip tftp block 8192

Guest Shell (Virtualization) in IOS XE:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/173/b_173_programmability_cg/guest_shell.html

Backup before upgrade:

Sometimes you are facing a situation where there isn’t enough space on the flash: to store new firmware.
Before you delete old firmware files and upload new ones, you should backup old files to some place from where you’ll be able to restore them to a Cisco device if something will go wrong with the new IOS.
I’m using SCP for this purpose (read next article).

SCP copy from Cisco device to Windows PC:

On Cisco device:
Create username with privileges:
username SCPUSER privilege 15 secret SECRET
Enable SCP server:
ip scp server enable
On Windows device:
In CMD:
scp -O SCPUSER@XXX.XXX.XXX.XXX:flash:/FILENAME DISK:\
But ofcourse Windows won’t want to connect so easily, probably you will get errors.
In case of “Unable to negotiate: no matching key exchange method found.” add algorhytm that goes after “Their offer:”, for example
-o KexAlgorithms=+diffie-hellman-group-exchange-sha1
In case of “Unable to negotiate: no matching host key type found.” add algorhytm that goes after “Their offer:”, for example
-o HostKeyAlgorithms=+ssh-rsa scp
Almost 100% you’ll need to add both of them, so the complete input will be:
scp -O -o KexAlgorithms=+diffie-hellman-group-exchange-sha1 -o HostKeyAlgorithms=+ssh-rsa SCPUSER@XXX.XXX.XXX.XXX:flash:/FILENAME DISK:\
After you finish downloading all needes files, disable SCP server and delete user:
no username SCPUSER
ip scp server disable

Rollback configuration changes:

In general there are few options:

1. Set time to reload the device:
reload in xx (minutes)
If you want to cancel the reload, input reload cancel
Easy but there are few disadvantages: a) it reloads the device so it will take time until all services depending on that device became available b) if you saved the configuration to nvram reload won’t help

2. More complex but reliable way is to configure archive functions and set time of configuration rollback:
https://www.cisco.com/c/en/us/td/docs/ios/ios_xe/fundamentals/configuration/guide/2_xe/cf_xe_book/cf_config-rollback_xe.html
Enable archive function and set config archive name and maximum number:
conf t
archive
path flash:config-backup
max 10
end

Save current running (and perfectly working) configuration:
archive config
Check that configuration archive has been created:
dir flash:
you will see the optut with the list of files containing something like “config-backup-Nov–5-06-01-38.627-0”.
Set the time period you want to restore this saved configuration:
configure terminal revert timer idle 10 or config t r t i 10 with 10 minutes in this example.
Confinue with the configuration. If for any reason the connection to the device is lost, the settings will be restored after one minute without the confirmation request.
To cancel automatic configuration restore input configure confirm

GPU passthtrough ESXi

Newer article:
https://vmind.ru/2016/08/08/probros-videokarty-nvidia-v-vmware-esxi-6-0/comment-page-1/

More info:
https://medium.com/@alexander.bazhenov/поддержка-nvdida-grid-в-vmware-esxi-e649a40d46f2

 

GPU passthrough

By the way with help of USB Bluetooth adaptor (kb and mouse) + server internal GPU passthrough i was able to get local console for Windows XP guest :)

Works with any physical device. ESXi will use GPU untel VM with configured pssthrough start.
Server Dell R310 got only internal GPU.

https://www.vm4.ru/2010/08/usb.html

Compatiability

Kingston RAM:
https://www.kingston.com/us/memory/search/options/

Vmware Systems:
https://www.vmware.com/resources/compatibility/search.php

Vmware Raid:
https://www.vmware.com/resources/compatibility/search.php?deviceCategory=io&releases=171&deviceTypes=13

Supermicro:
https://www.supermicro.com/support/resources/OS/OS_Certification_Intel.cfm

Solidworks:
https://www.solidworks.com/sw/support/videocardtesting.html

Cisco feature navigator (firmware + hardware etc):
https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/compareImages.jsp

Cisco Transceiver Module Compatibility Matrix:
https://tmgmatrix.cisco.com

OS X Compatibility:
https://eshop.macsales.com/guides/Mac_OS_X_Compatibility

Intel processors by socket:
https://ark.intel.com/content/www/us/en/ark/search/featurefilter.html?productType=873&1_Filter-SocketsSupported=3635&1_Filter-Family=595&2_MarketSegment=Server

Fortinet:
https://docs.fortinet.com/upgrade-tool/fortigate

Useful CMD commands in Windows + .BAT files context

Find out motherboard details:

wmic baseboard get product,Manufacturer,version,serialnumber

https://x-flame.ru/kak-uznat-model-materinskoj-platy-cherez-cmd/

Visible WiFi networks details:

netsh wlan show networks mode=bssid

Start program with parameters from .bat file :<

start "" "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc MY-PC -launch
In other words, give it an empty title before the name of the program to fake it out.

https://stackoverflow.com/questions/154075/using-the-start-command-with-parameters-passed-to-the-started-program

Save output to file:

command.name > fileName.txt

Remove text from file:

findstr /v /i /L /c:"Mabrur" text.txt >out.txt

/v means “lines that do not contain
/i means “case-insensitive”.
*all lines containing the /L literal string Mabrur, whether it is as product or some other column, or is part of a longer string will be excluded.

https://stackoverflow.com/questions/49569889/how-to-delete-some-line-from-txt-file-using-batch