<p></p>
<h3>Background</h3>
<p>I saw an error in the logs</p>
<pre><code>ERROR: snmpstats [snmpSIPCommonObjects.c:200]: handle_kamailioSIPServiceStartTime(): failed to read from sysUpTime file at /tmp/kamailio_SNMPAgent.txt
</code></pre>
<p>and began to figure out what kind of file it is.<br>
The file is filled with the command output</p>
<pre><code># snmpget -Ov -c public localhost .1.3.6.1.2.1.1.3.0
</code></pre>
<h3>Actual behavior</h3>
<p>Manual command execution failed</p>
<pre><code># snmpget -Ov -c public localhost .1.3.6.1.2.1.1.3.0
snmpget: No securityName specified
</code></pre>
<h3>Expected behavior</h3>
<p>Command returns uptime (in this case I specified SNMP version)</p>
<pre><code># snmpget -v2c -Ov -c public localhost .1.3.6.1.2.1.1.3.0
Timeticks: (60857281) 7 days, 1:02:52.81
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2846#issuecomment-914511521">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKVDSP7LHQC4QRYMYTUAZHWDANCNFSM5DS4HY3Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZLO25NDJIANSF5KZ23UAZHWDA5CNFSM5DS4HY32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG2BFNII.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2846#issuecomment-914511521",
"url": "https://github.com/kamailio/kamailio/pull/2846#issuecomment-914511521",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>