Skip to content

Instantly share code, notes, and snippets.

View nickzxcv's full-sized avatar

Nick Schmalenberger nickzxcv

  • Roanoke, Virginia
View GitHub Profile
alias lshw-memory="sudo lshw -json | jq -r '.children[0].children[] | select(.class==\"memory\" and .description==\"System Memory\") .children[] | [.slot, .size, .units, .vendor, .product, .description] | @tsv'"
@nickzxcv
nickzxcv / gist:40403ee49af795bdbe38fabbffc315fd
Last active September 6, 2018 04:43
internal server error from pynetbox trying to .save()
PUT /api/dcim/devices/47/ HTTP/1.1
Host: netbox.corp.example.com:8000
Content-Length: 662
Accept: */*
Connection: keep-alive
Accept-Encoding: gzip, deflate
Content-Type: application/json; version=2.4;
User-Agent: python-requests/2.9.1
authorization: Token c575ae5627abfdacce2d322b50b7dff2781cdf55
root@intersite1.iad1.prod> show lacp interfaces
Aggregated interface: ae0
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
xe-1/0/22 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/22 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/22 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/22 Partner No No Yes Yes Yes Yes Fast Active
LACP protocol: Receive State Transmit State Mux State
xe-1/0/22 Current Fast periodic Collecting distributing
xe-0/0/22 Current Fast periodic Collecting distributing