Re: No hrSWRunPath in HOST-RESOURCES-MIB

Kamil Kisiel <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C5F10414.89FE%[email protected]>
On 26/03/09 9:47 , "Dave Shield" <[email protected]> wrote:
> 2009/3/26 Kamil Kisiel <[email protected]>:
>>>    What is the result of
>>>                snmpwalk ... hrSWRunPath
>>> ?
>> The output is just:
>> HOST-RESOURCES-MIB::hrSWRunPath.1 = STRING: "init [5]"
> 
> Boggle!
> But presumably you get a full list of processes for the other
> MIB objects in this table?
> 
> A couple of things to try:
>    select some long-running process, and make a note of the
> process ID.

For cron, pid 4049:
> 
>    What is the result of    "snmpget .... hrSWRunPath.{pid}"  ?
HOST-RESOURCES-MIB::hrSWRunPath.4049 = STRING: "/usr/sbin/cron"

>    What is the result of    "cat  /proc/{pid}/cmdline"  ?
/usr/sbin/cron

>    What is the result of    "head /proc/{pid}/status"  ?
Name:    cron
State:    S (sleeping)
Tgid:    4049
Pid:    4049
PPid:    1
TracerPid:    0
Uid:    0    0    0    0
Gid:    0    0    0    0
FDSize:    64
Groups:    

So that seems to work fine. snmpwalk on the same OID works as well.

I tried another experiment with pid 2, kthreadd:

On my Gentoo machines:
snmpwalk ... hrSWRunPath.2
HOST-RESOURCES-MIB::hrSWRunPath.2 = STRING: "kthreadd"

On the openSUSE machines which are not working:
HOST-RESOURCES-MIB::hrSWRunPath.2 = No Such Instance currently exists at
this OID

I verified that kthreadd is running as pid 2 on both machines

Running cat /proc/2/cmdline prints nothing on either.

- Kamil



Notice of Confidentiality: The information transmitted is intended only for the
person or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, re-transmission, dissemination or other use of
or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited. If you received this in error
please contact the sender immediately by return electronic transmission and then
immediately delete this transmission including all attachments without copying,
distributing or disclosing the same.


------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.