This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ### Ver 5.0 # 14th Dec 2023 | |
| ###Contact: nmicic@cisco.com | |
| ### | |
| ### NOTE: Please copy/paste script from begin #!/bin/bash to the ###END | |
| ### NOTE: Please copy/paste script from begin #!/bin/bash to the ###END | |
| ### NOTE: Please copy/paste script from begin #!/bin/bash to the ###END | |
| read -r -d '' HELP_README << README_BEGIN_END | |
| # get to debug shell after cli test-commands password ... | |
| To run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # To run: | |
| # | |
| # chmod +x crypto_chip_detect.sh; | |
| # ./crypto_chip_detect.sh support_summary | |
| # | |
| # In short script check Alloc-Free for crypto counters which will be very low for working cards - usually less then 100 or more around 10. | |
| # Note threshold is set to 3000, in some corener cases during very high load may go to this value, but will go back in second back to low value. | |
| # BUT, if you see 4 lines: Issue deteceted delta for same card then it is 100% crypto chip issue. | |
| # This threshold is assumed as we are little bit bellow 4K buffers. In 21.28.mX buffers are increased to 4k. In older version this could be close to 1K. |
First execute
- prior MOP commands
- debug shell card4 ipsecmgr task kill
- if no progress then excute: dcardmgr task kill ( NOTE: here execute again 2 after)
- after MOP commands
- if no change then reboot card 4 ( not migration )
- run one more time after MOP commands ( this has to be done anyways )
- if there are any issue alert the TAC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/awk -f | |
| #Use: chmod +x ./extract_egtpc_peers.awk; | |
| # cat SSD.txt | ./extract_egtpc_peers.awk | |
| # Example to use on multiple SSD's: | |
| # cat SSD1.txt | ./extract_egtpc_peers.awk > peers1.txt | |
| # cat SSD2.txt | ./extract_egtpc_peers.awk > peers2.txt | |
| # cat SSD3.txt | ./extract_egtpc_peers.awk > peers3.txt | |
| # then agregate outputs into one: | |
| # cat peers*.txt | sort | uniq > all.txt | |
| # -> if SSD1,2,3 are from different nodes, then all.txt will have agregated view from all. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| date;cli show card table | grep "Service Function" | tr -d : | awk '{print exec="ssh card"$1"-cpu0 /usr/bin64/iftask_dump_stats -d ";print(exec);system(exec);print "===END==="}' | grep -vE '\s+0\s+0\s+0\s+0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Copyright (c) 2026 Nenad Mićić <nenad@micic.be> https://be.linkedin.com/in/nenadmicic | |
| * SPDX-License-Identifier: Apache-2.0 | |
| * | |
| * microgpt.c — Minimal GPT training and inference in 655 lines of pure C. | |
| * Hand-written forward and backward pass, two-phase gradient accumulation. | |
| * Trains a 1-layer, 4-head, 4192-parameter character-level transformer. | |
| * | |
| * Inspired by Andrej Karpathy's microgpt.py (200 lines of Python): | |
| * https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95 | |
| * |
A simple setup for SSH connection multiplexing using ControlMaster, plus a watchdog script that checks the master connection and restarts it when needed.
Useful when you frequently create short-lived SSH sessions but want them to reuse one long-lived underlying SSH connection.
Add to:
OlderNewer