Net-snmp extend functionality
"Baltazar Francois" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am currently implementing the net-snmp agent, I want to extend it with the extend-sh function.
extend-sh starttomcat /home/ines/agent_snmp/commands/tomcat/starttomcat.sh
extend-sh stoptomcat /home/ines/agent_snmp/commands/tomcat/stoptomcat.sh
extend-sh bandwith /home/ines/agent_snmp/commands/bandwith/bandwith.sh
This is an extract of my snmpd.conf file.
The OID for the starttomcat command is .1.3.6.1.4.1.8072.1.3.2.3.1.2.11.115.116.97.114.116.116.111.109.99.97.116
For stoptomcat it's .1.3.6.1.4.1.8072.1.3.2.3.1.2.10.115.116.111.112.116.111.109.99.97.116
For bandwith .1.3.6.1.4.1.8072.1.3.2.3.1.2.8.98.97.110.100.119.105.116.104
The last OID numbers represents the name of the command in decimal form, but I don´t understand how to calculate the number after .1.3.6.1.4.1.8072.1.3.2.3.1.2. for starttomcat it´s 11, stoptomcat is 10, and bandwith is 8.
Is this number really the length of the string command?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users