What is my public IP – linux from CLI

As seen on garron.me wget -> wget -q -O – checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ curl -> curl -s checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ curl -> curl ifconfig.me lynx -> lynx -dump ifconfig.me | grep ‘IP Address’

Stop using “reload in”

Start using revert. Configure archive archive log config hidekeys path <flash|disk0>:Archives maximum 8 write-memory time-period 525600  Use configure terminal revert timer <X> Wait for <X> minutes for configuration to revert or use configure confirm for successfull implementation source, cisco documentation

Upload files to your Cisco ASA via pscp – no password prompt

– make sure you have defined user on ASA with privilege 15– make sure you have ssh scopy enable configured– on your linux host enter pscp -pw <password> <filename> <username>@<ASA IP>:<location/filename> something like: pscp -pw THISisp4ssw0rdf anyconnectfile.pkg adminusername@8.8.8.8:disk0:/anyconnectfile.pkg if you want to use scp with password prompt use: scp anyconnectfile.pkg adminusername@8.8.8.8:disk0:/anyconnectfile.pkg

Windows CLI netstat reminder

as seen on xmodx. netstat -an | find /i “listening” – grep with string netstat -ao | find /i “listening” – lists owning process ID associated with connection if “find /i” doesn’t work try “findstr”

BGP cannot connect

Simple configuration in GNS3 won’t work. All I get from debug is: went from nsf_not_active to nsf_not_active The solution is quite simple: under BGP process and neighbor statement add “disable-connected-check“