Networking Forums

Networking Forums > Computer Networking > Linux Networking > snmp - run script

Reply
Thread Tools Display Modes

snmp - run script

 
 
Adamo
Guest
Posts: n/a

 
      04-03-2006, 04:18 PM
Hi,
When I want run script "update.stats" via snmp I have:
UCD-SNMP-MIB::extNames.2 = STRING: traffic
UCD-SNMP-MIB::extCommand.1 = STRING:
/root/startup_scripts/config/update.stats
UCD-SNMP-MIB::extCommand.2 = STRING:
/root/startup_scripts/config/update.stats
UCD-SNMP-MIB::extResult.1 = INTEGER: 1
UCD-SNMP-MIB::extResult.2 = INTEGER: 1
UCD-SNMP-MIB::extOutput.1 = STRING:
/root/startup_scripts/config/update.stats: Permission
deniedUCD-SNMP-MIB::extOutput.2 = STRING:
/root/startup_scripts/config/update.stats: Permission denied

So..I mean the line Permission denied. When I read from command "ps"
works fine.

Where's the problem ?
Thanks
 
Reply With Quote
 
 
 
 
Angel
Guest
Posts: n/a

 
      04-03-2006, 10:13 PM
This scrip may have permission for snmp user.

"Adamo" <_(E-Mail Removed)> escribió en el mensaje
news:e0rhs5$rbr$(E-Mail Removed)...
> Hi,
> When I want run script "update.stats" via snmp I have:
> UCD-SNMP-MIB::extNames.2 = STRING: traffic
> UCD-SNMP-MIB::extCommand.1 = STRING:
> /root/startup_scripts/config/update.stats
> UCD-SNMP-MIB::extCommand.2 = STRING:
> /root/startup_scripts/config/update.stats
> UCD-SNMP-MIB::extResult.1 = INTEGER: 1
> UCD-SNMP-MIB::extResult.2 = INTEGER: 1
> UCD-SNMP-MIB::extOutput.1 = STRING:
> /root/startup_scripts/config/update.stats: Permission
> deniedUCD-SNMP-MIB::extOutput.2 = STRING:
> /root/startup_scripts/config/update.stats: Permission denied
>
> So..I mean the line Permission denied. When I read from command "ps" works
> fine.
>
> Where's the problem ?
> Thanks



 
Reply With Quote
 
Andrei Ivanov
Guest
Posts: n/a

 
      04-06-2006, 01:20 AM
Adamo <_(E-Mail Removed)> wrote:
> When I want run script "update.stats" via snmp I have:
> UCD-SNMP-MIB::extNames.2 = STRING: traffic
> UCD-SNMP-MIB::extCommand.1 = STRING:
> /root/startup_scripts/config/update.stats


Root's home directory /root/ can be accessed by root (uid=0)
only by default. You should better put that script in
/usr/local/sbin, or somewhere else.

--
andrei
 
Reply With Quote
 
Adamo
Guest
Posts: n/a

 
      04-06-2006, 07:27 AM
Andrei Ivanov wrote:
> Adamo <_(E-Mail Removed)> wrote:
>
>> When I want run script "update.stats" via snmp I have:
>>UCD-SNMP-MIB::extNames.2 = STRING: traffic
>>UCD-SNMP-MIB::extCommand.1 = STRING:
>>/root/startup_scripts/config/update.stats

>
>
> Root's home directory /root/ can be accessed by root (uid=0)
> only by default. You should better put that script in
> /usr/local/sbin, or somewhere else.
>


Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Copy files using filenames from text files with shell script or bash script altariamx2003@gmail.com Linux Networking 4 11-23-2006 08:27 AM
net-snmp exec script Adamo Linux Networking 0 03-31-2006 08:25 AM
SNMP service is running OK, but get no SNMP relevant data from ser Marlon Brown Windows Networking 0 01-18-2006 06:14 PM
SNMP Help Please? Joe Windows Networking 0 09-22-2005 12:44 AM
SNMP help John Dollar Linux Networking 1 11-04-2003 09:51 PM



1 2 3 4 5 6 7 8 9 10 11