For example , my solaris server has 4 interfaces with different ip addresses. My broker located on remote server and i want to register DM on broker with some address.
So, after little investigation, sm_server command has sm_main_option environments: Specifies the IP address that the Smarts program should use as the --useif= source address for outgoing packets and the destination address for which it accepts incoming packets.
So, should to install DM with this parameteer, but still, when Dm connect to broker, broker see hostname ip address and NOT ip address that i set in --useif parameter.
-useif does what you're trying to do but it requires a separate license (and it is a purchased item called overlapping IP). I think it is just ignored if you don't have the license.
I beg to differ a bit here: if your need is really: "My broker located on remote server and i want to register DM on broker with some address." and not "use a specific IP as a source IP to poll devices" (in this case, Berkay's answer is the good one), then the answer is: --useif doesn't do that. --useif on DM is not used to specify the IP used by the DM to register to the broker and to talk to the other DM (SAM and cie).
there is no solution than I know to automatically register a DM with a specific IP. If you want to do that for any reason, you may try to use the brcontrol commands (add_dm, ...).
TCorcoran
53 Posts
524
0
Posted January 14th, 2009 10:00
I have not seen that this is as relevant to SMARTS as to say HP OpenView.
What are the problems you are experiening, or for what reason are you attempting this?
- Tim