how to change snmp output

spring_64

Member


Messages: 72

#1
Hi all,
I want to change some snmp output. For example I found that SNMPv2-MIB::sysDescr.0 output is the output of uname -a command.
i have some questions:

1. What is software image and software versions output come from?
2. what is machine type output comes from?

For SNMPv2-MIB::sysDescr.0 I changed /usr/src/sys/conf/newvers.sh . Is there abetter way to do this?
 
OP
OP
S

spring_64

Member


Messages: 72

#3
Thanks for your reply.
I checked the manual. For sysDescr it saied override sysDescr.0 octet_str "my own sysDescr". How should I run this command?
 

Bobi B.

Active Member

Thanks: 91
Messages: 214

#4
Thanks for your reply.
I checked the manual. For sysDescr it saied override sysDescr.0 octet_str "my own sysDescr". How should I run this command?
This is not a command, but a configuration file change. I put sysDescr Blah, blah, blah in /usr/local/etc/snmpd.conf, told service where configuration file is (/etc/rc.conf.d/snmpd): snmpd_enable="YES", snmpd_conffile="/usr/local/etc/snmpd.conf", restarted the service: service snmpd restart, and now snmpwalk -v2c -cpublic 192.168.1.2 SNMPv2-MIB::sysDescr.0 outputs SNMPv2-MIB::sysDescr.0 = STRING: Blah, blah, blah.
 
OP
OP
S

spring_64

Member


Messages: 72

#5
Thank you.

you solved my sysDescr output problem.

What a bout machine type, software image and software version. I want to show my string. for example for machine type, I want to show blah blah instead of freebsd. I cannot find the oids.

Thank you
 

Bobi B.

Active Member

Thanks: 91
Messages: 214

#6
What a bout machine type, software image and software version. I want to show my string. for example for machine type, I want to show blah blah instead of freebsd. I cannot find the oids.
And how do you read those properties (where did you get those names from)? Using which program/command-line?
 

Bobi B.

Active Member

Thanks: 91
Messages: 214

#8
I checked these properties in solarwinds. Some oids are in my snmpd.conf, maybe they send the information.
Sorry. I have zero experience with solarwinds. If I were in your shoes I would try to find out how and where from they take those properties from.
 
Top