Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > can't execute @SNMPGET@ on os/x box?

Reply
Thread Tools

can't execute @SNMPGET@ on os/x box?

 
 
Evan Platt
Guest
Posts: n/a
 
      08-17-2006
Trying to run NRG (snmp type data tool) on os/x box..

I've googled and searched the NRG site... If I missed this, please let
me know where to look. Installed NRG from port install. make
rediscover and notify ran fine.

The run-nrg that was generated with #!@PERL@ as the first line.

That right there gives a Command not found trying to execute.

I changed the first line to #!/opt/local/bin/perl , and now it
executes (well, sort of) but gives:

#-------------------------------------------------------------------------------
run-nrg 9214: started at Mon Aug 14 13:25:22 2006 (1155587122)
can't execute @SNMPGET@ -v2c -c public 192.168.1.2 system.sysUpTime.0
run-nrg: terminated on Mon Aug 14 13:25:22 2006 (1155587122)

I looked through the generated run-nrg, but I'd rather fix it rather
than band aid (i.e. go and modify run-nrg) unless that's what I need
to do.

I've put the script on my webserver:
http://www.espphotography.com/run-nrg.txt

Any help appreciated.

Thanks.

Evan
 
Reply With Quote
 
 
 
 
Sherm Pendley
Guest
Posts: n/a
 
      08-17-2006
Evan Platt <evan@*******************************> writes:

> Trying to run NRG (snmp type data tool) on os/x box..
>
> I've googled and searched the NRG site... If I missed this, please let
> me know where to look. Installed NRG from port install. make
> rediscover and notify ran fine.
>
> The run-nrg that was generated with #!@PERL@ as the first line.
>
> That right there gives a Command not found trying to execute.
>
> I changed the first line to #!/opt/local/bin/perl , and now it
> executes (well, sort of) but gives:
>
> #-------------------------------------------------------------------------------
> run-nrg 9214: started at Mon Aug 14 13:25:22 2006 (1155587122)
> can't execute @SNMPGET@ -v2c -c public 192.168.1.2 system.sysUpTime.0
> run-nrg: terminated on Mon Aug 14 13:25:22 2006 (1155587122)


Looks to me like it did *not* build fine. There are multiple places where a
placeholder - that's the @FOO@ stuff, with leading and trailing ats - wasn't
expanded in run-nrg. It looks like it was simply copied as-is, without any
expansions.

I'd ask the port maintainer and/or in a forum dedicated to NRG about why the
placeholders in run-nrg aren't being expanded properly.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create and execute bat file in vb.net Eric Wood ASP .Net 2 07-10-2007 06:48 AM
i am trying to Execute some command Bar Button but doesn't work =?Utf-8?B?ZG9ybGluZw==?= ASP .Net 0 06-23-2005 11:08 PM
Can i execute aspx file in my asp pag with server.execute method(sorry) Savas Ates ASP General 1 08-17-2004 04:52 PM
Re: asp Page events execute twice after PostBack again Tom Vande Stouwe MCSD.net ASP .Net 1 09-03-2003 03:34 PM
aspx Page events execute twice after HTTP POST Lewis ASP .Net 1 08-20-2003 01:46 PM



Advertisments