Technical article 110916

Is the SNMP Host Resources MIB (RFC1514) available in SCO OpenServer 5?

OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

Is the SNMP Host Resources MIB implemented in SCO OpenServer 5?

Solution

The IETF RFC1514 defines a Host Resources MIB for use with managing host systems with SNMP. By default, this is not enabled in SCO OpenServer 5. The following example details how to activate it.

First, log in to the system as the "root" user.

(1) Associate the MIB system names with their numeric object identifier/ASN notation:

# cd /etc/sysadm.d
# post_mosy -i hostmib.defs -o hostmib.dfn

(2) Run "mkdev hostmib" (which calls "/etc/init.d/hostmib"):

# mkdev hostmib
SNMP Host Resources MIB Initialization

1. Install Host Resources MIB 2. Remove Host Resources MIB

Select an option or enter q to quit: Starting Host Resources MIB peer Loading Host Resources MIB..........done

(3) Restart the system networking by fully rebooting ("/etc/rc2.d/ S89hostmib" stops/starts the hostmib), or stop/start the "/etc/snmpd" daemon by sending a "-9" kill signal to the process, or force it to to reread its configuration files with a "-1" kill, for example:

# ps -ef |grep snmpd
root  1875     1  0   Mar-15       ?    00:00:03 /etc/snmpd
# kill -1 1875

The shipping "/etc/snmpd.peers" file contains an entry for the "hostmib" as:

"hostmib"    1.3.6.1.4.1.32.99.1 "aintNoThing"

This is incorrect. It will function, but it should be:

"hostmib"    1.3.6.1.2.1.25     "aintNoThing"

Edit the "/etc/snmpd.peers" file to correct it.

You can check if the hostmib is set up and running with:

# ps -ef |grep smux
    root   628     1  0 09:33:36       ?    00:00:01
    /etc/smuxtcl /etc/sysadm.d/hostmib.tcl

You can also check the state of SNMP with:

# snmpstat -s <yourhostname>

(4) The "getone" or "getmany" commands should now be able to obtain the system MIB information, for example:

# getmany -f /etc/sysadm.d/hostmib.dfn localhost public
hrSystem
Name: hrSystemUptime.0
Value: 118356496
Name: hrSystemDate.0
Value: 07 d0 03 0d   09 06 17 00   2d 00 00
etc.
etc.

You can also use the OID number as set in the .dfn file above:

# getmany -f /etc/sysadm.d/hostmib.dfn localhost public
1.3.6.1.2.1.25.1

You can also pick out one particular value using "getone" in various forms:

# getone -f /etc/sysadm.d/hostmib.dfn localhost public
hrSystemProcesses.0
# getone -f /etc/sysadm.d/hostmib.dfn localhost public
mib-2.25.1.6.0
# getone -f /etc/sysadm.d/hostmib.dfn localhost public
1.3.6.1.2.1.25.1.6.0

See also

          Manual pages: post_mosy(ADMN), getmany(ADMN), getone(ADMN),
	  snmpstat(ADMN).

From the Xinuos technical article database, record 110916. Reproduced with permission. The original is at www.sco.com/ta/110916, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.