This is a draft cheat sheet. It is a work in progress and is not finished yet.
OCI commands
oci -cmd run -cont_type PULSAR -bash "./bin/clex -ch 2 -s -10m" |
clex on pulsar containers |
bin/oci -cmd run -bash "bin/clex -ch 7 -s -1m" -cont_type GRUMPY | bin/sdi -tcap -ts |
decode SS7 logs |
oci -cont_type STOD -cmd run -bash '/bin/ls /logs/operations_cdrs/' |
List CDRs on STODs |
bin/oci -cmd run -bash "scripts/clogwatch.pl 1" -cpref -cont_type STOD |
Run clogwatch on STODs |
oci -cmd ls |
show all cluster containers |
oci -cmd listals |
list cluster alarms |
bin/oci -cmd run -bash "/bin/date" -cont_type HIPPY |
run bash command on HIPPY containers |
bin/oci -cmd list_stats |
list stats |
bin/oci -cmd get_stat -stat minni.fsm_req_in |
Get MO in Stat |
bin/oci -cmd watch_stat -stat minni.fsm_req_in |
Watch MO in stat |
Host commands
scripts/hsvc_docker.sh -enable -restart |
restart docker |
scripts/node-key.sh check |
check for problems between hosts |
|
list etcd members |
|
show cluster health |
more hif.d/cont/oasis/oasis_master.details |
Where is oasis master |
./scripts/mon.sh list |
health check command |
scripts/mon.sh run -g base |
quick health check |
tci edit -- fmap.conf |
edit and save |
tci status|diff|commit|log|head |
tci command |
docker network create -d macvlan --subnet=A.B.C.D/X --gateway A.B.C.D -o parent=ethX <MAC_VLAN_NAME> |
create macvlan |
docker network connect --ip A.B.C.D <MAC_VLAN_NAME> 7-XXXXXXX |
connect GRUMPY to macvlan |
docker network disconnect <MAC_VLAN_NAME> 7-XXXXXXX |
disconnect GRUMPY from macvlan |
scripts/cores.sh list -tail |
for systems with /var/cores/containers volume configured |
|
|
Docker commands
docker exec -it oasis-1 su - omn |
connect to container (as omn) |
docker exec -it oasis-1 bash |
connect to container (as omn) |
docker logs oasis-1 |
container logs |
docker ps -a |
show all containers |
docker stop 3-1234567 |
stop container |
docker start 3-1234567 |
start container |
docker images |
list images |
docker rmi <image id> |
delete image |
docker network ls |
list docker networks |
docker network inspect tc_net |
Show docker overlay network info |
docker stats $(docker ps --format={{.Names}}) |
Show docker stats with container id |
docker cp nfvsmsc.tcap 0-59a6a3f0:/tmp/. |
copy file from host to container |
docker cp 0-59a6a3f0:/apps/omn/nfvsmsc.tcap . |
copy file from container to host |
docker port 0-59943648 |
show what ports are open |
Container commands
hci -is_master |
show master oasis |
hci -ls |
show all containers (run on any container) |
hci -host_ls |
show all hosts |
kylo_cli -list-regs |
show kylo registrations |
kylo_cli -list-health |
show kylo health |
kylo_cli -list-peers |
show kylo peers |
scripts/ipt_ci.sh -cmd show |
show iptables info (run from oasis) |
scripts/vip_ci.sh -cmd show |
show VIP information (run from oasis) |
cat haproxy/run/opx_mng.portmap |
show haproxy connections |
./bin/kylo_cli -table oasis_container_hbs -ki_list -in-memory |
show container heartbeat info |
|
show hazelcast cluster |
kylo_cli -counter_get -key TOTAL_MSGS_IN_SILOS |
get total messages counter |
./bin/pulsar_ci -<table_name> -list -max <number of records default 1000> -key <key to start at> |
list, get or delete an entry from a number of kylo stores that pulsar/quasar use |
bin/n4ci -rtable |
Show n4 routing table |
bin/n4ci -showmap |
Show n4 clustermap |
scripts/mon.sh run -g base |
health check probe |
for i in {1..12}; do ssh omn@10.10.4.$i 'ls -ltr bin/samlilah'; done |
bash one liner example |
for i in {1..12}; do ssh omn@10.10.4.$i 'wc -l operations_cdrs/* | grep total'; done | awk '{s+=$1} END {print s}' |
bash count cdrs |
oci -cmd ls | grep v1.04.14 | grep topped | awk '{ print $1 }' | xargs -n 1 bin/oci -cmd start_container -cont_id |
bash start containers |
Hidden Container files
.cassandra_hosts |
used by kylo to connect to cassandras |
.cluster.map |
each container has view of cluster |
.hsvc.ip |
Host IP of container |
.oasis_master.lock_done |
oasis master has lock |
.docker_upcall.conf |
docker IPs |
|