Created
April 24, 2015 00:44
-
-
Save jamesandariese/2788696231985abdbe05 to your computer and use it in GitHub Desktop.
decode snmp date from hex string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
07 B2 01 01 00 0A 14 00 00 00 00
sample.