Re: Pass the port number to an extension command in snmpd.conf
Wes Hardaker <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Sparta |
| Message-ID | <[email protected]> |
VC> pass_persist .1.3.6.1.4.1.1206 /usr/bin/custom_app 5200 VC> What I want to do is pass the port number that the request came in on to VC> custom_app as a parameter, instead of "5200" above. Unfortunately, you can't do that. In fact, the transport system is designed *not* to pass that type of information all over the place. And although a number of use cases for wanting it may be valid, in the general case it's actually problematic. There are times, for instance, when there is no port number as a request may have come in over a transport that doesn't have one (eg, via AgentX, via the disman event-mib support, via appletalk, ...). So we don't generally pass the transport address that received the information down into the lower layers because it's not really safe to assume you can get it. -- Wes Hardaker Cobham Analytic Solutions ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ 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