Skip to content

Instantly share code, notes, and snippets.

@jamesandariese
Created April 24, 2015 00:44
Show Gist options
  • Save jamesandariese/2788696231985abdbe05 to your computer and use it in GitHub Desktop.
Save jamesandariese/2788696231985abdbe05 to your computer and use it in GitHub Desktop.
decode snmp date from hex string
date -d "`grep -oE '[0-9A-F][0-9A-F]( [0-9A-F][0-9A-F]){10}' | sed -e 's/^/16i /' -e 's#$# Ai r 100* + sZ a sz Zd!=z ss 9 ss sM sh sd sm r 256* + sY [0]sN [[]]sB lZ 1000lZ<N 999lZ>B lz[ ] ls 10ls<N 9ls>B [:] lM 10lM<N 9lM>B [:] lh 10lh<N 9lh>B [ ] ld 10ld<N 9ld>B [/] lm 10lm<N 9lm>B [/] lY nnnnnnnnnnnnnnnnnnnn 10an f#'|dc`" "$@"
@jamesandariese
Copy link
Author

07 B2 01 01 00 0A 14 00 00 00 00

sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment