How to achieve service discovery like "Printer Discover" on android?

I would like to know about the 'service discovery' mechanisms supported by android - particularly, Printer Discovery. Does android provide such a discovery option? example : support for snmp...

shell script for Net-snmp (get/walk) is not efficient

#!/bin/bash for i in `seq 1 3000` do index=`snmpget -v 2c -c public -Oqv localhost 1.3.6.1.4.1.21067.4.1.1.1.$i` done for i in `seq 1 3000` do upload=`snmpget -v 2c -c public -Oqv localhost...

snmp logs location

DEBUGMSGTL(("","Initializing scalar integer. Default value = %d\n")); snmp_log(LOG_ERR,"fscanf failed in temp fun(),errno:\n"); with these log I want all logs from startinn of snmp service to...

How do I configure php to enable pdo and include mysqli on CentOS?

PHP Version 5.3.3 on CentOS (x86_64, RHEL 6) Apparently my PHP installation was configured to exclude Mysqli and disable PDO for some reason. Therefore, I believe this is what's causing them to...

Using Weblogic 12c, giving warning Warning Log Management BEA-170011 The LogBroadcaster on this server failed to

I am using weblogic 12c server to deploy my web applications. These were running fine but now it has started showing the following warning : - <Warning> <Log Management> <BEA-170011> <The...

How to send traps in local subnet

I am using Net-snmp. I want to send traps in my subnet. I am having IP of my m/c as 10.0.2.15. I want to send it in 10.0.2.0/24 subnet. I have tried command as follows snmptrap -v 2c -c public...

i am unable to get my snmp working on linux machine

I tried each method on internet but can not figure out the problem . My script is giving error "Call to undefined function snmp2_get()" . same code is working on window machine by enabling php...

Capture snmpwalk output via powershell

I would like to run a program and save its output into a file. The program starts, I see a cmd window pop-up, but the file is alway empty. I tryed these versions: start snmpwalk.exe "parameters...

What is the OID to get number of CPU cores in SNMP

Does anyone knows what is the OID to get the number of CPU cores in SNMP? I want to get an Integer value for this. Thank you.

How to configure collectd-snmp to poll a router?

I am trying to use a Raspberry Pi to poll the interface MIB (IF:MIB) of a TP-LINK router and then send the metrics to Librato. Setting up collectd and integrating it with Librato is no problem at...

snmpget: No such object available on this agent at this OID

I am trying to add my own MIB-Module into a snmp agent, following this tutorial: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module Now, I followed the tutorial step by step and...

snmptrapd doesn't log in mysql

I am trying to log snmp traps to mysql db, but unfortunately without results. OS - Debian Net-SNMP v.5.7.3 MySQL 5.1 I am using snmptrapd and did the configuration from here here is my...

snmpwalk failed with authorizationError

I tried to execute: snmpwalk -v 3 -u snmpv3username -A <passphrase> -a MD5 -l authNoPriv localhost .1.3.6.1.4.1.334.72.1.1.6.2.1.0 However, I got the following error: Error in packet. Reason:...

running shell commands in php ajax

As a Newbie: I am trying to develop a php application that runs shell commands and displays the output on the web page. The html file: <!DOCTYPE html> <html> <head> <script...

How to excute script when receiving a SNMP trap?

I found the parameter traphandle in the snmptrapd.conf file. I found that I can set it like this traphandle default /usr/sbin/snmptt to ad the info of the trap to a log file in /var/log/snmptt...

net-snmp on start says - "Error opening specified endpoint " in Raspberry pi - Jessica

My raspberry pi - jessica has got snmpd --version NET-SNMP version: 5.7.2.1 Web: http://www.net-snmp.org/ Email: [email protected] Now, I am trying...

Python script for Cisco devices

I want to extract running config from Cisco devices, but not getting desiered output from the code #import the neccessary modules import time, sys, getpass, paramiko #setup the variables used...

MongoDB can not start by the command `service mongod start`

when i run the command sudo service mongod start the MongoDB cannot start and when i run the service mongod status it shows it has not been started, and the log shows: 2018-07-05T14:32:03.595+0800...

Laravel 5.7 Apache 2.4 php 7.2 Undefined class constant 'SQLSRV_ATTR_FETCHES_NUMERIC_TYPE'

I'm trying to configure my Laravel 5.7 in Apache 2.4 using PHP 7.2 but i'm getting the error Undefined class constant 'SQLSRV_ATTR_FETCHES_NUMERIC_TYPE' I've already change de PHP version to...

SNMP4J: Can't get SNMPv3 to work with multiple targets

I'm trying to use SNMP4J (v2.6.2) to query (snmpget) two different target machines at once. I've tried two approaches, and it always only receives a response for the first target. Whichever one I...

How to fix: Error: couldn't connect to server <ip address>:27017, connection attempt failed: Connection refused

I'm running mongodb on a remote server and I want to access within my local machine I've tried to remove the mongodb.lock file, also tried sudo mongod --repair but none of these worked for...

How to fix 'No such instance currently exists at this OID'

I'm just new here and new to pysnmp and am having trouble getting values from some cisco mibs via snmp. I suspect the issue is in loading the MIBs into pysnmp. How do I tell pysnmp to direct its...

Laravel is giving me Facade\Ignition\Exceptions\ViewException Undefined variable: GENERAL_SETTING

This is my controller code to show data from GENERAL_SETTING table public function show() { // mengambil data dari table GENERAL_SETTING $GENERAL_SETTING =...

Oracle XE and DBeaver: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

I need to connect to Oracle XE 18.0.0 through DBeaver 7.0 but failed due to error Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of...

Mongodb (code=exited, status=14) failed but not any clear errors

I have VPS with Ubuntu 18.04 LTS with Mongodb and my script was working until 3 days ago fine, but suddenly my hosting server was rebooted (I purchased it from a hosting company) and when my...

Installing snmp-mibs-downloader on debian 10 buster

I have installed net-snmp on a linux machine with debian 10 buster and now I need to install snmp-mibs-downloader. Although I have previously run sudo apt-get update when executing: sudo apt-get...

How is SNMPv3 with USM auth and privacy configured on net-snmp 5.8 to avoid "security service 3 error parsing ScopedPDU"?

I have a working net-snmp v5.7 install running on CentOS7, and I am now trying to do the same on net-snmp v5.8 running on CentOS8. I have configured /etc/snmp/snmpd.conf as follows: syslocation...

Python Set With PYSNMP

I'm trying to set a value with SNMP get. I've tested that the OID is writeable with MIB browser. I'm able to get values with another script but it doesn't make sense with a set. from pysnmp.hlapi...

How to generate Hash passwords for SNMPv3 authentication and privacy settings on NOKIA SROS?

NOKIA SROS does not provide an in-built way to generate hash during configuration of SNMPv3 authentication and privacy. It does not accept plain-texts. It does not provide a way to generate a way...

Oracle 12c docker setup on Apple M1

I am trying to run Oracle db in docker on M1 Mac. I have tried images from both store/oracle/database-enterprise:12.2.0.1-slim and container-registry.oracle.com/database/enterprise:12.2.0.1-slim...