This is a multi-part message in MIME format.

--===============1744470604==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C87995.95248EB9"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C87995.95248EB9
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

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.

=20

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

=20

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

=20

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.

=20

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?

=20

Redhat output (16 CPUs):

# snmpwalk -v1 -m ALL -c 10.0.X.X .1.3.6.1.4.1.5555.1

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

SNMPv2-SMI::enterprises.5555.1.2.1.2.7.112.114.111.99.78. 117.109 =3D
STRING: "/usr/local/bin/snmpproc"

SNMPv2-SMI::enterprises.5555.1.2.1.3.7.112.114.111.99.78. 117.109 =3D
STRING: "procNum"

SNMPv2-SMI::enterprises.5555.1.2.1.4.7.112.114.111.99.78. 117.109 =3D ""

SNMPv2-SMI::enterprises.5555.1.2.1.5.7.112.114.111.99.78. 117.109 =3D
INTEGER: 5

SNMPv2-SMI::enterprises.5555.1.2.1.6.7.112.114.111.99.78. 117.109 =3D
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.7.7.112.114.111.99.78. 117.109 =3D
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.20.7.112.114.111.99.78 .117.109 =3D
INTEGER: 4

SNMPv2-SMI::enterprises.5555.1.2.1.21.7.112.114.111.99.78 .117.109 =3D
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.3.1.1.7.112.114.111.99.78. 117.109 =3D
STRING: "16"

SNMPv2-SMI::enterprises.5555.1.3.1.2.7.112.114.111.99.78. 117.109 =3D
STRING: "16"

SNMPv2-SMI::enterprises.5555.1.3.1.3.7.112.114.111.99.78. 117.109 =3D
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.3.1.4.7.112.114.111.99.78. 117.109 =3D
INTEGER: 0

SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.78. 117.109.1 =3D
STRING: "16"

=20

AIX 5.2 output (2 CPUs):

# snmpwalk -v1 -m ALL -c 10.0.X.X .1.3.6.1.4.1.5555.1

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

SNMPv2-SMI::enterprises.5555.1.2.1.2.7.112.114.111.99.78. 117.109 =3D
STRING: "/usr/local/bin/snmpproc"

SNMPv2-SMI::enterprises.5555.1.2.1.3.7.112.114.111.99.78. 117.109 =3D
STRING: "procNum"

SNMPv2-SMI::enterprises.5555.1.2.1.4.7.112.114.111.99.78. 117.109 =3D ""

SNMPv2-SMI::enterprises.5555.1.2.1.5.7.112.114.111.99.78. 117.109 =3D
INTEGER: 5

SNMPv2-SMI::enterprises.5555.1.2.1.6.7.112.114.111.99.78. 117.109 =3D
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.7.7.112.114.111.99.78. 117.109 =3D
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.2.1.20.7.112.114.111.99.78 .117.109 =3D
INTEGER: 4

SNMPv2-SMI::enterprises.5555.1.2.1.21.7.112.114.111.99.78 .117.109 =3D
INTEGER: 1

SNMPv2-SMI::enterprises.5555.1.3.1.1.7.112.114.111.99.78. 117.109 =3D
STRING: "Cannot find terminal."

SNMPv2-SMI::enterprises.5555.1.3.1.2.7.112.114.111.99.78. 117.109 =3D
STRING: "Cannot find terminal.

2"

SNMPv2-SMI::enterprises.5555.1.3.1.3.7.112.114.111.99.78. 117.109 =3D
INTEGER: 2

SNMPv2-SMI::enterprises.5555.1.3.1.4.7.112.114.111.99.78. 117.109 =3D
INTEGER: 0

SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.78. 117.109.1 =3D
STRING: "Cannot find terminal."

SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.78. 117.109.2 =3D
STRING: "2"

=20

=20

Regards,

=20

Tony


------_=_NextPart_001_01C87995.95248EB9
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

xmlns=3D"urn:schemas-microsoft-comfficeffice" =
xmlns:w=3D"urn:schemas-microsoft-comffice:word" =
xmlns:x=3D"urn:schemas-microsoft-comffice:excel" =
xmlns=3D"urn:schemas-microsoft-comfficeowerpoint" =
xmlnsa=3D"urn:schemas-microsoft-comffice:activation" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









