Tuesday, November 24, 2020

Error opening specified endpoint "udp:127.0.0.1:161" (net-snmp) ALPINE LINUX

Error opening specified endpoint "udp:127.0.0.1:161" (net-snmp) ALPINE LINUX

#vi /etc/snmp/snmpd.conf

agentAddress  SERVER_IP_ADDRESS

or

#vi /etc/snmp/snmpd.conf

agentAddress  udp:161


#rc-update add snmpd default

#/etc/init.d/snmpd start


Monday, November 16, 2020

Reset GlobalProtect Agent

:stop server/agent palo

launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist

launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist


:start server/agent palo

launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist

launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist

Wednesday, October 28, 2020

GET Let's Encrypts Certificates (dns)

$sudo apt install certbot

$sudo certbot certonly \

  --server https://acme-v02.api.letsencrypt.org/directory \

  --manual --preferred-challenges dns \

  -d your.domain.com

## Add records TXT _acme-challenge.your.domain.com

$nslookup -type=TXT _acme-challenge.your.domain.com

#Certs Path

/etc/letsencrypt/live/

Tuesday, September 15, 2020

Show GIT Branch on Bash

ubuntu edit .bashrc
alpine linux .profile

show_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}

export PS1="\u@\h \[\e[32m\]\w \[\e[91m\]\$(show_git_branch)\[\e[00m\] $ "

Tuesday, September 1, 2020

Unable to 'apt update' my Ubuntu 19.04

sudo sed -i -re 's/([a-z]{2}\.)?th.archive.ubuntu.com|archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

Friday, August 28, 2020

CPU and Memory OID Alcatel 6400

Memory:

name: healthDeviceMemoryLatest

oid: .1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.9.0


CPU:

name: healthDeviceCpuLatest

oid: .1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.13.0

Thursday, August 27, 2020

Pretty print json Format in BASH terminal

Pretty print json Format in BASH terminal

ex:

curl -X GET http://localhost:8001 | python3 -m json.tool


create alias in .bashrc :

alias pprint='python3 -m json.tool'


ex:

curl -X GET http://localhost:8001 | pprint


ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout