LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-31-2021, 07:50 AM   #1
linux4444
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Rep: Reputation: Disabled
Linux and SNMP


Hi

I have a Windows server which polling CentOS 8 server with SNMP (gen-next).
I Can poll the CentOS very easily.

Now, I've deleted the "mibs" folder on the CentOS (at /usr/share/snmp) and although the folder is gone,
I can still poll successfully the Centols.
So, How the LInux knows how to answer an OID get-next request, without the "mibs" folder?

Thanks
 
Old 10-31-2021, 08:55 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by linux4444 View Post
Hi
I have a Windows server which polling CentOS 8 server with SNMP (gen-next). I Can poll the CentOS very easily.

Now, I've deleted the "mibs" folder on the CentOS (at /usr/share/snmp) and although the folder is gone, I can still poll successfully the Centols. So, How the LInux knows how to answer an OID get-next request, without the "mibs" folder?
Did you actually stop the service?
 
Old 10-31-2021, 10:41 AM   #3
linux4444
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Did you actually stop the service?
Yes.
And then start is again, and I saw some warnings saying that it cannot find the "mibs".
But I can poll the data anyway.
 
Old 10-31-2021, 03:55 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by linux4444 View Post
Yes.
And then start is again, and I saw some warnings saying that it cannot find the "mibs". But I can poll the data anyway.
Please provide complete information/details when posting. Yes, it can't find the MIBs...that does not mean some base functions of SNMP won't work, and it depends on what, exactly, you're querying.

Your question is odd to begin with; if you're deleting the MIBs, why are you still running SNMP? What's the point/purpose?? Either stop the service and remove everything SNMP related from your machine, or let it run.
 
Old 11-01-2021, 03:43 AM   #5
linux4444
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Please provide complete information/details when posting. Yes, it can't find the MIBs...that does not mean some base functions of SNMP won't work, and it depends on what, exactly, you're querying.
Hi

I just want to understand what is the purpose of the "mibs" folder on the polled server.
How it knows how to answer my queries without his "mibs"

That's the query (comes from Windows 10 client) :

SnmpWalk.exe -r:10.0.0.3 -t:10 -c:"public" -os:.1
 
Old 11-01-2021, 09:47 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by linux4444 View Post
Hi
I just want to understand what is the purpose of the "mibs" folder on the polled server. How it knows how to answer my queries without his "mibs" That's the query (comes from Windows 10 client) :

SnmpWalk.exe -r:10.0.0.3 -t:10 -c:"public" -os:.1
Again, the SNMP daemon can provide BASIC information with no MIBs....the MIBs define different aspects of your system (be it hardware or software) that SNMP can poll. Removing the MIB removes that one thing.

Again; if you don't want SNMP, then don't run it. Removing that directory wasn't a good idea.
 
Old 11-01-2021, 12:44 PM   #7
linux4444
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
I'm polling everything (".1"), and the result is the same, with or without the mibs.

So can you please give me a concrete example for something I cannot poll without this folder?
 
Old 11-01-2021, 01:40 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by linux4444 View Post
I'm polling everything (".1"), and the result is the same, with or without the mibs. So can you please give me a concrete example for something I cannot poll without this folder?
No, since I have NO IDEA what was in that folder, what MIB's you had loaded, what's on your system, what hardware you've got, or what you're actually seeing. You are just putting in the default...which will, *AGAIN* return whatever defaults are in the SNMP daemon.
 
Old 11-01-2021, 02:20 PM   #9
linux4444
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
If the daemon does not use the mibs content when it polled, what is it doing with all the default stuff (list bellow)?
What is the purpose of all of these (centOs8 /usr/share/snmp/mibs) ?

AGENTX-MIB.txt NOTIFICATION-LOG-MIB.txt
BRIDGE-MIB.txt RFC1155-SMI.txt
DISMAN-EVENT-MIB.txt RFC1213-MIB.txt
DISMAN-SCHEDULE-MIB.txt RFC-1215.txt
DISMAN-SCRIPT-MIB.txt RMON-MIB.txt
EtherLike-MIB.txt SCTP-MIB.txt
HCNUM-TC.txt SMUX-MIB.txt
HOST-RESOURCES-MIB.txt SNMP-COMMUNITY-MIB.txt
HOST-RESOURCES-TYPES.txt SNMP-FRAMEWORK-MIB.txt
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt SNMP-MPD-MIB.txt
IANAifType-MIB.txt SNMP-NOTIFICATION-MIB.txt
IANA-LANGUAGE-MIB.txt SNMP-PROXY-MIB.txt
IANA-RTPROTO-MIB.txt SNMP-TARGET-MIB.txt
IF-INVERTED-STACK-MIB.txt SNMP-TLS-TM-MIB.txt
IF-MIB.txt SNMP-TSM-MIB.txt
INET-ADDRESS-MIB.txt SNMP-USER-BASED-SM-MIB.txt
IP-FORWARD-MIB.txt SNMP-USM-AES-MIB.txt
IP-MIB.txt SNMP-USM-DH-OBJECTS-MIB.txt
IPV6-FLOW-LABEL-MIB.txt SNMP-USM-HMAC-SHA2-MIB.txt
IPV6-ICMP-MIB.txt SNMPv2-CONF.txt
IPV6-MIB.txt SNMPv2-MIB.txt
IPV6-TCP-MIB.txt SNMPv2-SMI.txt
IPV6-TC.txt SNMPv2-TC.txt
IPV6-UDP-MIB.txt SNMPv2-TM.txt
LM-SENSORS-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt
MTA-MIB.txt TCP-MIB.txt
NET-SNMP-AGENT-MIB.txt TRANSPORT-ADDRESS-MIB.txt
NET-SNMP-EXAMPLES-MIB.txt TUNNEL-MIB.txt
NET-SNMP-EXTEND-MIB.txt UCD-DEMO-MIB.txt
NET-SNMP-MIB.txt UCD-DISKIO-MIB.txt
NET-SNMP-PASS-MIB.txt UCD-DLMOD-MIB.txt
NET-SNMP-TC.txt UCD-IPFWACC-MIB.txt
NET-SNMP-VACM-MIB.txt UCD-SNMP-MIB.txt
NETWORK-SERVICES-MIB.txt UDP-MIB.txt
 
