Thursday, February 8, 2018

LACP Nexus 9000v - IOSv Bug fix

Enjoy....

!!! nexus I7-1 and nexus I7-2

conf t feature bash end run bash sudo -u root cp /isan/bin/lacp /isan/bin/lacp2 run bash sudo -u root echo -e "00098830: 8c5f f7ff 85c0 7442 c685 9cfe ffff 01c6\n00098840: 859d feff ff80 c685 9efe ffff c2c6 859f\n00098850: feff ff00 c685 a0fe ffff 00c6 85a1 feff\n00098860: ff02 8b83 90fe ffff 8d95 9cfe ffff 8b0a" | sudo xxd -r - /isan/bin/lacp2 run bash sudo rm /isan/bin/lacp run bash sudo mv /isan/bin/lacp2 /isan/bin/lacp run bash sudo killall -9 lacp 

!!! nexus I5

conf t feature bash end run bash sudo -u root cp /isan/bin/lacp /isan/bin/lacp2 run bash sudo -u root echo -e "00984d0: c685 b4fe ffff 01c6 85b5 feff ff80 c685\n00984e0: b6fe ffff c2c6 85b7 feff ff00 c685 b8fe\n00984f0: ffff 00c6 85b9 feff ff02 8b83 90fe ffff"| sudo xxd -r - /isan/bin/lacp2 run bash sudo rm /isan/bin/lacp run bash sudo mv /isan/bin/lacp2 /isan/bin/lacp run bash sudo killall -9 lacp 

!! lacp hack for nxos.7.0.3.I7.x.bin to add in config for auto patch on boot/reload

feature bash-shell event manager applet PATCH description "PATCH" event syslog pattern "Configured from vty by root" action 1.0 cli run bash sudo -u root cp /isan/bin/lacp /isan/bin/lacp2 action 2.0 cli run bash sudo -u root echo -e "00098830: 8c5f f7ff 85c0 7442 c685 9cfe ffff 01c6\n00098840: 859d feff ff80 c685 9efe ffff c2c6 859f\n00098850: feff ff00 c685 a0fe ffff 00c6 85a1 feff\n00098860: ff02 8b83 90fe ffff 8d95 9cfe ffff 8b0a" | sudo xxd -r - /isan/bin/lacp2 action 3.0 cli run bash sudo rm /isan/bin/lacp action 4.0 cli run bash sudo mv /isan/bin/lacp2 /isan/bin/lacp action 5.0 cli run bash sudo killall -9 lacp action 6.0 event-default event manager applet PATCH2 description "PATCH" event syslog pattern "Supervisor 1 is active" action 1.0 cli run bash sudo -u root cp /isan/bin/lacp /isan/bin/lacp2 action 2.0 cli run bash sudo -u root echo -e "00098830: 8c5f f7ff 85c0 7442 c685 9cfe ffff 01c6\n00098840: 859d feff ff80 c685 9efe ffff c2c6 859f\n00098850: feff ff00 c685 a0fe ffff 00c6 85a1 feff\n00098860: ff02 8b83 90fe ffff 8d95 9cfe ffff 8b0a" | sudo xxd -r - /isan/bin/lacp2 action 3.0 cli run bash sudo rm /isan/bin/lacp action 4.0 cli run bash sudo mv /isan/bin/lacp2 /isan/bin/lacp action 5.0 cli run bash sudo sleep 30 action 6.0 cli run bash sudo killall -9 lacp action 7.0 event-default 


No comments:

Post a Comment