MattGruber

Attaching note went fail

Discussion created by MattGruber on May 6, 2011
Latest reply on May 14, 2011 by MattGruber

Hi!

 

I am a bit courious  about something.

I did a little script, copy a routine, double checked it... and a note is not attached.

 

Simply did following

.....

NoteID = note.create("OldHosts"..nimid,"Alte Hosts nicht gefunden:\n"..strdoesntfoundoldHosts,1)
        if NoteID ~= nil then   
            if DEBUG >= 5 then
                print("###->SCRIPT: Check4NewRobots: Attaching Note NoteID: "..NoteID)
                print("###->SCRIPT: Check4NewRobots: Attaching Note nimid: "..nimid)
            end --if
            rc = note.attach(NoteID,nimid)
            print(rc)
        else
            nimbus.alarm(4,"Script-Error: Check4NewRobots: NoteID (oldhosts) not filled,","check4newrobots-004","3.1.1.3")
        end --if

.....

 and got:

May  6 15:27:28:148 [6056] nas: NMS-Check4NewRobots-020: ###->SCRIPT: Check4NewRobots: Attaching Note NoteID: 49
May  6 15:27:28:148 [6056] nas: NMS-Check4NewRobots-020: ###->SCRIPT: Check4NewRobots: Attaching Note nimid: HU18779888-73438
May  6 15:27:28:148 [6056] nas: NMS-Check4NewRobots-020: 4

 

rc == 4, whats that....

 

If I do a cut and paste of the vlaues into the Probe Utility he is attaching it fluently, w/o troubble, but not via script.

Anyone has an idea?

 

cheers

Matthias

Outcomes