Creating a MIB for a Sun Management Center Module

Here is a quick tutorial on how to create an SNMP MIB for a Sun Management Center Module. This process helps when you already have a Sun Management Center Module running on the agent and you want to expose the ASN.1 MIB interface for this module.

Load Module
Load the module into an agent on a development system. Make sure that this agent can be stopped and restarted. Hence I am suggesting the use of a development system than a production system. Loading the module can be done from Sun Management Center Console, using the host details window of the agent.

Start Agent in Interactive Mode

Now, as superuser, stop the agent and start it in interactive mode. The agent interactive mode presents an interactive command shell that lets you navigate thru the objects within the agent.

bash-3.00# pwd
bash-3.00# /opt/SUNWsymon/sbin/es-stop -a
Stopping agent component
bash-3.00# /opt/SUNWsymon/sbin/es-start -ai
info Oct 12 21:34:57 agent Sun Management Center Version: 3.6.1, Build: 12, H491, (c) 2003 Sun Microsystems, Oct 12 21:34:57 agent registering import actions
info Oct 12 21:34:57 agent loading standard services
info Oct 12 21:34:57 agent standard services load complete
info Oct 12 21:34:57 agent agent host and port: agent007:2161
info Oct 12 21:34:57 agent trap handler destination host and port: agent007:162
info Oct 12 21:34:57 agent event trap destination host and port: agent007:163

Once the agent comes up in interactive mode, you need to wait for a few seconds until your module is loaded into the agent. If you know the location where your module is loaded, you can navigate there in the object tree hierarchy and ensure that the module is loaded.

agent:> cd .iso*demo
agent:demo> ls

Export MIB

After your module is loaded, you need to execute a mibExport command, with your module name as the argument. For example, if your module’s *-m.x file name is mydemo-m.x, then you run the command mibExport mydemo. At this point, the agent generates a *-mib.txt file (in this case, mydemo-mib.txt) in the /var/opt/SUNWsymon/cfg/ directory.

At this point, you may exit the agent interactive mode and run the agent in the default daemon mode.

agent:demo> mibExport mydemo
agent:demo> exit
syslog�� Oct 12 21:41:49 agent�������� *** terminating execution ***
bash-3.00# /opt/SUNWsymon/sbin/es-start -a
ls -altr
Agent started successfully.
bash-3.00# ls -altr /var/opt/SUNWsymon/cfg/mydemo-mib.txt
-rw-r–r–�� 1 root���� root������� 2650 Oct 12 21:40 /var/opt/SUNWsymon/cfg/mydemo-mib.txt
bash-3.00# tail /var/opt/SUNWsymon/cfg/mydemo-mib.txt
::= { myDemoEntry 5 }

myDemoMounted OBJECT-TYPE
SYNTAX����� DisplayString
MAX-ACCESS� read-only
STATUS����� current
“Character string value”
::= { myDemoEntry 6 }

Additional Notes:

  1. The above examples assume that you installed Sun Management Center product with /opt as the BASE_DIR. If you used some other directory (e.g. /myvol/opt) then replace /opt with that directory in the above examples.
  2. The MIB variable names will be same as the node names you have given in the Sun Management Center module. To make these variable names look more ASN.1 like, you may need to edit the generated MIB text file.
  3. You may want to edit the MIB file so that you add the necessary import definitions for MIBs.
  4. The Description fields for MIB variables are genrated using the mediumDesc of the module nodes. You may want to add elaborate descriptions for MIB variables.

Bought “Solaris Internals” Book

Today, I bought a copy of Solaris Internals: Solaris 10 and OpenSolaris Kernel Architecture by Richard McDougall and Jim Mauro. The previous edition of the book is available in Low Priced Indian Edition (Rs 500) and this International edition costed me Rs 4000 approximately. This book is worth that price.

A quick glance thru the table of contents tells me that there are new chapters added for Process Rights Management, Zones etc.

May take a few weeks before I dig deeper into this book.

Open Solaris Telugu Translation Group

We will soon kickstart the OpenSolaris Telugu Translations. The Discussion group g11n-te-discuss is already started and can be found at:

The webpage for the team will take a short while, may be mid next week. Meanwhile, we can bootstrap the work using the discussion forum above.

If you are interested in helping out with the OpenSolaris Telugu Translation effort, please subscribe to the alias g11n-te-discuss on and start contributing. Your help is very much appreciated.

Telugu Translations For Solaris

Today, spent some time interacting on the Open Solaris I18n Discuss forums about the Telugu translation plans. Did some translations of a .po file as per the instructions at this genunix page. However, I have hit a dead end, especially while creating a fool proof build infrastructure. So more work for the weekends and upcoming nights.

Will soon start a I18n Discussion Forum for Telugu on Open Solaris site, thanks to the leads given by folks there. Interested people can check this blog early next week for links and logistics.

Some experiments with localization to Telugu

Until this evening, I knew nothing about the localization process. I have been doing internationalization of our software right since 1996, but never tried localizing anything till today. This evening, a few of us guys have ganged up and thought about localizing for Solaris. Siva has done some good work for Tamil, as can be seen in his blog-1 and blog-2.
With his help, started prototyping Solaris Telugu localization. The screenshot for this babystep is here. The font quality etc. are not good yet, but I am sure I can fix them in the due course.
Looks like a good timepass for next few weekends.

Laptop is back, with Solaris 11 Build 41

Laptop is back after having the mother board changed. The Solaris 11 Build 41 on the harddisk remained untouched. So brought it back live and continuously stress testing it for the last 8 hours with lot of downloads, compilations and watching football live!

Now the laptop features frkit, wifi drivers, Open Office, inet menu and few other software in addition to barebone Solaris 11 build. Also installed Sun Studio 11.