style=3D'font-size:10.0pt;
font-family:Arial'>Hi,>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>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.>>



style=3D'font-size:10.0pt;
font-family:Arial'>For example, the snmpwalk below runs a script on the =
agent to
report number of available CPUs.>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Both agents are net-snmp 5.4.1 and both execute the =
same
shell script. The relevant line in snmpd.conf =
is:>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>extend .1.3.6.1.4.1.5555.1 procNum =
/usr/local/bin/snmpproc
procNum>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>In the AIX version, I am getting “Cannot find =
terminal”
messages in the walk, which confuses my =
poller.>>



style=3D'font-size:10.0pt;
font-family:Arial'>I have tried redirecting standard error from the =
script to
/dev/null, but that made no difference.>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Is there any reason why extend behaviour would be =
different between
the two platforms?>>



style=3D'font-size:10.0pt;
font-family:Arial'>Has anybody else seen this AIX? Any suggestions on =
how to
fix?>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>Redhat output (16 =
CPUs):>>



style=3D'font-size:10.0pt;
font-family:Arial'># snmpwalk -v1 -m ALL  -c <community> =
10.0.X.X 
..1.3.6.1.4.1.5555.1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.1.0 =3D INTEGER: =
1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.2.7.112.114.111.99.=
78.117.109
=3D STRING: =
"/usr/local/bin/snmpproc">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.3.7.112.114.111.99.=
78.117.109
=3D STRING: "procNum">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.4.7.112.114.111.99.=
78.117.109
=3D "">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.5.7.112.114.111.99.=
78.117.109
=3D INTEGER: 5>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.6.7.112.114.111.99.=
78.117.109
=3D INTEGER: 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.7.7.112.114.111.99.=
78.117.109
=3D INTEGER: 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.20.7.112.114.111.99=
..78.117.109
=3D INTEGER: 4>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.21.7.112.114.111.99=
..78.117.109
=3D INTEGER: 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.1.7.112.114.111.99.=
78.117.109
=3D STRING: "16">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.2.7.112.114.111.99.=
78.117.109
=3D STRING: "16">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.3.7.112.114.111.99.=
78.117.109
=3D INTEGER: 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.4.7.112.114.111.99.=
78.117.109
=3D INTEGER: 0>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.=
78.117.109.1
=3D STRING: "16">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial;font-weight:bold'>AIX 5.2 output (2 =
CPUs):>>



style=3D'font-size:10.0pt;
font-family:Arial'># snmpwalk -v1 -m ALL  -c <communuty> =
10.0.X.X
..1.3.6.1.4.1.5555.1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.1.0 =3D INTEGER: =
1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.2.7.112.114.111.99.=
78.117.109
=3D STRING: =
"/usr/local/bin/snmpproc">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.3.7.112.114.111.99.=
78.117.109
=3D STRING: "procNum">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.4.7.112.114.111.99.=
78.117.109
=3D "">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.5.7.112.114.111.99.=
78.117.109
=3D INTEGER: 5>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.6.7.112.114.111.99.=
78.117.109
=3D INTEGER: 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.7.7.112.114.111.99.=
78.117.109
=3D INTEGER: 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.20.7.112.114.111.99=
..78.117.109
=3D INTEGER: 4>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.2.1.21.7.112.114.111.99=
..78.117.109
=3D INTEGER: 1>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.1.7.112.114.111.99.=
78.117.109
=3D STRING: "Cannot find =
terminal.">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.2.7.112.114.111.99.=
78.117.109
=3D STRING: "Cannot find terminal.>>



style=3D'font-size:10.0pt;
font-family:Arial'>2">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.3.7.112.114.111.99.=
78.117.109
=3D INTEGER: 2>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.3.1.4.7.112.114.111.99.=
78.117.109
=3D INTEGER: 0>>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.=
78.117.109.1
=3D STRING: "Cannot find =
terminal.">>



style=3D'font-size:10.0pt;
font-family:Arial'>SNMPv2-SMI::enterprises.5555.1.4.1.2.7.112.114.111.99.=
78.117.109.2
=3D STRING: "2">>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Regards,>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Tony>>









------_=_NextPart_001_01C87995.95248EB9--


--===============1744470604==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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/
--===============1744470604==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============1744470604==--