UNSOLVED

arbas_ahmed

updated

14 years ago

A

arbas_ahmed

19 Posts

0

1538

December 23rd, 2012 23:00

Create host and assign IP

Hello Team,

I have list of device names and IP address in two seperate files which i am calling in custom-end-system.asl.

I have created host as below and now all host has been created but there is no ip address and SNMPAddress is also greyed out.

How can I assign SNMP address to all those hosts.

device1 = Special_Host1

  HostObj = object("Host", device1);

                if ( HostObj->isNull() ) {

                        HostObj = create("Host", device1);

                        }

I am trying to assign SNMPAddress as below but it's not working for me..

ipaddress = xx.xx.xx.xx

                        HostObj->insert("SourceAddress", ipaddress);

Thanks