Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
ntpsec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
NTPsec
ntpsec
Commits
dcaaa4a7
There was a problem fetching the pipeline summary.
Commit
dcaaa4a7
authored
7 years ago
by
Ian Bruene
Browse files
Options
Downloads
Patches
Plain Diff
Added MIB coverage
parent
4d8d801c
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ntpclients/ntpsnmpd
+9
-4
9 additions, 4 deletions
ntpclients/ntpsnmpd
with
9 additions
and
4 deletions
ntpclients/ntpsnmpd
+
9
−
4
View file @
dcaaa4a7
...
...
@@ -388,20 +388,25 @@ class DataSource: # This may be broken up in future to be less NTP-specific
data
=
self
.
session
.
readstat
()
return
ax
.
Varbind
(
ax
.
VALUE_GAUGE32
,
oid
,
len
(
data
))
def
cb_statusDispersion
(
self
,
oid
,
write
=
None
):
# DUMMY
def
cb_statusDispersion
(
self
,
oid
,
write
=
None
):
# DisplayString
if
write
is
None
:
return
ax
.
Varbind
(
ax
.
VALUE_OCTET_STR
,
oid
,
"
quux
"
)
data
=
self
.
session
.
readvar
(
0
,
[
"
rootdisp
"
],
raw
=
True
)
return
ax
.
Varbind
(
ax
.
VALUE_OCTET_STR
,
oid
,
data
[
"
rootdisp
"
][
1
])
def
cb_statusEntityUptime
(
self
,
oid
,
write
=
None
):
# DUMMY
# TimeTicks
if
write
is
None
:
return
ax
.
Varbind
(
ax
.
VALUE_TIME_TICKS
,
oid
,
8
)
def
cb_statusDateTime
(
self
,
oid
,
write
=
None
):
# DUMMY
def
cb_statusDateTime
(
self
,
oid
,
write
=
None
):
# NtpDateTime
if
write
is
None
:
return
ax
.
Varbind
(
ax
.
VALUE_OCTET_STR
,
oid
,
"
fred
"
)
data
=
self
.
session
.
readvar
(
0
,
[
"
reftime
"
])
txt
=
data
[
"
reftime
"
]
txt
=
txt
[
2
:]
# Strip '0x'
txt
=
""
.
join
(
txt
.
split
(
"
.
"
))
# Strip '.'
return
ax
.
Varbind
(
ax
.
VALUE_OCTET_STR
,
oid
,
txt
)
def
cb_statusLeapSecond
(
self
,
oid
,
write
=
None
):
# DUMMY
# NtpDateTime
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment