Sysedge SNMP OID


 
Thread Tools Search this Thread
Operating Systems Solaris Sysedge SNMP OID
# 1  
Old 10-27-2011
Sysedge SNMP OID

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:
#******************************************************#
#  IN CASE OF EMERGENCY, CALL FRONTLINE SUPPORT AT (555) 555-5555
#
# Primary ESA      = FirstN LastN
# Secondary ESA    = FirstN LastN
# Primary Customer = FirstN LastN
# Primary DBA      = FirstN LastN
# System Location  = MK E-09 T1-CH2-03
# Business Unit    = Dev Interfaces #1
# Console          = Blade Center
# System Type      = 7998-60X
#******************************************************#

Code to parse out what needed:
--------------------------------------------------------
Code:
#!/bin/sh

# Shell script to pull primary ESA out of a file

# Define some stuff
FILENAME=/etc/motd

# Do work
grep "Primary ESA" $FILENAME|cut -d\= -f2

This works great to pull just the one line out.

This script then needs to be added to the sysedge.cf file as:
-----------------------------------------------------------
Code:
extension 1 OctetString readwrite '/etc/primaryesa.sh'
extension 2 OctetString readwrite '/etc/secondaryesa.sh'
etc....

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?Smilie

Jeff
Moderator's Comments:
Mod Comment
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!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

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)
Discussion started by: vipul_prajapati
4 Replies

2. UNIX for Dummies Questions & Answers

Cacti SNMP Generic OID template, NaN problem

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)
Discussion started by: AndreiM
0 Replies

3. IP Networking

SNMP OID for Network Utilization measurement

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)
Discussion started by: franzramadhan
0 Replies

4. IP Networking

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

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)
Discussion started by: prabakar4all
0 Replies

5. Solaris

restarting sysedge on a solaris server

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)
Discussion started by: Pouchie1
0 Replies

6. Infrastructure Monitoring

Solaris 10 Snmp command to MiB OID

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)
Discussion started by: tien86
1 Replies

7. Solaris

sysedge restart

on a solaris box, if somebody restarts sysedge, which log file (path) can we look at to determine if sysedge was restarted or not? Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies

8. Solaris

Sysedge alarm threshold

Hello, how can we determine alarm threshold from sysedge in a solaris box? can anybody please help me? Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies

9. Infrastructure Monitoring

SNMP OID for System Status LED's

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)
Discussion started by: stamfdf
0 Replies

10. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

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)
Discussion started by: S_venkatesh
2 Replies
Login or Register to Ask a Question