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


Friday, August 7, 2020

How to change the Docker default subnet IP address

create file : /etc/docker/daemon.json

{

  "bip": "11.22.33.1/24"

}


{

    "default-address-pools": [

            {

                "base": "10.10.0.0/16",

                "size": 24

            }

        ]

}

restart docker services



Custom PS1 Linux Terminal

ex:

export PS1="\[\033[36m\]\D{%Y-%m-%d-%I:%M%p}\[\033[00m\] \[\033[95m\]\u@$WSL_DISTRO_NAME\[\033[00m\]:\[\033[35m\]\w\[\033[00m\] $ "

export PS1="\[\033[33m\]\D{%Y-%m-%d-%I:%M%p}\[\033[00m\] \[\033[32m\]\u@$WSL_DISTRO_NAME\[\033[00m\]:\[\033[36m\]\w\[\033[00m\] $ "

Thursday, August 6, 2020

OGG-01004, OCI Error ORA-04098: trigger 'MEIS.ZONE_TG' is invalid and failed re-validation (status = 4098)

OGG-01004, OCI Error ORA-04098: trigger 'MEIS.ZONE_TG' is invalid and failed re-validation (status = 4098)

Cause:

Triggers are causing issue while data is being loaded to table.



Resolution:

You could use the option “SUPRESSTRIGGERS” in the Replicat processes. 
If it still abends the Replicat process, 
you may have to disable the trigger in the database and restart the process.

sql> alter trigger ‘<User>.<Trigger>’ disable;

Ex:

SQL> alter trigger MEIS.ZONE_TG disable;

ALCATEL 6900

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