Creating a virtual Interface to recieve snmp traps


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Creating a virtual Interface to recieve snmp traps
# 1  
Old 12-15-2011
Creating a virtual Interface to recieve snmp traps

All,

I have a question regarding setting up a virtual interface to recieve snmp traps from network devices.

My Solaris 10 server is running the HPOV-NNMi application. The network devices in our environment (many thousands) are all pre-configured to send their snmp traps to a specific IP address (our old NNM application server now retired).
I'd like to use that IP from the old server, and virtually configure it on our new Solaris 10 server, to recieve the traps those network devices are sending.

Is this possible? How is it done?
Any advise is appreciated.
thx,
Turk
# 2  
Old 12-15-2011
When you say "virtually configure" you mean you want to create a VNIC?

Also, depending on the specific SNMP server requirement, creating a zone might be a better idea.
# 3  
Old 12-19-2011
Sorry, I was out unexpectedly Friday,

Yes, well to be honest, I'm not sure.

I would like to be able to recieve the snmp traps, without having to plug in another network cable. I'm starting to wonder if thats even worth it.

basically we have all these thousands of network device configured to send their traps to a specific IP address, we have that IP address reserved, and I'd like to plumb it up on my Solaris 10 server running the NNM application.

If I need to physically run a network cable to another NIC card, then I can arrange that.

I had hoped that I could plumb a virtual interface on the Server, and recieve the traps, without a physical connection, that's starting to sound crazy to me now...

Turk
# 4  
Old 12-19-2011
You can create a VNIC and use it as if it was a physical device. Something like this:
Code:
ifconfig e1000g1:1 plumb
ifconfig e1000g1:1 192.168.1.2 up

If you need it to be on a different subnet just add a route to your routing table.

Note this only works if you're using Solaris 10 8/07 (update 4) or higher.
This User Gave Thanks to verdepollo For This Post:
# 5  
Old 01-03-2012
Verdepollo,

Thanks for the reply. Just before the holidays, these are the steps I used to create the vnic:

1) create /etc/hostname.<interfacename>:<n> containing the hostname of the virtual IP
example:

/etc/hostname.bge0:1

2) add the hostname and virtual IP to /etc/hosts

3) use the following commands to configure the interface:
ifconfig <interfacename>:<n> plumb

example:
ifconfig bge0:1 plumb

ifconfig <interfacename>:<n> <IP address> netmask <netmask> broadcast + up

example:
ifconfig bge0:1 10.67.1.141 netmask 255.255.255.0 broadcast + up

2) To make the virtual interface persist following a reboot, you can add the ip address or hostame in the file /etc/hostname.hme0:1

It seems to have worked, but I need to make sure that network devices configured to send to the plumbed IP, are actually getting recieved by the NNMi application.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

SNMP traps to SNMP server

Dear Champs, I am new to unix, and need to configure linux server to send below traps to a SNMP server. Monitoring TRAP Disk Space Low Monitoring TRAP Memory Low Monitoring TRAP CPU high Monitoring TRAP Admin login/Logoff Please help me how to send this information to my SNMP server... (2 Replies)
Discussion started by: stavar
2 Replies

2. UNIX for Dummies Questions & Answers

SNMP Traps

Hi, We are using Zyrion Traverse to monitor all the servers. I like to set the traps on all of the Linux servers to send the traps to that servers. So for on the /etc/snmp/snmp.conf file, this is what I have... ### SNMP Traps ### trap2sink x.x.x.x # Traverse server My... (4 Replies)
Discussion started by: samnyc
4 Replies

3. Infrastructure Monitoring

SNMP Traps

Hi all, lately i managed to install SNMP agent on Solaris 9 & 10. The second objective is now to configure traps. However (since i'm totally new to the SUN world) i don't know a way of how to start. Can somebody help me with details? What is the first thing that you need to do to start trapping?... (3 Replies)
Discussion started by: Wizard_1979
3 Replies

4. Infrastructure Monitoring

Shell Script - Generate SNMP Traps

Good morning to you all I´m kinda of a noob to scripting, and my knowledge is still very basic: anyway, I´ve developed a small .sh script with the following purpose: - it will check a result file, checking if it has any values, or if it´s empty - if it´s empty it will send an email What... (0 Replies)
Discussion started by: zarahel
0 Replies

5. Shell Programming and Scripting

virtual interface

How would i create virtual interface in linux to configure more than one IP address for a physical interface? any help wll be appreciated. https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: salil2012
1 Replies

6. Solaris

List of SNMP Traps supported by Solaris 10

Hi, I want the list of SNMP traps supported by Solaris 10. DO anyone has the list prepared. Regards, Rajesh (1 Reply)
Discussion started by: grrajeish
1 Replies

7. Linux

How to configure linux to receive snmp traps from a windows server?

Can anybody please tell me how to configure linux to receive snmp traps from a windows server? I am not able to receieve snmp traps on unix machines specifically linux and solaris. I have tried starting snmptrapd service on linux but it didn't work. Is there anything special that I have to do on... (2 Replies)
Discussion started by: iamtulipin
2 Replies

8. Solaris

SNMP traps

Hello I am trying to check that SNMP traps could be sent from one server to other . I am running this command from receiving server to see it can receive it /usr/sbin/snoop udp port 162 and on the sending end I am running this commad cst051 UDP D=162 S=1480 LEN=120 but i am... (1 Reply)
Discussion started by: Ajwat
1 Replies

9. HP-UX

HP-UX - how to create virtual interface

OS - HP-UX B.10.20 A 9000/777 Anyone know how to set up a virtual interface on HP-UX? I've looked quickly through docs.hp.com and searched this site. No luck. And my HP Guru is sleeping today. (4 Replies)
Discussion started by: thehoghunter
4 Replies

10. UNIX for Advanced & Expert Users

Sending SNMP Traps in AIX / Unix

Hi, Just wondering if anyone knows how can I send an SNMP Trap in Unix Environment(AIX) to another machine (NT/Ux) after having activated the SNMP in the AIX. Can this be done by using a single command line or do I have to write a script for it? Thanks in advance for your advices. :) (1 Reply)
Discussion started by: goliath
1 Replies
Login or Register to Ask a Question