Skip to content

Instantly share code, notes, and snippets.

% curl "https://support.servicenow.com/api/sn_chg_rest/v1/change/standard/d6a6d4714fccc7808b6f60001310c724?description=a+standard+change+dia&short_description=dia+creation" \
--request POST \
--header "Accept:application/json" \
--user "$USER":"$PASSWORD" | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12598 0 12598 0 0 11773 0 --:--:-- 0:00:01 --:--:-- 11784
{
"result": {
"reason": {

dpdk

remove

$ tail -500f /var/log/cn2/contrail-vrouter-dpdk.log 2023-01-11 16:50:10,275 DPCORE: Vrouter: Vhost arp request Mr 1 Dst fd000110 src 1000110 converting to Xconnect 2023-01-11 16:52:29,897 DPCORE: Vrouter: Vhost arp request Mr 1 Dst 1000110 src 3000110 converting to Xconnect 2023-01-11 16:52:30,394 DPCORE: Vrouter: Vhost arp request Mr 1 Dst 3000110 src 1000110 converting to Xconnect 2023-01-11 16:52:30,477 DPCORE: Vrouter: Vhost arp request Mr 1 Dst 2000110 src 3000110 converting to Xconnect

commands on all nodes

df -h
free -h

top -n3bd10

This file has been truncated, but you can view the full file.
## Last changed: 2021-08-19 14:38:33 PDT
version 20200319.130545_builder.r1095278;
groups {
default {
system {
host-name jtac-MX240-r035;
root-authentication {
encrypted-password "$1$k7UBLOmR$usJrswsW.tg.Sw9TOhhoP/"; ## SECRET-DATA
}
login {
@pinggit
pinggit / .vimrc
Last active March 17, 2024 18:14
final update
" https://gist.github.com/pinggit/778bce339a58691af257288bde383aa5
" https://gist.githubusercontent.com/pinggit/778bce339a58691af257288bde383aa5/raw/6cfec9f520109f49e24ffd8f7d702119f4594e74/.vimrc
"
" https://gist.githubusercontent.com/pinggit/778bce339a58691af257288bde383aa5/raw/.vimrc
" GistID: 778bce339a58691af257288bde383aa5
"
"vim9: https://itsfoss.com/install-latest-vim-ubuntu/
"summary {{{1
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"key mappings
root@cl100ct197:/etc/nova# less policy.json  | grep -i admin
    "context_is_admin":  "role:admin",
    "admin_or_owner":  "is_admin:True or project_id:%(project_id)s",
    "default": "rule:admin_or_owner",
    "cells_scheduler_filter:TargetCellFilter": "is_admin:True",
    "compute:create:forced_host": "is_admin:True",
    "compute:start": "rule:admin_or_owner",
    "compute:stop": "rule:admin_or_owner",
    "compute:unlock_override": "rule:admin_api",
    "admin_api": "is_admin:True",
@pinggit
pinggit / curl 9200 Snh_UVETableInfoReq
Last active December 15, 2017 02:24
curl 9200 Snh_UVETableInfoReq
root@cl100ct197:~# curl 10.85.19.197:9200/Snh_UVETableInfoReq?partition=2 | xmllint --format -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 24474 100 24474 0 0 900k 0 --:--:-- --:--:-- --:--:-- 919k
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/universal_parse.xsl"?>
<UVETableInfoResp type="sandesh">
<partition type="u32" identifier="2">2</partition>
<tables type="list" identifier="7">
<list type="struct" size="1">
@pinggit
pinggit / transparent.conf
Last active October 22, 2017 19:37
firefly transparent config
## Last changed: 2017-10-18 14:01:25 UTC
version 12.1X47-D20.7;
system {
root-authentication {
encrypted-password "$1$mHqxe3ff$hUWAehCCnLSDF.kcaAiSN1"; ## SECRET-DATA
## Last changed: 2017-10-22 18:19:28 UTC
version 12.1X47-D20.7;
system {
root-authentication {
encrypted-password "$1$mHqxe3ff$hUWAehCCnLSDF.kcaAiSN1"; ## SECRET-DATA
root@rdm3r23c017:~# ./ist vr intf -n tapdbfe90f2-48 -d
ItfSandeshData
index: 24
name: tapdbfe90f2-48
uuid: dbfe90f2-48f0-4c5e-bc15-ef779325afd9
vrf_name: default-domain:Nimbus-25193-T-Willows1:Nimbus-25193-T-Willows1_oam_calea_net_1:Nimbus-25193-T-Willows1_oam_calea_net_1
active: Active
ipv4_active: Active
l2_active: L2 Active
ip6_active: Ipv6 Inactive < no-ipv6-addr >
root@cl100ct197:/var/lib/cassandra# ls
commitlog data saved_caches
root@cl100ct197:/var/lib/cassandra# tree
.
├── commitlog
│   ├── CommitLog-4-1489599811167.log
│   ├── CommitLog-4-1489599811353.log
│   ├── CommitLog-4-1489599811354.log
│   ├── CommitLog-4-1489599811355.log
│   ├── CommitLog-4-1489599811356.log