I'll preface this by saying I'm just a novice, with just basic knowledge of shell scripting, as well as basic knowledge in SNMP. I working on a script that takes the motd file on a solaris 5.x box and parses the information out into an OID to be passed to the SNMP server. We're using SysEDGE client and Spectrum on the server end.
MOTD file:
-----------------------------------
Code to parse out what needed:
--------------------------------------------------------
This works great to pull just the one line out.
This script then needs to be added to the sysedge.cf file as:
-----------------------------------------------------------
I realize that the script won't set the snmp OID to this value, and that's were I'm having the issue. What I want to do is to have a single script that pulls all the information sequentially as it's being called from the .cf file. I've tried to manually set the value, but was getting snmpset: Varbind could not be created. I've not created the MIB extensions on the server yet, but I was just trying to set the OID value to the private local machine(127.0.0.1). What am I missing? Can someone please help?
Jeff
Moderator's Comments:
Please use code tags when posting data and code samples!
Last edited by vgersh99; 10-27-2011 at 03:46 PM..
Reason: code tags, please!
i am working with embedded system -Dell DCS management sub system. my question is as below:
currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Hello All,
I have installed cacti and I have Nan values on created graph.
I really appreciate any help.
I have done the following:
1. Linux Ubuntu 12.04.2 LTS 64 bits
2. apt-get install cacti // the cacti Version 0.8.7i was installed
3. Accessed "http://MyIP/cacti/index.php"
4. Set SNMP... (0 Replies)
Hi everyone,
I've just copied a snmpget script from somewhere. This script is basically used to collect basic router information. Ex: syscontact,syslocation,etc. And I want to extend the script to be able to collect some network information and utilization of some machines ex: bandwith usage,... (0 Replies)
Hi ,
Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (0 Replies)
If I want to restart sysedge on a solaris box and it does not want to come up. It gets stucked. How can I check where the sysedge pid file so I can delete it and try to start sysedge again?
What can cause sysedge to not come up?
Thanks, (0 Replies)
Hi guys,
I am doing follow this guy Tech deposits. : iostat monitoring for zenoss and such
I stuck at this step:
Add a line into /etc/snmp/snmpd.conf file:
pass .1.3.6.1.4.1.2021.255.1 /usr/local/bin/sar_iostat_snmp.sh -m 1 -d dev253 -o .1.3.6.1.4.1.2021.255.1
and test snmp by the... (1 Reply)
I am trying to locate the proper MIB and OID location, to determine if the system attention light is on IBM-702x servers running 5.x.
Currently, we get this on our Blade Centers Management Modules at location: 1.3.6.1.4.1.2.3.51.2.2.8.2.1.1.7.xx were xx is the actual Blade number. A value of 1... (0 Replies)
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)