LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 01-28-2004, 07:09 PM   #1
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Rep: Reputation: 15
AIX and net-snmp


Hello all,
I use net-snmp to get info from cisco routers. I did and snmpwalk -v1 -c public hostipaddress
and that yeilds all the MIBs and IOD's that are available on the router. When I do this to an AIX box it only brings back the ip stuff for the most part. I want to be able to get disk space, mem usage, cpu status and things like that. Any ideas? Thanks ahead of time.
 
Old 01-29-2004, 12:25 PM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Which version of AIX is the box running? AIX 5.2 uses SNMP v3 by default; earlier versions use SNMP v1. Maybe that is making a difference. I have used Netview on AIX boxes in the past to get all the mib information. It worked OK; but it was a few years ago and I can't remember if there was anything extra I had to do to get it working.
 
Old 01-30-2004, 07:58 AM   #3
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Original Poster
Rep: Reputation: 15
Both 5.2 and older versions of aix. I'm able to do a snmpwalk on the older boxes but I don't get the system info, just the tcp/ip info. I see there is a snmpd.conf in /etc. I think that if I modify that I may have luck but I'm always open for suggestions.
 
Old 02-03-2004, 01:13 AM   #4
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
G'day cjdock,

When querying a net device you are querying the agent on the box. Concentrate on what agent you a running on the AIX box. The mib is loaded on the management server to help us humans change OID's into meaningful information.

I would put net-snmp agent on the aix box, and then you would get more info. Try http://aixpdslib.seas.ucla.edu/packages/net-snmp.html

IBM would like you to buy the Tivoli agent.

Have you had fun with DPID2?

Cheers from sunny OZ!
 
Old 02-13-2004, 07:00 PM   #5
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Original Poster
Rep: Reputation: 15
Hello bobthebaritone,
Is there an easy way to just get hard drive space, cpu utilization, processes...things like that without having to load anything on the aix 5L box? Do you have any sample snmpv3.conf files you could share? I want to use V3 but don't need the encryption part. I want to keep the implementation easy and straight forward. Any book recommendation or conf files examples would be great. Thanks.
 
Old 02-16-2004, 09:04 PM   #6
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
G'day cjdock,

Unfortunately you do if you want the results via SNMP. SNMP relies upon the host agent program to give this data.

Get the NET-SNMP binaries from the site I mentioned before.

Cheers

Bob
 
Old 02-17-2004, 09:21 AM   #7
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Original Poster
Rep: Reputation: 15
There is an snmp damon running, there is mibs.def file with a bunch of snmp looking items. Even though the box is defaulted to run snmpv3, it looks like it's running snmpv2/1. If I run an snmpwalk -v1 -c public hostname, it retuns a bunch of ip related info. I want more on the system though, like harddrive space cpu usage..things like that. Is it a matter of specifing what iod's I want loaded up by stating them in the snmpv3.conf file? I just need a starting point and I'll be all set. Thanks for any info.
 
Old 02-17-2004, 06:51 PM   #8
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
G'day,

The AIX agent has more than one part - I've read there sholud also be a hostmibd running. Are you running 5.2? Check out http://publib16.boulder.ibm.com/pser...#hywe61009ferg


The fundamental understanding of agent technology running on your host is that SNMP queries will only get what the agent can supply.

CPU support MUST be built into the agent to get information about that resource via SNMP. It really doesn't matter if it is v1 -2c or 3, it is the agent that you need to be concerned about.

Can't you get the net-snmp agent onto this box?

Cheers

Bob @ 32 Degrees C in Sydney
 
Old 02-18-2004, 07:17 AM   #9
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Original Poster
Rep: Reputation: 15
Wish I could get the agent on the sixty AIX V5.2 boxes but they are used as Credit Union databases that have our home brewed application software on them. The developers don't want any software other than there own installed on these boxes.
There has to be native snmp agent software on these boxes that I can configure Nagios to poll using snmp to get the info I want. I manage about 520 router using snmp and Nagios right now. snmp on the cisco routers was a breeze to set up, windows boxes are easy to talk to via snmp, it's just these aix boxes that are giving me a hard time to figure out but I don't think it can be that hard....
 
Old 02-18-2004, 05:01 PM   #10
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
SNMP wont work for you in this case. Use topas to collect data then fire it via cron & ssh to your nagios box. Bupass snmp entirely!

Cheers

Bob
 
Old 03-19-2004, 09:29 PM   #11
rstory
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by cjdock
Both 5.2 and older versions of aix. I'm able to do a snmpwalk on the older boxes but I don't get the system info, just the tcp/ip info. I see there is a snmpd.conf in /etc. I think that if I modify that I may have luck but I'm always open for suggestions.
If that file has entries like 'rocommunity', 'com2sec', 'view', then it is a net-snmp conf file. See the net-snmp FAQ on configuring access control.

http://www.net-snmp.org/FAQ.html
 
Old 03-19-2004, 10:58 PM   #12
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Original Poster
Rep: Reputation: 15
Well, after some work, I have net-snmp talking to the aix boxes. On the aix 5l boxes I converted them back to snmp v1, then I made sure that the hostmibd and snmpdv1 daemon were both running. I found a free, linux based program call sentinix. It uses net-snmp, and a program called cacti and nagios. Between the 2 programs I can monitor and graph all the mounted partitions and much more using snmp and with no additional agents install on the aix box. Sentinix is really worth checking out if you want to monitor anything and would like notification and graphs. It's some work getting it all working but very worth it in the end.
 
Old 03-20-2004, 11:44 PM   #13
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
G'day,

Sentinix - an agent for aix? I'll google that one...

I have used cacti and nagios - good stuff!

Cheers

Bob the Baritone
 
Old 03-21-2004, 08:19 AM   #14
cjdock
Member
 
Registered: Oct 2003
Distribution: slackware9.1
Posts: 44

Original Poster
Rep: Reputation: 15
Sentinix is not an agent. It's a group of programs on a cd, along with the operating system (slackware). It has mysql, php, ssl, nagios, cacti, snort and more all pre-configured. You just boot to the cd and do the install and then all those programs are ready to go. The beauty is that I didn't have to run any agent on the AIX box other than the native snmpd already there. I'm monitoring windows, routers, linux and aix boxes and producing graphs for tend analysis and e-mail alerts when things are not performing correctly. I did have to upgrade cacti on the sentinix install to .8.4 which I found on the sentinix ftp site and I upgraded to nagios 1.2 also.
 
Old 08-05-2015, 01:57 AM   #15
uma mageshwari
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Rep: Reputation: Disabled
Smile

i am using net-snmp in aix .it is running ..but in the log it is saying agent not initialized..why?
how to initialize agent in aix
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 06:08 AM
SNMP in Aix 4.3.3 Analista AIX 4 03-22-2005 12:20 PM
Net SNMP WiWa Linux - Software 3 03-19-2004 10:41 PM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 11:11 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