extend errors on AIX 5.2

"Michalakopoulos, Anthony" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

 

I am trying to port some scripts we use via "extend" from Linux to AIX
5.2 and have noticed errors with the AIX agent that I can't account for.

For example, the snmpwalk below runs a script on the agent to report
number of available CPUs.

 

Both agents are net-snmp 5.4.1 and both execute the same shell script.
The relevant line in snmpd.conf is:

 

extend .1.3.6.1.4.1.5555.1 procNum /usr/local/bin/snmpproc procNum

 

In the AIX version, I am getting "Cannot find terminal" messages in the
walk, which confuses my poller.

I have tried redirecting standard error from the script to /dev/null,
but that made no difference.

 

Is there any reason why extend behaviour would be different between the
two platforms?

Has anybody else seen this AIX? Any suggestions on how to fix?

 

Redhat output (16 CPUs):

# snmpwalk -v1 -m ALL  -c <community> 10.0.X.X  .1.3.6.1.4.1.5555.1

SNMPv2-SMI::enterprises.5555.1.1.0 = INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.2.7.112.114.111.99.78.117.109 =
STRING: "/usr/local/bin/snmpproc"

SNMPv2-SMI::enterprises.5555.1.2.1.3.7.112.114.111.99.78.117.109 =
STRING: "procNum"

SNMPv2-SMI::enterprises.5555.1.2.1.4.7.112.114.111.99.78.117.109 = ""

SNMPv2-SMI::enterprises.5555.1.2.1.5.7.112.114.111.99.78.117.109 =
INTEGER: 5

SNMPv2-SMI::enterprises.5555.1.2.1.6.7.112.114.111.99.78.117.109 =
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.7.7.112.114.111.99.78.117.109 =
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.20.7.112.114.111.99.78.117.109 =
INTEGER: 4

SNMPv2-SMI::enterprises.5555.1.2.1.21.7.112.114.111.99.78.117.109 =
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.3.1.1.7.112.114.111.99.78.117.109 =
STRING: "16"

SNMPv2-SMI::enterprises.5555.1.3.1.2.7.112.114.111.99.78.117.109 =
STRING: "16"

SNMPv2-SMI::enterprises.5555.1.3.1.3.7.112.114.111.99.78.117.109 =
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.3.1.4.7.112.114.111.99.78.117.109 =
INTEGER: 0

SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.78.117.109.1 =
STRING: "16"

 

AIX 5.2 output (2 CPUs):

# snmpwalk -v1 -m ALL  -c <communuty> 10.0.X.X .1.3.6.1.4.1.5555.1

SNMPv2-SMI::enterprises.5555.1.1.0 = INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.2.7.112.114.111.99.78.117.109 =
STRING: "/usr/local/bin/snmpproc"

SNMPv2-SMI::enterprises.5555.1.2.1.3.7.112.114.111.99.78.117.109 =
STRING: "procNum"

SNMPv2-SMI::enterprises.5555.1.2.1.4.7.112.114.111.99.78.117.109 = ""

SNMPv2-SMI::enterprises.5555.1.2.1.5.7.112.114.111.99.78.117.109 =
INTEGER: 5

SNMPv2-SMI::enterprises.5555.1.2.1.6.7.112.114.111.99.78.117.109 =
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.7.7.112.114.111.99.78.117.109 =
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.20.7.112.114.111.99.78.117.109 =
INTEGER: 4

SNMPv2-SMI::enterprises.5555.1.2.1.21.7.112.114.111.99.78.117.109 =
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.3.1.1.7.112.114.111.99.78.117.109 =
STRING: "Cannot find terminal."

SNMPv2-SMI::enterprises.5555.1.3.1.2.7.112.114.111.99.78.117.109 =
STRING: "Cannot find terminal.

2"

SNMPv2-SMI::enterprises.5555.1.3.1.3.7.112.114.111.99.78.117.109 =
INTEGER: 2

SNMPv2-SMI::enterprises.5555.1.3.1.4.7.112.114.111.99.78.117.109 =
INTEGER: 0

SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.78.117.109.1 =
STRING: "Cannot find terminal."

SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.78.117.109.2 =
STRING: "2"

 

 

Regards,

 

Tony

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.