FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » snmpset with type 'a'
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: snmpset with type 'a' [message #175362 is a reply to message #175360] Sun, 11 September 2011 20:03 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
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(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Re: Startup City 2011 (September 24th,Mumbai)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 12:42:49 GMT 2024

Total time taken to generate the page: 0.04704 seconds