No sma service at Solaris 10

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
yoas
Posts: 12
Joined: Sun Jan 13, 2008 9:18 pm
Location: Indonesia
Contact:

No sma service at Solaris 10

Post by yoas »

Dear all,
I have solaris 10, but no sma service installed.

Code: Select all

@:/root !ksh>> svcs -a | grep management
offline        Apr_20   svc:/application/management/snmpdx:default
offline        May_01   svc:/application/management/dmi:default

and when I view from package:

Code: Select all

@:/root !ksh>> pkginfo | grep snmp
application SMCnetsnmp                   netsnmp
but i didn't see any snmp.conf at /etc/sma/snmp/snmpd.conf. At /etc/sma/snmp/ only have 2 files:

Code: Select all

@:/etc/sma/snmp !ksh>> ls -la
total 8
drwxr-xr-x   3 root     bin          512 Sep  7  2008 .
drwxr-xr-x   3 root     bin          512 Sep  7  2008 ..
-rw-------   1 root     bin          382 Mar 29  2006 fmd-trapgen.conf
drwxr-xr-x   2 root     bin          512 Sep  7  2008 mibs
@:/etc/sma/snmp !ksh>> pwd
/etc/sma/snmp
anybody can help me how to install sma or make snmp on my OS running well? thank you..
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Install net-snmp from the sun open source repository.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ZhanQui
Posts: 1
Joined: Fri Jun 19, 2009 12:10 am

Post by ZhanQui »

This is probably too late for you yoas, but hope this helps some others

Solaris10 comes with the sun version of net-snmp by default
you don't need to install it, you just need to enable it.

Create a config file (you will specify your community name here) :

Code: Select all

bash-3.00# /usr/sfw/bin/snmpconf
Turn on sma (System Management Agent)

Code: Select all

bash-3.00# svcadm enable sma
See it running (when it's not enabled, nothing will return)

Code: Select all

bash-3.00# svcs | grep sma
online          9:11:06 svc:/application/management/sma:default
Test walk the localhost

Code: Select all

bash-3.00# /usr/sfw/bin/snmpwalk -v1 -c MyCommunityName 127.0.0.1
See which modules are included

Code: Select all

-bash-3.00# /usr/sfw/bin/net-snmp-config --snmpd-module-list
Say you were looking for DiskIO you would look at these:

Code: Select all

bash-3.00# /usr/sfw/bin/snmpwalk -v1 -c MyCommunityName 127.0.0.1 1.3.6.1.4.1.2021.13.15
bash-3.00# /usr/sfw/bin/snmptable -v1 -c MyCommunityName 127.0.0.1 diskIOTable
HTH!
mattsn0w
Posts: 6
Joined: Thu Apr 19, 2007 10:46 am
Location: San Jose, CA.

Post by mattsn0w »

ZhanQui wrote:This is probably too late for you yoas, but hope this helps some others

Solaris10 comes with the sun version of net-snmp by default
you don't need to install it, you just need to enable it.

just an FYI, its version 5.0.9 (end of lifed code) and doesn't support 64-bit counters. not sure about you, but for me it makes things difficult at best.
rementis
Posts: 1
Joined: Thu Dec 02, 2010 4:26 pm

Re: No sma service at Solaris 10

Post by rementis »

If you don't have sma (net-smpd that comes with Solaris) installed, you can get it working by installing these packages from the Solaris DVD:

SUNWsmaS SUNWsmagt SUNWsmcmd SUNWsmdoc SUNWsmmgr

Then disable this service:

svc:/application/management/snmpdx:default

And enable this one:

svc:/application/management/sma:default
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest