Why -g option is always used with a command defined with pass directive for object specified in notificationEvent directive in Red Hat Enterprise Linux 6

Solution Unverified - Updated -

Issue

  • We want to send a trap upon a following notificationEvent configuration in snmpd.conf when the network interface events (linkup/linkdown) happens.
notificationEvent  linkUpTrap    linkUp   ifIndex ifAdminStatus ifOperStatus ifalias
notificationEvent  linkDownTrap  linkDown ifIndex ifAdminStatus ifOperStatus ifalias
  • Also, we are using 'pass' directive to make information for ifAlias as below.
pass .1.3.6.1.2.1.31.1.1.1.18 /etc/snmp/ifalias.pl
  • We found that -g option is always used with this command, it never use -n option.

Environment

Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content