Visit Our UNIX and Linux User Community


SNMP from remote machine

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring SNMP from remote machine
# 1  
Old 08-31-2009
SNMP from remote machine

Hi,
I have sucessfully set up snmp daemon on my AIX box (v 6.1.2.0).
I can query snmp from localhost (using command: snmpinfo -v -m dump -c public mib-2) and it works perfectly.

But I don't get any reply when query my AIX box from remote machine (AIX, Linux,...)
I have tried to set up SNMP v1 and also SNMP v3 but from remote machine it's not accessible, only from localhost.
There is no firewall installed between my servers.

tcpdump -i en8 port 161 shows incoming snmp packets from remote machine but snmp daemon didn't reply Smilie

Anybody can help me what can be wrong?

Here is a part of my snmpdv3.conf:
VACM_GROUP group1 SNMPv1 public -

VACM_VIEW defaultView internet - included -
VACM_VIEW defaultView snmpModules - excluded -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.4 - included -
VACM_VIEW defaultView 1.3.6.1.6.3.1.1.5 - included -
VACM_VIEW defaultView 1.3.6.1.4.1.2.6.191 - included -

VACM_VIEW defaultView system - included -
VACM_VIEW defaultView interfaces - included -
VACM_VIEW defaultView tcp - included -
VACM_VIEW defaultView icmp - included -
VACM_VIEW defaultView udp - included -
VACM_VIEW defaultView snmp - included -

VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -

NOTIFY notify1 traptag trap -

TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - -

TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 public noAuthNoPriv -

COMMUNITY public public noAuthNoPriv 0.0.0.0 0.0.0.0 -
COMMUNITY public public noAuthNoPriv 172.17.0.0 255.255.0.0 -
COMMUNITY public public noAuthNoPriv 192.168.0.0 255.255.0.0 -

snmpdv3.log:
08/27/09 05:05:02 PM - s_agv123.c(1114) Agent using IP address UDP 172.17.13.232 port 0
08/27/09 05:05:03 PM - Dynamic configuration initialized.
08/27/09 05:05:03 PM - Using file /etc/snmpdv3.conf for configuration.
08/27/09 05:05:03 PM - Using existing file /etc/snmpd.boots for boots initialization.
08/27/09 05:05:03 PM - Added managers for community: public rc= 0.
08/27/09 05:05:03 PM - Tracing is set to 0.
08/27/09 05:05:03 PM - SNMP agent: initialization complete.
08/27/09 05:05:08 PM - Accepted new DPI inet socket connection on fd=10 from ::ffff:127.0.0.1 port 55595.
08/27/09 05:05:08 PM - Accepted new DPI inet socket connection on fd=11 from ::ffff:127.0.0.1 port 55596.
08/27/09 05:05:08 PM - Accepted new DPI inet socket connection on fd=12 from ::ffff:127.0.0.1 port 55597.

Previous Thread | Next Thread
Test Your Knowledge in Computers #614
Difficulty: Medium
In Python, strings in double quotes work exactly the same way as strings in single quotes.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with fetching the data from remote machine from my jumpbox(local machine)

Team, Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Discussion started by: whizkidash
20 Replies

2. Red Hat

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies

3. Solaris

SNMP - cpu core information for Sun SPARC machine

Dears, I'm looking for getting CPU cores information of Sun machines (like: SunFire V880, Fujitsu SPARC T5120, ...) via SNMP, unfortunately i couldn't find the proper OID for that. Can anyone help me with this ? Thanks, (1 Reply)
Discussion started by: Anti_Evil
1 Replies

4. UNIX for Advanced & Expert Users

FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh Am getting the problem while transferring zero size files through the script . When i transfer zero size files from local machine to remote machine manually i can able to do it . My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

5. Infrastructure Monitoring

Using SNMP to run remote commands

so i just discovered it was possible to run remote scripts using snmp. problem is, one can't pass arguments to the remote script from the client machine. for instance, the code below will execute the script called CallDropper on sgt66.blahblah.com. snmpwalk -v2c -c A@GTF42... (2 Replies)
Discussion started by: SkySmart
2 Replies

6. Infrastructure Monitoring

Using SNMP to monitor remote processes and disk space

snmpget -v 1 -c COMMUNITYSTR hostname OID what OIDs would I use to get information on all the processes and disk space information that are on a particular host. where can i find out information on all of this? thanks (3 Replies)
Discussion started by: SkySmart
3 Replies

7. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

8. UNIX for Dummies Questions & Answers

Tar to remote machine

Is there a way to use Tar (not GNU) to automaticallly create a tar file on a remote machine. the source files will be local, but I would like tthe tar file to be remote. Thanks. (2 Replies)
Discussion started by: hshapiro
2 Replies

9. UNIX for Advanced & Expert Users

Help regarding theMailing of output from a remote machine

Hi all, I have a script which logs in to the remote server with FTP and with the user id/password and list the files in the path of remote server where thefiles resid.i need to email this output(i.e wether the files are present on not under the path) to my email id. Can u please let me know as... (1 Reply)
Discussion started by: OSD
1 Replies

Featured Tech Videos