Old 11-01-2021, 02:48 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by linux4444 View Post
If the daemon does not use the mibs content when it polled, what is it doing with all the default stuff (list bellow)?
What is the purpose of all of these (centOs8 /usr/share/snmp/mibs) ?
Code:
AGENTX-MIB.txt                       NOTIFICATION-LOG-MIB.txt
BRIDGE-MIB.txt                       RFC1155-SMI.txt
DISMAN-EVENT-MIB.txt                 RFC1213-MIB.txt
DISMAN-SCHEDULE-MIB.txt              RFC-1215.txt
DISMAN-SCRIPT-MIB.txt                RMON-MIB.txt
EtherLike-MIB.txt                    SCTP-MIB.txt
HCNUM-TC.txt                         SMUX-MIB.txt
HOST-RESOURCES-MIB.txt               SNMP-COMMUNITY-MIB.txt
HOST-RESOURCES-TYPES.txt             SNMP-FRAMEWORK-MIB.txt
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt  SNMP-MPD-MIB.txt
IANAifType-MIB.txt                   SNMP-NOTIFICATION-MIB.txt
IANA-LANGUAGE-MIB.txt                SNMP-PROXY-MIB.txt
IANA-RTPROTO-MIB.txt                 SNMP-TARGET-MIB.txt
IF-INVERTED-STACK-MIB.txt            SNMP-TLS-TM-MIB.txt
IF-MIB.txt                           SNMP-TSM-MIB.txt
INET-ADDRESS-MIB.txt                 SNMP-USER-BASED-SM-MIB.txt
IP-FORWARD-MIB.txt                   SNMP-USM-AES-MIB.txt
IP-MIB.txt                           SNMP-USM-DH-OBJECTS-MIB.txt
IPV6-FLOW-LABEL-MIB.txt              SNMP-USM-HMAC-SHA2-MIB.txt
IPV6-ICMP-MIB.txt                    SNMPv2-CONF.txt
IPV6-MIB.txt                         SNMPv2-MIB.txt
IPV6-TCP-MIB.txt                     SNMPv2-SMI.txt
IPV6-TC.txt                          SNMPv2-TC.txt
IPV6-UDP-MIB.txt                     SNMPv2-TM.txt
LM-SENSORS-MIB.txt                   SNMP-VIEW-BASED-ACM-MIB.txt
MTA-MIB.txt                          TCP-MIB.txt
NET-SNMP-AGENT-MIB.txt               TRANSPORT-ADDRESS-MIB.txt
NET-SNMP-EXAMPLES-MIB.txt            TUNNEL-MIB.txt
NET-SNMP-EXTEND-MIB.txt              UCD-DEMO-MIB.txt
NET-SNMP-MIB.txt                     UCD-DISKIO-MIB.txt
NET-SNMP-PASS-MIB.txt                UCD-DLMOD-MIB.txt
NET-SNMP-TC.txt                      UCD-IPFWACC-MIB.txt
NET-SNMP-VACM-MIB.txt                UCD-SNMP-MIB.txt
NETWORK-SERVICES-MIB.txt             UDP-MIB.txt
Are those the files you supposedly deleted?? And are you not understanding what you're being told???

AGAIN, for the fourth time: there are some parts of SNMP that will respond. Additional MIBs are present to ADD things to what you can query. AGAIN: you are doing a base query...you are getting base information. You *STILL* are not providing information, posting what you're seeing, what command(s) you've run, etc. You claim to have deleted a folder, then you post the contents of the folder you claim to have removed...both can't be true.

Have you actually looked into any of those files??? Have you done ANY research into how SNMP works?? Happy to help with actual problems, but not going to provide online tutoring and walk you through how SNMP works down to a base level.
 
Old 11-01-2021, 03:57 PM   #11
linux4444
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
You claim to have deleted a folder, then you post the contents of the folder you claim to have removed...both can't be true.
This is a VM that I can restore snapshot - before I removed that folder

Quote:
Originally Posted by TB0ne View Post
....but not going to provide online tutoring and walk you through how SNMP works down to a base level.
Thanks anyway
 
Old 11-01-2021, 05:36 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by linux4444 View Post
This is a VM that I can restore snapshot - before I removed that folder
Again, you need to provide details and ask a clear question; you omitted ALL of this, what you're doing/seeing, etc., and somehow still expect people to be able to give you information.
Quote:
Thanks anyway
Read the "Question Guidelines"...do research on things on your own. Again, we are happy to help, but asking folks to explain the details about a service is asking us to be your personal tutors. Resolving a technical issue is one thing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure(Monitor) SNMP traps for CPU Utilisation and Disk Usage in Linux servers using net-snmp ,snmpd.config file. arjunganta Linux - Newbie 3 03-20-2020 07:29 AM
SNMP Configuration problem - able to snmp outbound, unable to snmp inbound. sumncguy Linux - Desktop 2 04-28-2015 09:26 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration