Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Start SNMP on non-XServe OS X Server OS X Server
This hint is just ment to instruct a user on how to turn SNMP (a brief overview of SNMP is at the end of the hint) on with basic setup info. How to use the CLI to get info is not dealt with ... or you can buy a graphical interface to monitor your Mac. By no standard am I an expert on this; I have been forced to use this method to monitor my server since Apple does not support "Server Monitor" (a great monitoring app) on the G4 on which I installed my server software (I should have bought an XServe; if you want to remote monitor your Mac, read on). So anyway, I had to learn a new thing, not so bad.

Basic setup of SNMP on OS X server:
[client is not the same; Server only in 10.2]
  1. Log in as Root. This is easier so you can edit the hidden files you need to. If you know how to use the sudo command and a unix text editor, feel free.
  2. Use the Go -> Go to Folder command and enter /etc.
  3. In the list of files, find hostconfig and open it.
  4. Under the header # Services, add SNMPSERVER=-YES- below the list of other services, and save the file.
  5. Now open Terminal window and type or paste snmpconf -g basic_setup (you must be root user or use sudo command). Enter man snmpconf first to read about this command if you wish.
  6. Follow the instructions onscreen to set up the basics. This can get very detailed and you can run it again after you read more on SNMP and understand what to enter better.
  7. When you finish, I would restart ... but if you know how to use the CLI to start the process or restart the SNMP process, you can do that instead.
Now you can use SNMP commands from a UNIX terminal on any Mac and get info about the Mac you just set up.

For the Newbie, SNMP is Simple Network Management Protocol, which is used in some cases to manage a PC and more so on the Mac-end to monitor machines. You can get a verity of information like running processes, CPU usage, temperatures and lots more. The information you get depends on two things. Your hardware can supply the information to the system and the MIB (Management Information Base) files installed in your system. All Mac OS X installs include some form of SNMP; you just have to turn it on and use it. For more information, go to www.net-snmp.com and www.dartware.com/net-snmp.

[robg adds: I haven't tested this one, and I'm not sure if it's even possible on Client as opposed to Server -- anyone know for sure?]
    •    
  • Currently 1.82 / 5
  You rated: 2 / 5 (11 votes cast)
 
[32,556 views]  

Start SNMP on non-XServe OS X Server | 4 comments | Create New Account
Click here to return to the 'Start SNMP on non-XServe OS X Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Start SNMP on non-XServe OS X Server
Authored by: fddi1 on Sep 22, '03 02:03:57PM

Yes, it's totally possible. You can use the host mib to get data out of an OS X client box. However, particular values, like the temperatures will only be available on the XServe using Apple's own mib since the PowerMac G3s and G4s do not have the temperature sensors built-in.



[ Reply to This | # ]
Start SNMP on non-XServe OS X Server
Authored by: bluehz on Sep 23, '03 07:37:15PM

This does indeed work on a standard 10.2.8 Client install. FYI Net-snmp is available through Fink also:

http://fink.sourceforge.net/pdb/search.php?s=snmp

Now if I just knew what to do with all these goodies! Looks like I got my wrok cut out in the learning department.



[ Reply to This | # ]
Start SNMP on non-XServe OS X Server
Authored by: Daniel Sofer on Jul 16, '04 01:58:32PM

Just tried this on a G4 Tower with Panther Server. Works fine.
SNMP is enabled from the Server Admin, but no setup information...

I'd be interested to see if the Server Monitor can be used with non Xserves... anyone have info on this?

Thanks!
Daniel



[ Reply to This | # ]
Start SNMP on non-XServe OS X Server
Authored by: smithadmin on Apr 26, '06 08:29:57AM

Works fine on my iBook, running 10.4.6.



[ Reply to This | # ]