Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3117

Re: snmpset with type 'a'

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: snmpset with type 'a'
Date 2011-09-11 16:03 -0400
Organization A noiseless patient Spider
Message-ID <j4j47c$3gt$1@dont-email.me> (permalink)
References <3660fb15-0c92-4457-a17c-39c7434d4a13@o15g2000vbe.googlegroups.com>

Show all headers | View raw


On 9/11/2011 3:33 PM, shija03 wrote:
> I am trying to do an snmpset with type 'a' IPADDRESS, I can't find any
> examples out there on how to do this.  I am on a Windows System and I
> have even tried to do inet_pton($ip_str) to convert the string IP
> address to inet_addr and pass it to snmpset, but in windows it says
> that inet_pton is not a recognized function.
>
> I have tried doing the snmpset using string type - this does not work,
> or unsigned integor and converting the IP address to long, obviously
> this doesn't work either.  Passing a string to type 'a':
>
>     snmpset(host, communitystring, 'a', '10.10.10.10')
>
> does not work either - I get the value given has the wrong type or
> length.
>
>     Any help would be great - and in this rare case, the php.net
> documentation does not help at all.
>

You must be running an old version of PHP.  It's available on Windows as 
of PHP 5.3 (which has been out for almost 2 years).

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

snmpset with type 'a' shija03 <shija03@gmail.com> - 2011-09-11 12:33 -0700
  Re: snmpset with type 'a' Jerry Stuckle <jstucklex@attglobal.net> - 2011-09-11 16:03 -0400
    Re: snmpset with type 'a' shija03 <shija03@gmail.com> - 2011-09-12 04:38 -0700
  Re: snmpset with type 'a' Jerry Stuckle <jstucklex@attglobal.net> - 2011-09-12 08:47 -0400

csiph-web