Re: No support for any Checked transport domin

"Ankit Jalota" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thomas,

Actually we had put forth this problem in detail earlier
Now I'll try to address this problem again.
First of all I'll answer your question
Platform: Linux 2.6
net-snmp:5.4
configure options-->????, not sure asbout which configure options you are
asking for.

My friend and I are trying to write a  code which sends the trap if
host-name is changed.  on client machine.

the code is working fine for the first time, but when we try to change the
host-name for the second time
we get the error  :

"No support for any checked transport domain"
snmptrap: unknown host (127.0.0.1)

In main ()
The code is to check the hostname from proc file, infinitely in while loop
and as soon as it detects the change a trap function is called.
In trap(),
We are mainly initializing the session , opening  the session, creating pdu,
sending the pdu(trap) n closing the session.
main commands used for the above are:
snmp_open
snmp_pdu_create(SNMP_MSG_TRAP2)
snmp_send
snmp_close

since we are able to receive the trap for the first time, this means that we
are going on the right track. but for the next time when we change that
host-name again, there is some problem related to the session as the
snmp_open commands fails and returns NULL.

Is it correct to open and close session in a function called from main and
main runs endlessly.
I feel that some how, some session handle is left open, which stops us from
opening another session.

Kindly point out the things which we might be missing

Thanks,
Ankit Jalota
On 1/4/07, Thomas Anders <[email protected]> wrote:
>
> Ankit Jalota wrote:
> > Can anybody tell why we get following error:
> >
> > "No support for any checked transport domain
> > snmptrap: unknown host( 127.0.0.1)"
>
> Platform and OS version? net-snmp version? configure options?
> What exact command(s) have you tried?
>
>
> +Thomas
>
> --
> Thomas Anders (thomas.anders at blue-cable.de)
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.