Skip to content

Instantly share code, notes, and snippets.

View wrgeorge1983's full-sized avatar

William George wrgeorge1983

View GitHub Profile
@wrgeorge1983
wrgeorge1983 / gist:cb15c7eac5ddbb2c8b2bd1ca77b025fd
Created September 3, 2019 19:53
AWS keypair fingerprints

Taken from this ServerFault post: https://serverfault.com/questions/603982/why-does-my-openssh-key-fingerprint-not-match-the-aws-ec2-console-keypair-finger

Keys generated locally You can use OpenSSL, as demonstrated by Daniel on the AWS forums, to generate the fingerprint in the form used by AWS to show fingerprints for uploaded public keys (SSH2 MD5), like:

7a:58:3a:a3:df:ba:a3:09:be:b5:b4:0b:f5:5b:09:a0  

They can be generated by extracting the public part from the private key and hashing it using:

rslt = rb.Execute('show interface', trim=False, timeout=5)
time.sleep(5)
rslt += rb.bufferflush()
entries = rslt.split('\r\nInterface')[1:]
ifaces = []
for entry in entries:
entry_dict = dict()
entry = entry.splitlines()
entry_dict['Name'] = entry.pop(0).split()[0]
for line in entry:
import inspect
import pandas as pd

#Important Snippits

here's the sample data

sample_data = {'frame.time_epoch':[1429133053.239977000, 1429133053.245974000, 1429133053.250978000], 

'frame.len': [60, 1414, 60],

So I paged through the docs at lunch (the gauntlet has been thrown, so I WILL take a gander at the source, this weekend perhaps, but it's been a long time, and I knew remarkably less, then, about everything, so I may not recall enough to get much out of it. We'll see.).

The kind of work-flow implied by the docs isn't what I'm after at all... however I don't think that really matters. As you said, with the right modularity, who cares?

There's a lot here, so even if you just give it a once-over and make sure you don't see anything that should be a deal-breaker, we don't need to try and tackle any of this yet, I don't think.

I figured I'd start with what's probably (to my layman's eyes) the biggest obstacle.

  • Realtime vs. file-based:
  • BLUF: Realtime isn't on my radar at all, but I don't really know how much that matters.